CameraClient

getFinalRenderedCamCoord

GET_FINAL_RENDERED_CAM_COORD0xA200EB1EE790F448

The GTA V native GET_FINAL_RENDERED_CAM_COORD of the CAM namespace, as LS:MP client scripts call it: the global function getFinalRenderedCamCoord, in JavaScript and in Lua.

SignatureJavaScript
getFinalRenderedCamCoord(): { x: number, y: number, z: number }
SignatureLua
getFinalRenderedCamCoord(): Vector3

Usage

JavaScript
const { x, y, z } = getFinalRenderedCamCoord();
Lua
local coords = getFinalRenderedCamCoord()
-- coords.x, coords.y, coords.z

Parameters

None.

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
Camera CAM
In the game
Vector3 GET_FINAL_RENDERED_CAM_COORD()
Hash
0xA200EB1EE790F448
Formerly
_GET_GAMEPLAY_CAM_COORDS

Open in the interactive natives reference