FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: CAMAPI set: clientGame: gta5editImprove

GET_GAMEPLAY_CAM_ROT

0x837765A25378F0BB
0x13A010B5
// GetGameplayCamRot
Vector3 GET_GAMEPLAY_CAM_ROT(int rotationOrder);
Parameters:
  • rotationOrder:

    The order of rotation, see GET_ENTITY_ROTATION

Returns:

A Vector3 representing the gameplay camera rotation in degrees.

This function takes a rotation order and outputs a Vector3 in degrees.

It first calls a game function to calculate these values given the rotation order and effectively multiplies those values by 180/PI, hence degrees since the function it calls outputs radians which are then converted to degrees.

Examples:

  • Lua
local camRot = GetGameplayCamRot(0) -- vector3(-14.74518, 0.05254443, 95.24616)
Citizen.Trace(string.format("Cam Rotation is x: %f, y: %f, z: %f", camRot.x, camRot.y, camRot.z))
GET_CAM_SPLINE_NODE_PHASE(Cam cam)
GET_CAM_SPLINE_PHASE(Cam cam)
GET_CAM_VIEW_MODE_FOR_CONTEXT(int context)
_GET_DEBUG_CAMERA()
GET_FINAL_RENDERED_CAM_COORD()
GET_FINAL_RENDERED_CAM_FAR_CLIP()
GET_FINAL_RENDERED_CAM_FAR_DOF()
GET_FINAL_RENDERED_CAM_FOV()
GET_FINAL_RENDERED_CAM_MOTION_BLUR_STRENGTH()
GET_FINAL_RENDERED_CAM_NEAR_CLIP()
GET_FINAL_RENDERED_CAM_NEAR_DOF()
GET_FINAL_RENDERED_CAM_ROT(int rotationOrder)
GET_FINAL_RENDERED_IN_WHEN_FRIENDLY_FOV(Player player)
GET_FINAL_RENDERED_IN_WHEN_FRIENDLY_ROT(Player player, int rotationOrder)
GET_FIRST_PERSON_AIM_CAM_ZOOM_FACTOR()
GET_FOCUS_PED_ON_SCREEN(float p0, int p1, float p2, float p3, float p4, float p5, float p6, int p7, int p8)
GET_FOLLOW_PED_CAM_VIEW_MODE()
GET_FOLLOW_PED_CAM_ZOOM_LEVEL()
GET_FOLLOW_VEHICLE_CAM_VIEW_MODE()
GET_FOLLOW_VEHICLE_CAM_ZOOM_LEVEL()
GET_GAMEPLAY_CAM_COORD()
GET_GAMEPLAY_CAM_FOV()
GET_GAMEPLAY_CAM_RELATIVE_HEADING()
GET_GAMEPLAY_CAM_RELATIVE_PITCH()
GET_GAMEPLAY_CAM_ROT(int rotationOrder)
GET_RENDERING_CAM()
INVALIDATE_IDLE_CAM()
_INVALIDATE_VEHICLE_IDLE_CAM()
IS_AIM_CAM_ACTIVE()
_IS_AIM_CAM_THIRD_PERSON_ACTIVE()
IS_BONNET_CINEMATIC_CAM_RENDERING()
IS_CAM_ACTIVE(Cam cam)
IS_CAM_INTERPOLATING(Cam cam)
IS_CAM_PLAYING_ANIM(Cam cam, char* animName, char* animDictionary)
IS_CAM_RENDERING(Cam cam)