mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
Essential 5 /revive command compatibility
This commit is contained in:
+2
-2
@@ -92,8 +92,8 @@ end)
|
||||
|
||||
TriggerEvent('es:addGroupCommand', 'revive', 'admin', function(source, args, user)
|
||||
print('revive by /revive')
|
||||
if args[2] ~= nil then
|
||||
TriggerClientEvent('esx_ambulancejob:revive', tonumber(args[2]))
|
||||
if args[1] ~= nil then
|
||||
TriggerClientEvent('esx_ambulancejob:revive', tonumber(args[1]))
|
||||
else
|
||||
TriggerClientEvent('esx_ambulancejob:revive', source)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user