Skip to main content

PedFaceHeading

Description​

Makes a ped face a specific heading (rotation angle). If slowly is true, the ped will turn naturally instead of instantly snapping.

function PedFaceHeading(ped, degrees, slowly) --[[ ... ]] end

Parameters​

  • ped: integer - The ped to rotate.
  • degrees: number - The heading in degrees (0–360).
  • slowly: boolean - If true, the ped rotates gradually.

Return Values​

None.

Example​

None.