Skip to main content

CloudVariableBank.SetVariable(string key, any value)

Creates a cloud variable with specified key and value. If the key already exists, it updates its value.

Parameters:

NameTypeDescription
keystringThe key to associate the value to.
valueanyThe value of this variable.

Usage

---@type CloudVariableBank
local cloudvariablebank;

---@type string
local key;

---@type any
local value;


cloudvariablebank.SetVariable(key, value)

Extra Detail

Note that the only allowed types can be saved in the server.