gui choosing correct answear

muythay

Новичок
Автор темы
7
0
hello guys. once again I need simple help from u. im just do dumb.

hw do i make that if gui pops out automatically it chooses correct answear? i just dont get it



my code now :
Код:
local on = require 'lib.samp.events'

function on.onShowDialog(did, style, title, b1, b2, text)
    if id == 16252 then
    end
    
end

Lua:
local ev = require 'lib.samp.events'

function ev.onShowDialog(id, style, title, btn1, btn2, text)
    sampAddChatMessage(id, -1)
    if text:find('Paspausk 1') and id == 16252 then
        sampSendDialogResponse(16252, 1, 4, nil)
        end
    end
end

tried doing this but it still didint work ;/
 
Последнее редактирование: