The Lab
CAMERA native

CREATE_CAMERA

returns Cam2 paramsbuild 1207

Creates a script camera from the type hash camHash and returns its handle.

Signature

C
Cam CREATE_CAMERA(Hash camHash, BOOL p1); // 0x57CDF879EA466C46 b1207

Parameters

#NameType
1camHashHash
2p1BOOL

Facts

Facts about CREATE_CAMERA
Name
CREATE_CAMERA
Hash
0x57CDF879EA466C46
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(0x57CDF879EA466C46, -- CREATE_CAMERA
  GetHashKey("name"), -- Hash camHash
  false, -- BOOL p1
  Citizen.ResultAsInteger()
)
print(cam)
JavaScript
const cam = Citizen.invokeNative("0x57CDF879EA466C46", // CREATE_CAMERA
  GetHashKey("name"), // Hash camHash
  false, // BOOL p1
  Citizen.resultAsInteger()
);
console.log(cam)
C#
int cam = Function.Call<int>((Hash)0x57CDF879EA466C46, // CREATE_CAMERA
  (uint)API.GetHashKey("name"), // Hash camHash
  false // BOOL p1
);
All CAMERA natives

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