Parameters ( Clientside )
APhone got a Clientside Save system. Allowing people to make saving parameters in a short amount of time. Also, these parameters can show theirself into the settings app.
Save Value - aphone.Clientside.SaveSetting(string name, any var)
Parameters
Purpose
Name
Unique name
Var
Value
Get Value - aphone.Clientside.GetSetting(string name, any fallback)
Parameters
Purpose
Name
Unique name
Fallback
If the value doesn't hold any values, will return fallback
Create a in-game setting - aphone:RegisterParameters(string catName, string paramName, string short_name, string var_type, any defaultValue, function onChange)
Parameters
Purpose
catName
Category name
paramName
Pretty name of the setting
short_name
Unique name ( For SaveSetting )
var_type
string, num or bool
defaultValue
Default value
onChange
( Optional ) Function to execute
Get in-game setting value - aphone:GetParameters(string catName, string shortName, any fallback)
The values required are the same as RegisterParameters
Change in-game parameters - aphone:ChangeParameters(string catName, string short_name, any newvalue)
The values required are the same as RegisterParameters
Last updated
Was this helpful?