Flash documentation
Introductions
A quick and dirty way to store data, unlike the file system the flash API saves data directly to the computers NBT data
The flash api exists in the global space as "flash" or "_G.flash"
Lookup table
| set(key, value) | Sets an item from flash |
| get(key, default = nil) | Gets an item from flash or default |
Functions in detail
set(key, value)
Stores the value under key
Parameters: Key[String], Value[Any primitive] Returns: Any primitiveget(key, default = nil)
Gets the value stored under key, or if the value doesn't exist returns the default parameter, which is by default nil
Parameters: Key[String], Default[Any] default value nil Returns: Any primitive