mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 17:58:54 +00:00
Removed old lastPosition code
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user