Skip to content

Common - New Function: cba_fnc_getCfgDataRandom#1758

Merged
PabstMirror merged 3 commits intoCBATeam:masterfrom
OverlordZorn:getCfgDataRandom
May 3, 2025
Merged

Common - New Function: cba_fnc_getCfgDataRandom#1758
PabstMirror merged 3 commits intoCBATeam:masterfrom
OverlordZorn:getCfgDataRandom

Conversation

@OverlordZorn
Copy link
Copy Markdown
Contributor

New Function: cba_fnc_getCfgDataRandom

This function extracts data from a config property.
If it is an Array, it will select a random entry from the array, otherwise it will simply return the provided data.
Will check if _cfg exists, if not, returns nil.

@PabstMirror PabstMirror added this to the 3.18.4 milestone May 2, 2025
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@PabstMirror PabstMirror merged commit de3ef9f into CBATeam:master May 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants