server/config.lua
The server config file for 'orbit-dynamichud'.
🖥️ Server Configuration
The server/config.lua file controls server-side command permissions and availability for Orbit Dynamic HUD.
This configuration determines which administrative commands are enabled and which permission groups are allowed to use them.
It acts as the permission layer for command features documented in the Commands section.
🎯 Purpose
This file allows you to:
Enable or disable HUD-related commands
Restrict commands to specific permission groups
Control access without editing command logic
Maintain consistent permission handling across frameworks
The configuration is designed to work with permission systems such as:
ox_lib groups
QBCore permissions
ACE / custom group wrappers
🧩 Command Structure
Each command follows this structure:
Fields
enabled
Enables or disables the command entirely
allow
Permission group required to use the command
If allow is an empty string, the command is available to everyone.
💰 Cash Command
Displays a player’s cash balance in chat.
Behavior
Shows the caller’s cash by default
Accepts a player ID to check another player
Requires permission if configured
Typical use cases:
Staff checks
Support situations
Debugging economy issues
🏦 Bank Command
Displays a player’s bank balance.
Behavior
Same permission logic as the cash command
Useful for economy monitoring and support
😰 Set Stress Command
Allows staff to set a player’s stress value.
Behavior
Can target self or another player
Values are clamped within the allowed range
Updates the player state bag used by the HUD
Common uses:
Testing effects
Roleplay events
Support corrections
🔐 Permission Handling
The allow value is evaluated by the command registration layer (ox_lib in your implementation).
Examples:
'group.admin'
Admin group only
'group.mod'
Moderators
''
Public command
You may replace these with your server’s group identifiers.
⚠️ Important Notes
Disabling a command prevents registration entirely
Changing permissions does not require editing handlers
Permission naming must match your framework
Leaving commands public can expose sensitive information
✅ Best Practices
Restrict economy commands to staff
Keep
setstressadmin-onlyDocument custom permission groups
Avoid editing command logic when permissions can be configured here
📦 Full Configuration
🔎 Summary
server/config.lua is the access control layer for HUD server commands.
By centralizing command permissions, the file ensures administrative tools remain secure while allowing flexibility for different server environments.
Last updated