Skip to content

Camera Client ​

Camera module is a specialized tool for manipulating the camera in RedM.

alias ​

The module has two alias:

  • jo.cam for jo.camera
  • jo.freecam for jo.camera.freeCamera

JO Functions ​

jo.camera.freeCamera.getCam() ​

A function to get the freecam camera

Syntax ​

lua
jo.camera.freeCamera.getCam()

Return Value ​

Type : integer

The camera id


jo.camera.freeCamera.getPromptGroup() ​

A function to get the freecam prompt group

Syntax ​

lua
jo.camera.freeCamera.getPromptGroup()

Return Value ​

Type : string

The prompt group name


jo.camera.freeCamera.isActive() ​

A function to check if the freecam is active

Syntax ​

lua
jo.camera.freeCamera.isActive()

Return Value ​

Type : boolean

Whether the freecam is active


jo.camera.freeCamera.isLocked() ​

A function to check if the freecam rotation is locked

Syntax ​

lua
jo.camera.freeCamera.isLocked()

Return Value ​

Type : boolean

Whether the freecam rotation is locked


jo.camera.freeCamera.lockRotate() ​

A function to lock the freecam rotation

Syntax ​

lua
jo.camera.freeCamera.lockRotate()

jo.camera.freeCamera.start() ​

A function to start the freecam

Alias jo.freecam() & jo.camera.freeCamera()

Syntax ​

lua
jo.camera.freeCamera.start(options)

Parameters ​

options : table Optional

The freecam option options

options.interpolate : number - The interpolate time - default 0

options.showPrompts : boolean - Whether to show prompts - default true

options.range : number - The range of the freecam - default 10000


jo.camera.freeCamera.stop() ​

A function to stop the free camera

Syntax ​

lua
jo.camera.freeCamera.stop()

jo.camera.freeCamera.unlockRotate() ​

A function to unlock the freecam rotation

Syntax ​

lua
jo.camera.freeCamera.unlockRotate()

Last updated: