Camera Client
Camera module is a specialized tool for manipulating the camera in RedM.
alias
The module has two alias:
jo.camforjo.camerajo.freecamforjo.camera.freeCamera
JO Functions
jo.camera.freeCamera.getCam()
A function to get the freecam camera
Syntax
jo.camera.freeCamera.getCam()Return Value
Type : integer
The camera id
jo.camera.freeCamera.getPromptGroup()
A function to get the freecam prompt group
Syntax
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
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
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
jo.camera.freeCamera.lockRotate()jo.camera.freeCamera.start()
A function to start the freecam
jo.freecam() & jo.camera.freeCamera() Syntax
jo.camera.freeCamera.start(options)Parameters
options : table Optional
The freecam option options
options.interpolate: number - The interpolate time - default0
options.showPrompts: boolean - Whether to show prompts - defaulttrue
options.range: number - The range of the freecam - default10000
jo.camera.freeCamera.stop()
A function to stop the free camera
Syntax
jo.camera.freeCamera.stop()jo.camera.freeCamera.unlockRotate()
A function to unlock the freecam rotation
Syntax
jo.camera.freeCamera.unlockRotate()