local inicfg = require 'inicfg'
local sampev = require 'lib.samp.events'
local directIni = 'myIni.ini'
local ini = inicfg.load(inicfg.load({
settings = {
dialog_id = 1,
text_to_send = 'Hello world!'
}
}, directIni))
inicfg.save(ini, directIni)
function sampev.onShowDialog(id, style, title, button1, button2, text)
if id == ini.settings.dialog_id then
sampSendDialogResponse(ini.settings.dialog_id, 0 , false, ini.settings.text_to_send)
end
end