Camera::getDofParam
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
Retrieves the current value of a specific Depth of Field (DOF) parameter for the active camera.
Syntax
camera.getDofParam(paramHash);
Required Parameters
- paramHash: number - The hash of the DOF parameter to retrieve.
Return Value
- 'bool' - The value of the specified DOF parameter. The type can vary based on the parameter.
Example
// Retrieve the value of a DOF parameter
const dofParamHash = mp.game.joaat("dof_blur_amount");
const value = camera.getDofParam(dofParamHash);
mp.gui.chat.push(`DOF parameter value: ${value}`);