Skip to content

function getPlayerPosition (client-side)

Available since version: 0.0.1

This function will get the player/npc world position.

Declaration

Vec3|null getPlayerPosition(int id)

Parameters

  • int id: the player id.

Returns Vec3|null

the player world position or null if player isn't created.