mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Put the reviveall command into ESX_Ambulancejob
This commit is contained in:
@@ -257,6 +257,12 @@ end, true, {help = _U('revive_help'), validate = true, arguments = {
|
|||||||
{name = 'playerId', help = 'The player id', type = 'player'}
|
{name = 'playerId', help = 'The player id', type = 'player'}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
ESX.RegisterCommand('reviveall', "admin", function(xPlayer, args, showError)
|
||||||
|
for _, playerId in ipairs(GetPlayers()) do
|
||||||
|
TriggerClientEvent('esx_ambulancejob:revive', playerId)
|
||||||
|
end
|
||||||
|
end, false)
|
||||||
|
|
||||||
ESX.RegisterUsableItem('medikit', function(source)
|
ESX.RegisterUsableItem('medikit', function(source)
|
||||||
if not playersHealing[source] then
|
if not playersHealing[source] then
|
||||||
local xPlayer = ESX.GetPlayerFromId(source)
|
local xPlayer = ESX.GetPlayerFromId(source)
|
||||||
|
|||||||
Reference in New Issue
Block a user