config.js
Found in the resource's html/ folder. It tunes the NUI (minigames, editor, shop).
JavaScript
window.config = {
numberFormatting: [/\B(?=(\d{3})+(?!\d))/g, " "],
soundVolume: 0.25,
};Number Formatting
- Description: A
[pattern, replacement]pair applied to every number shown in the UI. The default groups thousands with a space. - Example:
1500renders as1 500. Use[/\B(?=(\d{3})+(?!\d))/g, ","]to render it as1,500instead.
Sound Volume
- Description: Master volume for the UI sounds (minigame clicks, success/fail stingers).
0mutes them,1is full volume. - Example:
0.25plays the interface sounds at a quarter of full volume.