Configuration
⚠️ IMPORTANT THING TO KNOW:
📄 Configuration File Structure
InfinityUIConfig = {}
-- Audio Settings
-- Enable/Disable all menu sounds
InfinityUIConfig.EnableSounds = false
-- Navigation & Search
-- Text shown in the quick jump dialog
InfinityUIConfig.JumpDialog = {
Title = "Go to Button",
Label = "Button number (1 - %d)", -- %d will be replaced by max buttons
Placeholder = ""
}
-- Text shown in the search dialog
InfinityUIConfig.SearchDialog = {
Title = "Filter",
Label = "Search",
Description = "Enter text to search (leave empty to reset)",
Placeholder = ""
}
-- Key mapping to jump to button number
-- Default: "RSHIFT" (Right Shift)
InfinityUIConfig.JumpToKey = "RSHIFT"
-- Configure the command
-- and the text shown in the player mapping settings
InfinityUIConfig.MappingSettings = {
Command = "infinityui_jump_to",
Description = "Menu: Jump to a button (Number)"
}
-- Controls
InfinityUIConfig.ControllerSupport = true
-- Performance
InfinityUIConfig.Debug = false
-- Framework Integration
InfinityUIConfig.CoreResource = "core"
-- Custom Functions
function InfinityUIConfig.GetPlayerMenuSide() ... end
function InfinityUIConfig.PlaySound(audioName, audioRef) ... end🔊 Audio Settings
EnableSounds
🔍 Navigation & Search
SearchKey
JumpToKey
💬 Dialog Text Configuration
JumpDialog
SearchDialog
MappingSettings
🎮 Control Settings
ControllerSupport
⚡ Performance Settings
Debug
🔧 Framework Integration
CoreResource
🎯 Custom Functions
GetPlayerMenuSide()
ESX Implementation
QBCore Implementation
Database Implementation
Simple Toggle
PlaySound()
📋 Full Configuration Template
🎯 Best Practices
🔄 Updating Configuration
1
2
3
❓ FAQ
Last updated