SET_CAM_PARAMS
Hash
0xA47BBFFFB83D4D0ARuntime name
SetCamParamsNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBFD8727AEA3CCEBASignature
void SET_CAM_PARAMS(Cam cam, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fieldOfView, Any p8, int graphType1, int graphType2, int rotationOrder, Any p12, Any p13);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
posX | float | — |
posY | float | — |
posZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
fieldOfView | float | — |
p8 | Any | — |
graphType1 | int | — |
graphType2 | int | — |
rotationOrder | int | — |
p12 | Any | — |
p13 | Any | — |
Returns void
Usage
SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13)
-- always works, by hash
Citizen.InvokeNative(0xA47BBFFFB83D4D0A, cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13)JavaScript and C#
SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13);
// by hash
Citizen.invokeNative('0xA47BBFFFB83D4D0A', cam, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, fieldOfView + 0.0000001, p8, graphType1, graphType2, rotationOrder, p12, p13);Function.Call((Hash)0xA47BBFFFB83D4D0A, cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13);- 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.