RedM Natives

SET_CAM_PARAMS

Hash0xA47BBFFFB83D4D0A
Runtime nameSetCamParams
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xBFD8727AEA3CCEBA

Signature

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

NameTypeDescription
camCam—
posXfloat—
posYfloat—
posZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
fieldOfViewfloat—
p8Any—
graphType1int—
graphType2int—
rotationOrderint—
p12Any—
p13Any—

Returns void

Usage

Lua
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#
JavaScript
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);
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.