This commit is contained in:
ElPumpo
2020-01-15 20:43:40 +01:00
parent 210b98975a
commit d94522fbbe
+1 -1
View File
@@ -229,7 +229,7 @@ end)
TriggerEvent('es:addGroupCommand', 'revive', 'admin', function(source, args, user)
if args[1] then
local playerId = tonumber(args[1])
if playerId and ESX.Players[playerId] then
if playerId and ESX.GetPlayerFromId(playerId) then
TriggerClientEvent('esx_ambulancejob:revive', playerId)
else
TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Player not online.' } })