- 24
- 1
Is there anyone who can help me make the script below more flexible? I mean adding several commands according to their functions. /changeid to change idReplaceTo and /dialogid to change targetDialogId.
local ev = require 'samp.events'
local targetDialogId = 5
local idReplaceTo = 8
function ev.onShowDialog(dialogId, ...)
if dialogId == targetDialogId then
return {idReplaceTo, ...}
end
end
local ev = require 'samp.events'
local targetDialogId = 5
local idReplaceTo = 8
function ev.onShowDialog(dialogId, ...)
if dialogId == targetDialogId then
return {idReplaceTo, ...}
end
end