The Lab
CAMERA native

CREATE_CAM

returns Cam2 paramsbuild 1207

Creates a script camera of the type camName (for example DEFAULT_SCRIPTED_CAMERA) and returns its handle.

Activate it with SET_CAM_ACTIVE and RENDER_SCRIPT_CAMS.

Signature

C
Cam CREATE_CAM(const char* camName, BOOL p1); // 0xE72CDBA7F0A02DD6 b1207

Parameters

#NameType
1camNameconst char*
2p1BOOL

Facts

Facts about CREATE_CAM
Name
CREATE_CAM
Hash
0xE72CDBA7F0A02DD6
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(0xE72CDBA7F0A02DD6, -- CREATE_CAM
  "text", -- const char* camName
  false, -- BOOL p1
  Citizen.ResultAsInteger()
)
print(cam)
JavaScript
const cam = Citizen.invokeNative("0xE72CDBA7F0A02DD6", // CREATE_CAM
  "text", // const char* camName
  false, // BOOL p1
  Citizen.resultAsInteger()
);
console.log(cam)
C#
int cam = Function.Call<int>((Hash)0xE72CDBA7F0A02DD6, // CREATE_CAM
  "text", // const char* camName
  false // BOOL p1
);
All CAMERA natives

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