Skip to main content

PlayerGetPosXYZ

Description​

Same as PedGetPosXYZ, but does not require a "ped" argument, as it defaults to the player.

function PlayerGetPosXYZ() --[[ ... ]] end

Parameters​

...

Return Values​

  • x: number - The X coordinate of the player location.
  • y: number - The Y coordinate of the player location.
  • z: number - The Z coordinate of the player location.

Example​

...