Storage
Associated namespace: sm.storage
A userdata object representing a storage object.
note
The storage object is only accessible via self.storage
in scripted objects (see classes).
The storage object also allows for data to be saved in creations saved on the Lift.
Functions
load
storage:load()
Server-Only
Returns the data stored in the storage object.
Returns nil if the object contains no data.
storage
[ Storage ]: The storage.
- [ any ]: The data.
save
storage:save( data )
Server-Only
Saves any Lua data into the storage object.
The data will remain stored after closing the world, and is retrieved using load.
Arguments:storage
[ Storage ]: The storage.data
[ any ]: The data.