Skip to content

rq.store.global ​

since 1.8.0

The same calls as rq.store, in one file for every save profile.

The file is rqmod-global.json in the base profile's save folder. Use it for settings, such as what a mod's Config page changes. Its keys are apart from rq.store's.

lua
local on = rq.store.global.get("on", true)
rq.store.global.set("on", not on)

Properties ​

NameTypeDescription
getfun(key: string, default?: any): number|string|boolean|nilReads a key, or returns default.
setfun(key: string, value: number|string|boolean|nil)Writes a key; nil deletes it.
deletefun(key: string)Deletes a key.
keysfun(): string[]Lists this mod's keys.