act = false
function main()
sampRegisterChatCommand('zsobes',function()
act = true
sampSendChat('/lmenu')
end)
wait(-1)
end
function events.onShowDialog(dialogId, style, title, button1, button2, text)
if act then
sampSendDialogResponse(dialogId,1,9--[[нажмет на [8] пункт(начало с 0) ]],_)
act = false
return false
end
end