local sampev = require("lib.samp.events")
function createdialog(id, types, title, but1, but2, text)
local bss = raknetNewBitStream()
raknetBitStreamWriteInt16(bss, id)
raknetBitStreamWriteInt8(bss, types)
raknetBitStreamWriteInt8(bss, string.len(title))
raknetBitStreamWriteString(bss, title)
raknetBitStreamWriteInt8(bss, string.len(but1))
raknetBitStreamWriteString(bss, but1)
raknetBitStreamWriteInt8(bss, string.len(but2))
raknetBitStreamWriteString(bss, but2)
raknetBitStreamEncodeString(bss, text)
raknetEmulRpcReceiveBitStream(61, bss)
raknetResetBitStream(bss)
end
function main()
sampRegisterChatCommand("test", function() createdialog(0, 1, "Наверху текст(название)", "Кнопка слева", "Кнопка справа", "Текст диалога") end) -- 0 это ид диалога, 1 его стиль, найти в инете можн
while true do wait(0) end
end