Storage.data
Client-Side Property
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.
JavaScript Syntax
Syntax
mp.storage.data.someKey = obj;
Example
Client-Side
mp.storage.data.auth = { token: "abcd" };
mp.storage.flush();
See also
- Functions:
- Properties: