script_name("nodialogrestore")
script_author("rraggerr")
script_url("blast.hk")
local ev = require 'lib.samp.events'
local restore_text = false
local dialogs_data = {}
local dialogIncoming = 0
function ev.onSendDialogResponse(dialogId , button , listboxId , input)
dialogs_data[dialogId] = {listboxId, input}
end
function ev.onShowDialog(dialogId , style , title , button1 , button2 , text)
dialogIncoming = dialogId
end
function main()
while true do wait(0)
if dialogIncoming ~= 0 and dialogs_data[dialogIncoming] then
local data = dialogs_data[dialogIncoming]
if data[1] and not restore_text then
sampSetCurrentDialogListItem(data[1])...