get
Client-side
Server-side
Shared
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function gets a setting's value, or a group of settings' values, from the settings registry.
Note
Your settings cannot have a period (.) in them. This character is reserved. Read below for more details.
Syntax
var get ( string settingName )Required Arguments
- settingName: MISSING_PARAM_DESC
Returns
- var: value
Returns the value of the setting if a single setting was specified and found, or a table (in associative-array form) containing:
Code Examples
shared
Example returns a value from the settings registry with the name "respawnTime".
function getMySetting() if get ( "respawnTime" ) then return get ( "respawnTime" ) end return falseend