baseevents: fix killerpos value

This commit is contained in:
Kevin Poirot
2018-04-09 14:41:13 +02:00
committed by GitHub
parent a6814fe938
commit 974871ce30

View File

@@ -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