mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:01:35 +00:00
Implemented xPlayer.setLastPosition and fixed saving coords
This commit is contained in:
+1
-1
@@ -255,7 +255,7 @@ end)
|
||||
RegisterServerEvent('esx:updateLastPosition')
|
||||
AddEventHandler('esx:updateLastPosition', function(position)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
xPlayer.lastPosition = position
|
||||
xPlayer.setLastPosition(position)
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx:giveInventoryItem')
|
||||
|
||||
Reference in New Issue
Block a user