Storage.data

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Used to set some client-related data. Saved on the client, see storage.flush() for more details.
Data is saved in <path to RAGEMP>/client_resources/<server ip>/.storage
Thus it is wiped when player deletes client folder.

Syntax

storage.data.someKey = obj;

Example

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

See also