Camera::setDofParam
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
JavaScript
Summary
Sets a specific Depth of Field (DOF) parameter for the active camera.
Syntax
camera.setDofParam(paramHash, value);
Required Parameters
- paramHash: number - The hash of the DOF parameter to set.
- value: bool - The value to assign to the parameter.
Return Value
- undefined
Example
// Set a DOF parameter value
const dofParamHash = mp.game.joaat("dof_blur_amount");
const newValue = 0.8;
camera.setDofParam(dofParamHash, newValue);
mp.gui.chat.push("DOF blur amount updated.");