CameraClient

pointCamAtCoord

POINT_CAM_AT_COORD0xF75497BB865F0803

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

SignatureJavaScript
pointCamAtCoord(cam: Cam, x: number, y: number, z: number): void
SignatureLua
pointCamAtCoord(cam: Cam, x: number, y: number, z: number)

Usage

JavaScript
pointCamAtCoord(cam, x, y, z);
Lua
pointCamAtCoord(cam, x, y, z)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
pointCamAtCoord(cam, pos);
Lua · with vectors
pointCamAtCoord(cam, pos)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void POINT_CAM_AT_COORD(Cam cam, float x, float y, float z)
Hash
0xF75497BB865F0803

Open in the interactive natives reference