mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
Fixed #172
This commit is contained in:
@@ -34,8 +34,8 @@ function PlayerKilledByPlayer(killerServerId, killerClientId, killerWeapon)
|
||||
local distance = GetDistanceBetweenCoords(victimCoords, killerCoords, true)
|
||||
|
||||
local data = {
|
||||
victimCoords = victimCoords,
|
||||
killerCoords = killerCoords,
|
||||
victimCoords = {table.unpack(victimCoords)},
|
||||
killerCoords = {table.unpack(killerCoords)},
|
||||
|
||||
killedByPlayer = true,
|
||||
deathCause = killerWeapon,
|
||||
@@ -54,7 +54,7 @@ function PlayerKilled()
|
||||
local victimCoords = GetEntityCoords(PlayerPedId())
|
||||
|
||||
local data = {
|
||||
victimCoords = victimCoords,
|
||||
victimCoords = {table.unpack(victimCoords)},
|
||||
|
||||
killedByPlayer = false,
|
||||
deathCause = GetPedCauseOfDeath(playerPed)
|
||||
|
||||
Reference in New Issue
Block a user