- 6
- 0
plugins.lua:
require('lib/moonloader')
local events = require('lib.samp.events')
mod = {}
mod["radioOff"] = {}
mod["radioOff"]["isMuted"] = false
mod["radioOff"]["loop"] = function()
while not mod["radioOff"]["isMuted"] do
wait (0)
if (isCharSittingInAnyCar(playerPed) and not mod["radioOff"]["isMuted"]) then
setRadioChannel(0)
mod["radioOff"]["isMuted"] = true
end
end
end
mod["noAskHelpQuality"] = {}
mod["noAskHelpQuality"]["textSign"] = "Оценка администратор"
mod["noAskHelpQuality"]["handler"] = function(dialogId)
local textSign = mod["noAskHelpQuality"]["textSign"]
local dialogIdSign = 32500
local dialogTitle = sampGetDialogCaption()
if (not dialogId) then dialogId = sampGetCurrentDialogId() end
if (dialogId == dialogIdSign) then
if (string.find(dialogTitle, textSign)) then
sampSendDialogResponse(dialogIdSign, 0, 0)
-- sampCloseCurrentDialogWithButton()
end
end
end
return mod
Почему не выключает радио?
Последнее редактирование: