The Lab
CAMERA native

SET_CAM_PARAMS

returns void14 paramsbuild 1207

Sets the position, rotation and field of view of cam in one call, with optional interpolation graph types.

Signature

C
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); // 0xA47BBFFFB83D4D0A b1207

Parameters

#NameType
1camCam
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8fieldOfViewfloat
9p8Any
10graphType1int
11graphType2int
12rotationOrderint
13p12Any
14p13Any

Facts

Facts about SET_CAM_PARAMS
Name
SET_CAM_PARAMS
Hash
0xA47BBFFFB83D4D0A
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xA47BBFFFB83D4D0A, -- SET_CAM_PARAMS
  0, -- Cam cam
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float fieldOfView
  0, -- Any p8
  0, -- int graphType1
  0, -- int graphType2
  0, -- int rotationOrder
  0, -- Any p12
  0 -- Any p13
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xA47BBFFFB83D4D0A", // SET_CAM_PARAMS
  0, // Cam cam
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float fieldOfView
  0, // Any p8
  0, // int graphType1
  0, // int graphType2
  0, // int rotationOrder
  0, // Any p12
  0 // Any p13
);
C#
Function.Call((Hash)0xA47BBFFFB83D4D0A, // SET_CAM_PARAMS
  0, // Cam cam
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float fieldOfView
  0, // Any p8
  0, // int graphType1
  0, // int graphType2
  0, // int rotationOrder
  0, // Any p12
  0 // Any p13
);
All CAMERA natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.