Can anyone do this for me?


#1
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.


#2

Permission levels do not exist by default, you require to either use a resource or make one yourself.