Skip to main content

PedGetHeadPos

Description

Just like PedGetPosXYZ, but returns the coordinates of the center of the their head.

function PedGetHeadPos(ped, x, y, z) --[[ ... ]] end

Parameters

  • ped: integer - The ped to get the head position of.

Return Values

  • x: number - The X coordinate of the ped's head location.
  • y: number - The Y coordinate of the ped's head location.
  • z: number - The Z coordinate of the ped's head location.

Example

...