local sampev = require "lib.samp.events"
function sampev.onShowDialog(id, style, title, b1, b2, text)
if title == "Test" then
sampAddChatMessage("text", -1)
-- code
end
end
Немного посложнее:
local sampev = require "lib.samp.events"
function main()
while not...