Methods
adjustChatSuggestions
This function will refresh all chat command suggestions. Only commands which the user can access will show suggestions.
user.adjustChatSuggestions(job --[[string]], wl --[[table]]);
-- job?: the current character job
-- wl?: the current character whitelist dictionary
set
This function is used to set a field in the user object. The collection of fields which exist for a user are declared in the Attributes guide.
user.set(key --[[string]], value --[[any]]);
-- key: the field to be updated
-- value: the new value assigned to the field
get
This function is used to return a field from the user object. The collection of fields which exist for a user are delared in the Attributes guide.
local value --[[any]] = user.get(key --[[string]]);
-- key: the field to return
displayMoney
This function will temporarily show your money display.
user.displayMoney(money --[[int]]);
-- money: the money of the character
setSessionVar
This function will store a temporary session variable of a user.
user.setSessionVar(key --[[string]], value --[[any]]);
-- key: the field to be updated
-- value: the new value assigned to the field
getSessionVar
This function will return a temporary session variable of a user.
local value --[[any]] = user.get(key --[[string]]);
-- key: the field to return
getIdentifier
This function will return the identifier of a user.
local identifier --[[string]] = user.getIdentifier();
getSteamId
This function will return the steam ID of a user.
local steamId --[[string]] = user.getSteamId();
getComId
This function will return the steam community ID of a user.
local comId --[[int]] = user.getComId();
getGroup
This function will return the group of a user.
local group --[[string]] = user.getGroup();
isStaff
This function will return whether a user belongs to a staff group.
local isStaff --[[bool]] = user.isStaff(includeDev --[[bool]]);
-- includeDev?: whether developer groups should be included