mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 21:01:49 +00:00
Fixed #177
This commit is contained in:
+1
-1
@@ -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.' } })
|
||||
|
||||
Reference in New Issue
Block a user