Storage.flush()

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



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

JavaScript Syntax

Syntax

mp.storage.flush();

Example

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


See also