Camera::setDofParam

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax


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.");


See Also