Storage.flush()

From RAGE Multiplayer Wiki
Revision as of 18:21, 24 April 2018 by BrainDed (talk | contribs)

Flushes storage.data. It isn't neccessary to flush it after every change since it will be flushed on disconnect, but recommended. Data is saved in <path to RAGEMP>/client_resources/<server ip>.storage

Syntax

storage.flush();

Example

mp.storage.data.auth = { token: "abcd" };
mp.storage.flush();

See also