_SET_CAM_DOF_PARAMS
Based on its name and signature, here is our best reading:
Sets depth of field parameters on cam from the structure args; the layout of that structure is not well documented.
Signature
void _SET_CAM_DOF_PARAMS(Cam cam, Any* args); // 0xE4B7945EF4F1BFB2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | cam | Cam |
| 2 | args | Any* (out pointer) |
Facts
| Name | _SET_CAM_DOF_PARAMS |
|---|---|
| Hash | 0xE4B7945EF4F1BFB2 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local args = Citizen.InvokeNative(0xE4B7945EF4F1BFB2, -- _SET_CAM_DOF_PARAMS
0, -- Cam cam
Citizen.PointerValueInt() -- Any* args
)
print(args)const args = Citizen.invokeNative("0xE4B7945EF4F1BFB2", // _SET_CAM_DOF_PARAMS
0, // Cam cam
Citizen.pointerValueInt() // Any* args
);
console.log(args)var argsArg = new OutputArgument();
Function.Call((Hash)0xE4B7945EF4F1BFB2, // _SET_CAM_DOF_PARAMS
0, // Cam cam
argsArg // Any* args
);
int args = argsArg.GetResult<int>();Related CAMERA natives
- _SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE
- _SET_CAM_FOCUS_DISTANCE
- SET_CAM_PARAMS
- _SET_GAMEPLAY_CAM_INITIAL_HEADING
- _SET_GAMEPLAY_CAM_INITIAL_PITCH
- _SET_GAMEPLAY_CAM_INITIAL_ZOOM
- _SET_START_CINEMATIC_DEATH_CAM
- CREATE_CAM_WITH_PARAMS
- SET_CAM_ACTIVE
- SET_CAM_ACTIVE_WITH_INTERP
- SET_CAM_AFFECTS_AIMING
- SET_CAM_CONTROLS_MINI_MAP_HEADING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.