Camera::setActive

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Description

Set camera as active/inactive.

Syntax

camera.setActive(active);

Required Arguments

  • active: Boolean

Return value

  • Undefined

Example

Creates a camera with the stated positions and rendering it.

Client-Side
let cam = mp.cameras.new('default', new mp.Vector3(0,0,0), new mp.Vector3(0,0,0), false);
cam.setActive(true);

mp.game.cam.renderScriptCams(true, false, 0, true, false);

See also