Mobile::cellCamActivate

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Client-Side
Function

Js.png JavaScript



Enables the camera view from your phone

NOTE: This does not enable taking photos, this is only the VIEW.

Syntax

mp.game.mobile.cellCamActivate(enable, p1);

Required Arguments

  • enable: Boolean
  • p1: Boolean

Return value

  • Undefined

Example

Up arrow to enable the camera, down arrow to disable the camera

Client-Side
mp.keys.bind(0x28, true, function() {   // Down Arrow
    mp.game.mobile.cellCamActivate(false, false);
});

mp.keys.bind(0x26, true, function() {   // Up Arrow
    mp.game.mobile.cellCamActivate(true, true);
});

See also