AddEventHandler("chatMessage", function(p, color, msg)
if msg:sub(1, 1) == "/" then
fullcmd = stringSplit(msg, " ")
cmd = fullcmd[1]
args = makeArgs(fullcmd)
if cmd == "/heal" then
local ped = tostring(args[1])
CancelEvent()
TriggerClientEvent("heal", ped)
end
end
end)
Can someone modify this and make it so the command requires a permission_level > 0?
I’ve tried but i just get errors.