From b916bd74b7af6d575953ecdb6df25ef7d1374c17 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 13 Jan 2019 22:44:32 +0100 Subject: [PATCH] Fixed #172 --- client/modules/death.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/modules/death.lua b/client/modules/death.lua index b32838c3..a7015bdd 100644 --- a/client/modules/death.lua +++ b/client/modules/death.lua @@ -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)