The Lab
CAMERA native

_SET_CAM_DOF_PARAMS

returns void2 paramsbuild 1207

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

C
void _SET_CAM_DOF_PARAMS(Cam cam, Any* args); // 0xE4B7945EF4F1BFB2 b1207

Parameters

#NameType
1camCam
2argsAny* (out pointer)

Facts

Facts about _SET_CAM_DOF_PARAMS
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.

Lua
local args = Citizen.InvokeNative(0xE4B7945EF4F1BFB2, -- _SET_CAM_DOF_PARAMS
  0, -- Cam cam
  Citizen.PointerValueInt() -- Any* args
)
print(args)
JavaScript
const args = Citizen.invokeNative("0xE4B7945EF4F1BFB2", // _SET_CAM_DOF_PARAMS
  0, // Cam cam
  Citizen.pointerValueInt() // Any* args
);
console.log(args)
C#
var argsArg = new OutputArgument();
Function.Call((Hash)0xE4B7945EF4F1BFB2, // _SET_CAM_DOF_PARAMS
  0, // Cam cam
  argsArg // Any* args
);
int args = argsArg.GetResult<int>();
All CAMERA natives

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