- y = y,
- z = z
- })
- else
- TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Invalid coordinates!")
- end
- end, function(source, args, user)
- TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Insufficient Permissions.' } })
- end, {help = "Teleport to coordinates", params = {{name = "x", help = "X coords"}, {name = "y", help = "Y coords"}, {name = "z", help = "Z coords"}}})
-
- TriggerEvent('es:addGroupCommand', 'setjob', 'jobmaster', function(source, args, user)
- if tonumber(args[1]) and args[2] and tonumber(args[3]) then
- local xPlayer = ESX.GetPlayerFromId(args[1])
-
- if xPlayer then
- if ESX.DoesJobExist(args[2], args[3]) then
- xPlayer.setJob(args[2], args[3])
- else
- TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'That job does not exist.' } })
- end
-