Skip to content

GetPlayerPos

Where this player stands.

GetPlayerPos()

number, number, number - x, y, z in metres; nil before the player exists

local x, y, z = GetPlayerPos()
if x then print(string.format("I am at %.1f %.1f %.1f", x, y, z)) end

GetLevelName · WorldToScreen · the The player, the level and the frame group of the index