RedM Natives

POINT_CAM_AT_ENTITY

Hash0xFC2867E6074D3A61
Runtime namePointCamAtEntity
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5640BFF86B16E8DC

Signature

void POINT_CAM_AT_ENTITY(Cam cam, Entity entity, float p2, float p3, float p4, BOOL p5);

Parameters

NameTypeDescription
camCam—
entityEntity—
p2float—
p3float—
p4float—
p5BOOL—

Returns void

Usage

Lua
PointCamAtEntity(cam, entity, p2, p3, p4, p5)

-- always works, by hash
Citizen.InvokeNative(0xFC2867E6074D3A61, cam, entity, p2, p3, p4, p5)
JavaScript and C#
JavaScript
PointCamAtEntity(cam, entity, p2, p3, p4, p5);

// by hash
Citizen.invokeNative('0xFC2867E6074D3A61', cam, entity, p2 + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, p5);
C#
Function.Call((Hash)0xFC2867E6074D3A61, cam, entity, p2, p3, p4, p5);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.