UI
Quality of life scripts for your FiveM server. Performance optimized resources that install in minutes, with free updates and support that actually answers.
config/ui.lua
lua
Config = Config or {}
---Config related to the NUI (sent to the React UI on load)
Config.UI = {
---Server Name
serverName = 'Cadburry Scripts',
---Server Logo
serverLogo = 'https://i.ibb.co/k6MPLz4k/cadtransparent.png',
---Animated intro loading screen shown before the character selection
introLoading = {
---true: play the intro loading screen then load characters, false: load characters directly
enabled = false,
---Status messages cycled through while loading (shown in order, one at a time)
messages = {
'Getting you in',
'Initializing database',
'Connecting to database',
'Getting character info',
'Almost there',
},
---Minimum time (ms) each message stays on screen before the next one appears
stepDwell = 700,
---How long (ms) the big "Welcome to {server}" finale lingers before the curtains open
welcomeDwell = 1600,
---Curtain split + welcome fade out duration (ms)
revealDuration = 1500,
},
---Loading screen when connecting to server (and the character-screen music player)
---is configured in `config/loading.js` - NOT here. The loadscreen is shown by the
---game before any script runs, so it can never receive Lua config over NUI.
---To Enable/Disable the loading screen check [docs]\LOADING.md
---Whether players are allowed to delete their own characters (gates the confirm UI)
allowCharacterDelete = true,
---Nationalities selectable in the character creation form
countries = {
"United States", "United Kingdom", "Canada", "Australia", "Germany", "France", "Japan", "China", "Brazil", "Russia",
"India", "Italy", "Spain", "Mexico", "South Korea", "Netherlands", "Turkey", "Switzerland", "Sweden", "Poland",
"Belgium", "Norway", "Austria", "Denmark", "Finland", "New Zealand", "Ireland", "Singapore", "Portugal", "Greece",
"South Africa", "Argentina", "Egypt", "Thailand", "Indonesia", "Malaysia", "Vietnam", "Philippines", "Israel", "UAE",
"Saudi Arabia", "Ukraine", "Czech Republic", "Hungary", "Romania", "Chile", "Colombia", "Peru", "Pakistan", "Bangladesh",
"Nigeria", "Kenya", "Morocco", "Iran", "Iraq", "Qatar", "Kuwait", "Croatia", "Serbia", "Slovakia"
},
---Badge background/border classes keyed by the framework job name (lowercase).
---'default' is used for any job not listed here.
jobColors = {
police = 'bg-nexus-police/10 text-nexus-police border-nexus-police/20',
ambulance = 'bg-nexus-ems/10 text-nexus-ems border-nexus-ems/20',
default = 'bg-nexus-civ/10 text-nexus-civ border-nexus-civ/20',
},
---Text color classes keyed by the framework job name (lowercase).
---'default' is used for any job not listed here.
jobTextColors = {
police = 'text-nexus-police',
ambulance = 'text-nexus-ems',
default = 'text-nexus-civ',
},
}