xPlayer.getCoords() round to one decimal from ES

This commit is contained in:
ElPumpo
2019-09-29 11:30:42 +02:00
parent 06952418bf
commit 8a7cf56497
+2 -1
View File
@@ -41,7 +41,8 @@ function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, l
end
self.getCoords = function()
return self.player.get('coords')
local coords = self.player.get('coords')
return {x = ESX.Math.Round(coords.x, 1), y = ESX.Math.Round(coords.y, 1), z = ESX.Math.Round(coords.z, 1)}
end
self.setCoords = function(x, y, z)