CREATE_CAM
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
Cam CREATE_CAM(const char* camName, BOOL p1); // 0xE72CDBA7F0A02DD6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | camName | const char* |
| 2 | p1 | BOOL |
Facts
| 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.
local cam = Citizen.InvokeNative(0xE72CDBA7F0A02DD6, -- CREATE_CAM
"text", -- const char* camName
false, -- BOOL p1
Citizen.ResultAsInteger()
)
print(cam)const cam = Citizen.invokeNative("0xE72CDBA7F0A02DD6", // CREATE_CAM
"text", // const char* camName
false, // BOOL p1
Citizen.resultAsInteger()
);
console.log(cam)int cam = Function.Call<int>((Hash)0xE72CDBA7F0A02DD6, // CREATE_CAM
"text", // const char* camName
false // BOOL p1
);Related CAMERA natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.