Recorder::start

From RAGE Multiplayer Wiki
Revision as of 12:52, 26 October 2018 by Rootcause (talk | contribs) (Replaced HTML with template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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