Proper raycast arguments, trim last position

This commit is contained in:
ElPumpo
2018-12-23 15:05:00 +01:00
parent 2fd7d326be
commit b63c147fc0
5 changed files with 33 additions and 24 deletions
+1 -1
View File
@@ -538,7 +538,7 @@ Citizen.CreateThread(function()
local coords = GetEntityCoords(playerPed)
if not IsEntityDead(playerPed) then
ESX.PlayerData.lastPosition = {x = coords.x, y = coords.y, z = coords.z}
ESX.PlayerData.lastPosition = {x = ESX.Math.Round(coords.x, 2), y = ESX.Math.Round(coords.y, 2), z = ESX.Math.Round(coords.z, 2)}
end
end