The Lab
CAMERA native

ATTACH_CAM_TO_ENTITY

returns void6 paramsbuild 1207

Attaches cam to entity at the given offset; isRelative makes the offset relative to the entity's orientation.

Signature

C
void ATTACH_CAM_TO_ENTITY(Cam cam, Entity entity, float xOffset, float yOffset, float zOffset, BOOL isRelative); // 0xFDC0DF7F6FB0A592 b1207

Parameters

#NameType
1camCam
2entityEntity
3xOffsetfloat
4yOffsetfloat
5zOffsetfloat
6isRelativeBOOL

Facts

Facts about ATTACH_CAM_TO_ENTITY
Name
ATTACH_CAM_TO_ENTITY
Hash
0xFDC0DF7F6FB0A592
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xFDC0DF7F6FB0A592, -- ATTACH_CAM_TO_ENTITY
  0, -- Cam cam
  PlayerPedId(), -- Entity entity
  0.0, -- float xOffset
  0.0, -- float yOffset
  0.0, -- float zOffset
  false -- BOOL isRelative
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xFDC0DF7F6FB0A592", // ATTACH_CAM_TO_ENTITY
  0, // Cam cam
  PlayerPedId(), // Entity entity
  0.0, // float xOffset
  0.0, // float yOffset
  0.0, // float zOffset
  false // BOOL isRelative
);
C#
Function.Call((Hash)0xFDC0DF7F6FB0A592, // ATTACH_CAM_TO_ENTITY
  0, // Cam cam
  API.PlayerPedId(), // Entity entity
  0.0f, // float xOffset
  0.0f, // float yOffset
  0.0f, // float zOffset
  false // BOOL isRelative
);
All CAMERA natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.