xPlayer.coords.heading fixed

This commit is contained in:
mx developement
2022-11-02 12:02:10 +01:00
committed by GitHub
parent 52c70c6264
commit fe311bb7e1
+2 -1
View File
@@ -36,7 +36,8 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
function self.updateCoords()
local Ped = GetPlayerPed(self.source)
local coords = GetEntityCoords(Ped)
self.coords = {x = ESX.Math.Round(coords.x, 1), y = ESX.Math.Round(coords.y, 1), z = ESX.Math.Round(coords.z, 1), heading = ESX.Math.Round(coords.heading or 0.0, 1)}
local heading = GetEntityHeading(Ped)
self.coords = {x = ESX.Math.Round(coords.x, 1), y = ESX.Math.Round(coords.y, 1), z = ESX.Math.Round(coords.z, 1), heading = ESX.Math.Round(heading or 0.0, 1)}
end
function self.getCoords(vector)