ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedCameraRotation

Function

getPedCameraRotation

ServerPedsIdentical to MTA:SA

Returns the ped camera heading stored with setPedCameraRotation (0 by default). It does not read the player's real camera.

Syntax

float getPedCameraRotation(ped ped)

Arguments

pedped
A player or an NPC.

Returns

Angle in degrees.

Example

outputServerLog(getPedCameraRotation(player))

See also