Recorder::start

From RAGE Multiplayer Wiki
Revision as of 19:42, 30 January 2018 by Kemperrr (talk | contribs) (Created page with "Starts recording a replay.<br> If mode is 0, turns on action replay.<br> If mode is 1, starts recording.<br> If already recording a replay, does nothing.<br> ==Syntax== <synta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Starts recording a replay.
If mode is 0, turns on action replay.
If mode is 1, starts recording.
If already recording a replay, does nothing.

Syntax

mp.game.recorder.start(mode);

Required Arguments

  • mode: Number: recording mode

Return value

Unknown

Example

Client-Side
mp.keys.bind(0x72, false, () => { // F3
  if (!mp.game.recorder.isRecording()) {
    mp.game.recorder.start(1);
  } else {
    mp.game.recorder.stop();
  }
});

See also