CameraClient

pointCamAtEntity

POINT_CAM_AT_ENTITY0x5640BFF86B16E8DC

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

SignatureJavaScript
pointCamAtEntity(
  cam: Cam,
  entity: Entity,
  p2: number,
  p3: number,
  p4: number,
  p5: boolean
): void
SignatureLua
pointCamAtEntity(
  cam: Cam,
  entity: Entity,
  p2: number,
  p3: number,
  p4: number,
  p5: boolean
)

Usage

JavaScript
pointCamAtEntity(cam, entity, p2, p3, p4, p5);
Lua
pointCamAtEntity(cam, entity, p2, p3, p4, p5)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
entityEntitynumberinteger
p2floatnumbernumber
p3floatnumbernumber
p4floatnumbernumber
p5BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p5 always seems to be 1 i.e TRUE

Reference

Namespace
Camera CAM
In the game
void POINT_CAM_AT_ENTITY(Cam cam, Entity entity, float p2, float p3, float p4, BOOL p5)
Hash
0x5640BFF86B16E8DC

Open in the interactive natives reference