mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
baseevents: fix killerpos value
This commit is contained in:
@@ -43,8 +43,8 @@ Citizen.CreateThread(function()
|
|||||||
TriggerServerEvent('baseevents:onPlayerDied', killertype, { table.unpack(GetEntityCoords(ped)) })
|
TriggerServerEvent('baseevents:onPlayerDied', killertype, { table.unpack(GetEntityCoords(ped)) })
|
||||||
hasBeenDead = true
|
hasBeenDead = true
|
||||||
else
|
else
|
||||||
TriggerEvent('baseevents:onPlayerKilled', killerid, {killertype=killertype, weaponhash = killerweapon, killerinveh=killerinvehicle, killervehseat=killervehicleseat, killervehname=killervehiclename, killerpos=table.unpack(GetEntityCoords(ped))})
|
TriggerEvent('baseevents:onPlayerKilled', killerid, {killertype=killertype, weaponhash = killerweapon, killerinveh=killerinvehicle, killervehseat=killervehicleseat, killervehname=killervehiclename, killerpos={table.unpack(GetEntityCoords(ped))}})
|
||||||
TriggerServerEvent('baseevents:onPlayerKilled', killerid, {killertype=killertype, weaponhash = killerweapon, killerinveh=killerinvehicle, killervehseat=killervehicleseat, killervehname=killervehiclename, killerpos=table.unpack(GetEntityCoords(ped))})
|
TriggerServerEvent('baseevents:onPlayerKilled', killerid, {killertype=killertype, weaponhash = killerweapon, killerinveh=killerinvehicle, killervehseat=killervehicleseat, killervehname=killervehiclename, killerpos={table.unpack(GetEntityCoords(ped))}})
|
||||||
hasBeenDead = true
|
hasBeenDead = true
|
||||||
end
|
end
|
||||||
elseif not IsPedFatallyInjured(ped) then
|
elseif not IsPedFatallyInjured(ped) then
|
||||||
@@ -70,4 +70,4 @@ function GetPlayerByEntityID(id)
|
|||||||
if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
|
if(NetworkIsPlayerActive(i) and GetPlayerPed(i) == id) then return i end
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user