added hud.get_player()

This commit is contained in:
MihailRis
2024-05-16 13:47:59 +03:00
parent 7be1c3f223
commit e0e052ff1a
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
function setup_variables()
local x,y,z = player.get_pos(0)
local x,y,z = player.get_pos(hud.get_player())
console.set('pos.x', x)
console.set('pos.y', y)
console.set('pos.z', z)