Storage.flush()

From RAGE Multiplayer Wiki
Revision as of 17:40, 22 August 2017 by Ragempdev (talk | contribs) (Created page with "Flushes storage.data. It isn't neccessary to flush it after every change since it will be flushed on disconnect, but recommended. ==Syntax== <syntaxhighlight lang="javascr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Flushes storage.data. It isn't neccessary to flush it after every change since it will be flushed on disconnect, but recommended.

Syntax

storage.flush();

Example

mp.storage.data.auth = {"login": "testplayer", "password", "qwerty" };
mp.storage.flush();

See also