mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
refactor(es_extended/client/modules/death): remove unused function param
This commit is contained in:
@@ -43,7 +43,7 @@ function Death:Natural()
|
||||
TriggerServerEvent("esx:onPlayerDeath", data)
|
||||
end
|
||||
|
||||
function Death:Damaged(victim)
|
||||
function Death:Damaged()
|
||||
self.killerEntity = GetPedSourceOfDeath(ESX.PlayerData.ped)
|
||||
self.deathCause = GetPedCauseOfDeath(ESX.PlayerData.ped)
|
||||
self.killerId = NetworkGetPlayerIndexFromPed(self.killerEntity)
|
||||
@@ -64,7 +64,7 @@ AddEventHandler("esx:onPlayerSpawn", function()
|
||||
Citizen.CreateThreadNow(function()
|
||||
while not ESX.PlayerData.dead do
|
||||
if IsPedDeadOrDying(ESX.PlayerData.ped, true) or IsPedFatallyInjured(ESX.PlayerData.ped) then
|
||||
Death:Damaged(ESX.PlayerData.ped)
|
||||
Death:Damaged()
|
||||
break
|
||||
end
|
||||
Citizen.Wait(250)
|
||||
|
||||
Reference in New Issue
Block a user