CREATE_CAM_WITH_PARAMS
Hash
0x40C23491CE83708ERuntime name
CreateCamWithParamsNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB51194800B257161Signature
Cam CREATE_CAM_WITH_PARAMS(const char* camName, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fov, BOOL p8, int p9);Parameters
| Name | Type | Description |
|---|---|---|
camName | const char* | — |
posX | float | — |
posY | float | — |
posZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
fov | float | — |
p8 | BOOL | — |
p9 | int | — |
Returns Cam
Usage
local retval = CreateCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9)
-- always works, by hash
local retval = Citizen.InvokeNative(0x40C23491CE83708E, camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9, Citizen.ResultAsInteger())JavaScript and C#
const retval = CreateCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);
// by hash
const retval = Citizen.invokeNative('0x40C23491CE83708E', camName, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, fov + 0.0000001, p8, p9, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x40C23491CE83708E, camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.