Перейти к содержанию

Mobile::cellCamActivate

Материал из RAGE MP Wiki Archive
Версия от 00:21, 23 января 2019; imported>MrPancakers
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Client-Side
Function

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения 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