CREATE_CAMERA
Hash
0x57CDF879EA466C46Runtime name
CreateCameraNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5E3CF89C6BCCA67DSignature
Cam CREATE_CAMERA(Hash camHash, BOOL p1);Parameters
| Name | Type | Description |
|---|---|---|
camHash | Hash | — |
p1 | BOOL | — |
Returns Cam
Usage
local retval = CreateCamera(camHash, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0x57CDF879EA466C46, camHash, p1, Citizen.ResultAsInteger())JavaScript and C#
const retval = CreateCamera(camHash, p1);
// by hash
const retval = Citizen.invokeNative('0x57CDF879EA466C46', camHash, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x57CDF879EA466C46, camHash, p1);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.