Merge pull request #86 from 123B3n/patch-1

Resolved invalid number format
This commit is contained in:
Samuel
2018-05-29 19:03:20 +02:00
committed by GitHub
+2 -2
View File
@@ -20,7 +20,7 @@ TriggerEvent('es:addGroupCommand', 'setjob', 'jobmaster', function(source, args,
if tonumber(args[1]) and args[2] and tonumber(args[3]) then
local xPlayer = ESX.GetPlayerFromId(args[1])
if xPlayer ~= nil then
xPlayer.setJob(args[2], args[3])
xPlayer.setJob(args[2], tonumber(args[3]))
else
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Player not online.")
end
@@ -177,4 +177,4 @@ TriggerEvent('es:addGroupCommand', 'disconnect', 'admin', function(source, args,
DropPlayer(source, 'You have been disconnected')
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('disconnect')})
end, {help = _U('disconnect')})