Skip to content

feat(GlobalMethods): Add GetConfigValue method #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Aldori15
Copy link

@Aldori15 Aldori15 commented Aug 22, 2025

Adds a new GetConfigValue method to GlobalMethods. This method will return the value of the config name provided. It will return a string by default, so you can always use tonumber() to convert a number value. If the value is true/false, it will return a real boolean instead of string; as such: "true" / "false".

Usage:
value = GetConfigValue("config-name")

image

Aldori15 and others added 4 commits August 22, 2025 11:58
 - Added new function for getting config values.

  - Usage:
   - "GetConfigValue("config-name")"

Thanks Sylian!
If the config value is true or false, we should return a real boolean.  Don't return "true" or "false" string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants