Skip to content

storage

The storage namespace. Nyx Lua API v1.

storage.get(key: string) -> any

A value this script stored (kept between sessions).

storage.set(key: string, value: any) -> ()

Stores a JSON-able value (nil removes; 256 KB per script).