CREATE_CAMERA
Creates a script camera from the type hash camHash and returns its handle.
Signature
Cam CREATE_CAMERA(Hash camHash, BOOL p1); // 0x57CDF879EA466C46 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | camHash | Hash |
| 2 | p1 | BOOL |
Facts
| 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.
local cam = Citizen.InvokeNative(0x57CDF879EA466C46, -- CREATE_CAMERA
GetHashKey("name"), -- Hash camHash
false, -- BOOL p1
Citizen.ResultAsInteger()
)
print(cam)const cam = Citizen.invokeNative("0x57CDF879EA466C46", // CREATE_CAMERA
GetHashKey("name"), // Hash camHash
false, // BOOL p1
Citizen.resultAsInteger()
);
console.log(cam)int cam = Function.Call<int>((Hash)0x57CDF879EA466C46, // CREATE_CAMERA
(uint)API.GetHashKey("name"), // Hash camHash
false // BOOL p1
);Related CAMERA natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.