{"hash":"0xE4B7945EF4F1BFB2","ns":"CAMERA","name":"_SET_CAM_DOF_PARAMS","slug":"_SET_CAM_DOF_PARAMS","official":false,"named":true,"luaName":"SetCamDofParams","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"cam","type":"Cam"},{"name":"args","type":"Any*"}],"summary":"Set cam DOF and focal settings","descriptions":[{"source":"vorp","format":"text","body":"Set cam DOF and focal settings"}],"examples":[{"lang":"lua","code":"local struct = DataView.ArrayBuffer(10*8)\nstruct:SetFloat32(0*8, 5.0)\nstruct:SetFloat32(1*8, 2.0)\nstruct:SetFloat32(2*8, 128.0)\nstruct:SetFloat32(3*8, 25.0)\nstruct:SetFloat32(4*8, 25.0)\nstruct:SetFloat32(5*8, 60.0)\nstruct:SetInt32(6*8, 1)\nstruct:SetInt32(7*8, 0)\nstruct:SetInt32(8*8, 1)\nstruct:SetInt32(9*8, 1)\nCitizen.InvokeNative(0xE4B7945EF4F1BFB2, cam, struct:Buffer())","source":"vorp"}],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CAMERA/_SET_CAM_DOF_PARAMS","markdownUrl":"https://natives.borderlinerp.com/natives/CAMERA/_SET_CAM_DOF_PARAMS.md","snippets":{"lua":"local args = SetCamDofParams(cam, args)","luaInvoke":"local args = Citizen.InvokeNative(0xE4B7945EF4F1BFB2, cam, Citizen.PointerValueIntInitialized(args))","js":"const args = SetCamDofParams(cam, args);","jsInvoke":"const args = Citizen.invokeNative('0xE4B7945EF4F1BFB2', cam, Citizen.pointerValueIntInitialized(args));","csharp":"var args = new OutputArgument();\nFunction.Call((Hash)0xE4B7945EF4F1BFB2, cam, args);\n// args.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}