POINT_CAM_AT_ENTITY
Hash
0xFC2867E6074D3A61Runtime name
PointCamAtEntityNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5640BFF86B16E8DCSignature
void POINT_CAM_AT_ENTITY(Cam cam, Entity entity, float p2, float p3, float p4, BOOL p5);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
entity | Entity | — |
p2 | float | — |
p3 | float | — |
p4 | float | — |
p5 | BOOL | — |
Returns void
Usage
PointCamAtEntity(cam, entity, p2, p3, p4, p5)
-- always works, by hash
Citizen.InvokeNative(0xFC2867E6074D3A61, cam, entity, p2, p3, p4, p5)JavaScript and C#
PointCamAtEntity(cam, entity, p2, p3, p4, p5);
// by hash
Citizen.invokeNative('0xFC2867E6074D3A61', cam, entity, p2 + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, p5);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.