Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
local sampev = require 'lib.samp.events'
function sampev.onShowDialog(id, style, title, button1, button2, text)
if style == 0 then sampCloseCurrentDialogWithButton(1) end
end
Лучше всего сделать немного по другому, чтобы диалог не мелькал на экране:
Lua:
local sampEvents = require('lib.samp.events')
function sampEvents.onShowDialog(id, style, title, button1, button2, text)
if style == 0 then
sampSendDialogResponse(id, 1, 0, '')
return false
end
end
local sampev = require 'lib.samp.events'
function sampev.onShowDialog(id, style, title, button1, button2, text)
if style == 0 then sampCloseCurrentDialogWithButton(1) end
end
local sampev = require 'lib.samp.events'
function sampev.onShowDialog(id, style, title, button1, button2, text)
if style == 0 then sampCloseCurrentDialogWithButton(1) end
end
Лучше всего сделать немного по другому, чтобы диалог не мелькал на экране:
Lua:
local sampEvents = require('lib.samp.events')
function sampEvents.onShowDialog(id, style, title, button1, button2, text)
if style == 0 then
sampSendDialogResponse(id, 1, 0, '')
return false
end
end