ATTACH_CAM_TO_ENTITY
Last param determines if its relative to the Entity
Hash
0xFDC0DF7F6FB0A592Runtime name
AttachCamToEntityNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xFEDB7D269E8C60E3Signature
void ATTACH_CAM_TO_ENTITY(Cam cam, Entity entity, float xOffset, float yOffset, float zOffset, BOOL isRelative);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
entity | Entity | — |
xOffset | float | — |
yOffset | float | — |
zOffset | float | — |
isRelative | BOOL | — |
Returns void
Description
Last param determines if its relative to the Entity
Usage
AttachCamToEntity(cam, entity, xOffset, yOffset, zOffset, isRelative)
-- always works, by hash
Citizen.InvokeNative(0xFDC0DF7F6FB0A592, cam, entity, xOffset, yOffset, zOffset, isRelative)JavaScript and C#
AttachCamToEntity(cam, entity, xOffset, yOffset, zOffset, isRelative);
// by hash
Citizen.invokeNative('0xFDC0DF7F6FB0A592', cam, entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, isRelative);Function.Call((Hash)0xFDC0DF7F6FB0A592, cam, entity, xOffset, yOffset, zOffset, isRelative);- 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.