diff --git a/client/main.lua b/client/main.lua index f0375890..517b6483 100644 --- a/client/main.lua +++ b/client/main.lua @@ -308,10 +308,7 @@ function RemoveItemsAfterRPDeath() z = Config.RespawnPoint.coords.z } - ESX.SetPlayerData('lastPosition', formattedCoords) ESX.SetPlayerData('loadout', {}) - - TriggerServerEvent('esx:updateLastPosition', formattedCoords) RespawnPed(PlayerPedId(), formattedCoords, Config.RespawnPoint.heading) StopScreenEffect('DeathFailOut') @@ -365,10 +362,6 @@ AddEventHandler('esx_ambulancejob:revive', function() z = ESX.Math.Round(coords.z, 1) } - ESX.SetPlayerData('lastPosition', formattedCoords) - - TriggerServerEvent('esx:updateLastPosition', formattedCoords) - RespawnPed(playerPed, formattedCoords, 0.0) StopScreenEffect('DeathFailOut')