The Lab
CAMERA native

CREATE_CAM_WITH_PARAMS

returns Cam10 paramsbuild 1207

Creates a script camera of type camName at the given position and rotation with field of view fov, and returns its handle.

Signature

C
Cam CREATE_CAM_WITH_PARAMS(const char* camName, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fov, BOOL p8, int p9); // 0x40C23491CE83708E b1207

Parameters

#NameType
1camNameconst char*
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8fovfloat
9p8BOOL
10p9int

Facts

Facts about CREATE_CAM_WITH_PARAMS
Name
CREATE_CAM_WITH_PARAMS
Hash
0x40C23491CE83708E
Namespace
Returns
Cam
Game build
1207

Examples

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

Lua
local cam = Citizen.InvokeNative(0x40C23491CE83708E, -- CREATE_CAM_WITH_PARAMS
  "text", -- const char* camName
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float fov
  false, -- BOOL p8
  0, -- int p9
  Citizen.ResultAsInteger()
)
print(cam)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const cam = Citizen.invokeNative("0x40C23491CE83708E", // CREATE_CAM_WITH_PARAMS
  "text", // const char* camName
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float fov
  false, // BOOL p8
  0, // int p9
  Citizen.resultAsInteger()
);
console.log(cam)
C#
int cam = Function.Call<int>((Hash)0x40C23491CE83708E, // CREATE_CAM_WITH_PARAMS
  "text", // const char* camName
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float fov
  false, // BOOL p8
  0 // int p9
);
All CAMERA natives

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