Uniqers scripts
uniqers-millionaire
ESX QBCore QBOX Standalone🏆 WHO WANTS TO BE A MILLIONAIREThe ultimate FiveM quiz game show — climb 13 levels to $5,000,000.A fully immersive 3D studio with real DUI screens, an NPC host, four live…
- Updated
- Nov 29, 2026
- 2 days ago
- Works with
- QBCore
- ESX
- QBox
- Standalone
In this guide
1 page · ← → to browse
Get started
##

# 🏆 Uniqers Millionaire — Installation & Setup GuideWho Wants To Be A Millionaire — in-world DUI game show for FiveM. Compatible with **ESX · QBCore · QBOX · Standalone** (auto-detected). Full cinematic presentation, 4 real lifelines, AI question generation, Discord announcements, and 26 languages out of the box.---## 1. Requirements**Required dependencies** (must be installed and started before this resource):| Dependency | Purpose ||---|---|| `ox_lib` | Core library (UI, callbacks, utils) || `oxmysql` | Database access |**Optional (soft) dependencies** — auto-detected; if missing, only that one feature is disabled:| Dependency | Enables ||---|---|| `ox_target` or `qb-target` | Target-based interaction (otherwise a drawtext prompt is used) || `pma-voice` | Real voice call for the Phone a Friend lifeline || `xsound` | YouTube / URL audio for audio questions (local files always work) |A framework (ESX / QBCore / QBOX) is optional too — the script runs fully in **Standalone fun mode** if none is present (see §3).---## 2. Installation Steps1. **Place the folder** — drop `uniqers-millionaire` into your server resources directory (e.g. `resources/[custom]/uniqers-millionaire`). Keep the folder name exactly `uniqers-millionaire`.2. **Import the database** — run the SQL file once in your database:sql/install.sql
``` Safe to run on both fresh and existing installs (CREATE TABLE IF NOT EXISTS / INSERT IGNORE). It creates 4 tables:- uniqers_millionaire_questions — question pool (normal / audio / image)- uniqers_millionaire_levels — prize ladder (editable from the admin panel)- uniqers_millionaire_games — game history / statistics / cooldown source- uniqers_millionaire_locations — saved studio location3. **Add to server.cfg** — after ox_lib and oxmysql:`cfgensure ox_libensure oxmysqlensure uniqers-millionaire ```
- Set up the prize check item — see §5 below. (Skip this step entirely if you're running Standalone — no item setup is needed there, see §3.)
- Restart / start the server (or
ensure uniqers-millionaire). - Place the studio in-game (see §6). By default it spawns at the template location in
config/locations.lua.
That's it — walk up to the host, interact, and play. 🎉
3. Configuration (config/config.lua)
General
Config.Framework = 'auto' -- 'auto' | 'esx' | 'qbcore' | 'qbox' | 'standalone'Config.Interaction = 'auto' -- 'auto' | 'target' | 'drawtext'Config.Locale = 'en' -- see locales/ folder — 26 languages bundled (§11)Config.Debug = falseLeave both Framework and Interaction on 'auto' unless you want to force a specific one.
Economy
Config.EntryFee = 500 -- entry fee to sit on the hot seat (0 = free)Config.MoneyAccount = 'cash' -- 'cash' | 'bank'Running Standalone? No framework economy exists to charge or pay into, so the\ entry fee is never actually charged and the prize is never actually deposited —\ by design. The script becomes a genuine fun mode: the full game (jokers,\ questions, animations, stats, Discord announcements) plays exactly the same, but\ win/lose/walk-away notifications are worded as a virtual prize so nobody expects\ a real payout. No prize-check item is ever given in this mode — you can skip §5\ entirely if you plan to run Standalone.
Prize ladder
The default 13-level ladder (up to $5,000,000, with configurable "safe haven" checkpoints) is defined in config, but when Config.UseDatabaseLadder = true (default) the admin panel values override it at runtime. Edit prizes live from the panel — no restart needed.
Gameplay
Config.QuestionTime = { -- seconds per question default = 60, perLevel = { [12] = 90, [13] = 120 }, -- optional per-level overrides}Config.RevealDelay = 3000 -- ms of suspense between locking the answer and the revealConfig.WalkAwayEnabled = true -- contestant can quit and take current winningsConfig.AutoStandUp = true -- stand the player up automatically when the game endsConfig.AudioLevel = 5 -- this level always pulls from the audio question poolConfig.ImageLevel = 10 -- this level always pulls from the image question poolCooldown
Config.Cooldown = { enabled = true, value = 1, unit = 'days', -- 'hours' | 'days'}Stored in the database, so it survives a server restart.
4. Discord Webhook (optional)
Announces three "highlight" moments straight to your Discord — no bot, just a webhook URL.
Config.Discord = { enabled = false, -- master switch — nothing is sent while false webhook = '', -- paste your Discord webhook URL here username = 'Who wants be a millionaire.', avatar = '', -- optional avatar image URL events = { millionaire = true, -- someone reaches the top prize safeHaven = true, -- someone locks in a guaranteed checkpoint prize record = true, -- someone's payout beats every payout ever recorded }, colors = { -- Discord embed side-bar colors millionaire = 16766720, safeHaven = 3066993, record = 15158332, }, footer = 'uniqers-millionaire',}Setting up a webhook: Discord channel → Edit Channel → Integrations → Webhooks → New Webhook → copy the URL into Config.Discord.webhook, then set enabled = true.
All embed text is fully localized (uses your Config.Locale), and the "record" check only fires once a payout clears your highest safe-haven prize — so a server's very first small walk-away is never announced as a fake "record."
5. Prize Check — Inventory Item Setup
The prize is given as an item with metadata (owner + prize amount). Using the item deposits the prize into the player's account. Supported: ESX Legacy / QBCore / QBox × ox_inventory / qs-inventory / native. The script auto-detects your inventory — no config change required.
Standalone servers: skip this whole section — no economy, no item, nothing to set up (see §3).
5.1 — Add the item definition
ox_inventory — ox_inventory/data/items.lua
['millionaire_check'] = { label = 'Prize Check', weight = 10, stack = false, close = true, description = 'A millionaire prize check', client = { image = 'millionaire_check.png' }},
stack = falseis important — each check carries its own prize amount and must never merge with another check.
QBCore / QBox — qb-core/shared/items.lua
['millionaire_check'] = { name = 'millionaire_check', label = 'Prize Check', weight = 10, type = 'item', image = 'millionaire_check.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A millionaire prize check'},ESX with native inventory — items SQL table
INSERT INTO items (name, label, weight, rare, can_remove)VALUES ('millionaire_check', 'Prize Check', 10, 0, 1);5.2 — Copy the image
Copy millionaire_check.png from this resource's root folder into your inventory's image directory:
5.3 — Restart
ensure ox_inventoryensure uniqers-millionaireOrder matters only in that the inventory should be started before or alongside this resource. Restarting the server entirely is safest after adding an item.
Metadata carried by the check
No client export is required. ox_inventory routes item usage to ESX.RegisterUsableItem automatically, which this resource registers on start.
Where the money goes: Config.MoneyAccount controls the destination account ('bank' or 'cash') and applies to both the entry fee and the check payout.
6. Admin Panel & Commands
Admin permission:
Config.Admin = { command = 'wwtbam', ace = 'uniqers.millionaire.admin', groups = { esx = { 'admin', 'superadmin' }, qbcore = { 'admin', 'god' }, -- also used for qbox },}Either give a player one of the framework groups above, or grant the ace directly:
add_ace group.admin uniqers.millionaire.admin allowManaging questions — open /wwtbam → Questions tab:
- Add / Edit / Delete questions
- Search and filter by type (Normal / Audio / Image)
- Generate with AI (see §8)
Question types:
- Normal — 4 text options.
- Audio — file in
sounds/, a direct MP3 URL, or a YouTube link (URL/YouTube needsxsound). Pulled atConfig.AudioLevel. Files must be 5–15 seconds — validated automatically. - Image — file in
images/or a direct image URL. Pulled atConfig.ImageLevel.
7. Placing / Moving the Studio
The system uses one studio location.
- Go in-game as an admin and run
/whomilchangecoord. - A semi-transparent preview of the full setup appears (all props intact).
- Aim where you want it, rotate with arrow keys / scroll, adjust height with ↑/↓.
- Press Enter to confirm.
All coordinates (chairs, tables, tablets, board, monitors, sit & interaction points) are auto-calculated, saved to the database, and instantly synced to every player. The map blip moves too.
Reset any time with /whomilchangecoord reset.
Do not add
[2],[3]… entries toConfig.Locations— the system is single-location and extra entries are ignored.
8. AI Question Generation (optional)
The 🤖 Generate with AI button fills your database with fresh questions, in your Config.Locale language, with difficulty scaling per level.
Config.AI = { enabled = true, provider = 'groq', -- 'claude' | 'openai' | 'gemini' | 'groq' | 'openrouter' apiKey = '', -- ⚠ enter your own API key model = '', -- empty = provider default questionsPerLevel = 2, timeout = 60000, autoRegen = { enabled = false, -- true = automatic daily refresh time = '05:00', -- server time, 24h 'HH:MM' questionsPerLevel = 3, keepMedia = true, -- keep audio/image questions, refresh only normal ones catchUp = true, -- run a missed refresh shortly after startup skipIfPlaying = true, -- never swap the pool mid-game },}Get an API key from your chosen provider:
⚠ Replace the bundled API key with your own before going live. Audio/image levels are automatically skipped by the generator — they need a real media file.
9. Anti-Cheat (FocusGuard)
While a player is on the hot seat, alt-tabbing / minimizing to Google an answer = instant disqualification (prize $0, result logged, cooldown applied).
Config.FocusGuard = { enabled = true, graceMs = 4000, -- grace period before monitoring starts after sitting down blockPause = true, -- completely block the ESC (pause menu) during the game forbidAlt = true, forbidTab = true, altHoldMs = 2000, -- ALT held too long = violation (backup layer when forbidAlt = false) nuiGuard = true, -- catches WIN key + general focus loss via invisible NUI focus}⚠ If your push-to-talk key is ALT, set
forbidAlt = false(thealtHoldMslayer stays active as a backup).
Test it: run /focusguardtest — it watches all detection layers for 20 seconds and shows which ones trigger on your setup (on screen + F8 console) without disqualifying anyone. If you see "IsRawKeyDown: NONE", your server artifact is old — update it (2023+ artifact required) to enable the raw-key layer.
Also included — arena voice isolation:
Config.VoiceMute = { enabled = true, radius = 30.0 }Everyone within range is muted during a game (contestant exempt during the phone joker call).
10. Lifelines (Jokers)
Config.Jokers = { fifty = true, -- 50:50 — removes two wrong answers phone = true, -- phone a friend — call an online player by server ID audience = true, -- ask the audience — nearby spectators vote in real time double = true, -- double answer — one wrong guess allowed (unlocks at level 6)}- 50:50 — removes two wrong answers, the correct one is never at risk.
- Phone a Friend — calls an online player by server ID; real voice call via
pma-voice; the friend sees the question ifConfig.Phone.showQuestionToFriend = true, and their picked answer marks live on the contestant's screen. - Ask the Audience — nearby real players vote (
Config.Audience.playerVoting); if turnout is low it's blended with a simulated crowd (Config.Audience.simulatedVoters, weighted byrealVoteWeight) so it always produces a result — and the contestant tablet + spectator billboard always show the exact same percentages. - Double Answer — unlocks once the contestant reaches question 6.
Set any lifeline to false to disable it entirely.
11. Localization — 26 Languages Bundled
locales/ ships with 26 ready-to-use languages:
tr en de fr es pt it nl pl ru ar ro uk cs sk hu el bg sr hr sv id vi zh fa az
Every screen — contestant tablet, spectator billboard, admin panel, notifications, and Discord announcements — is fully translated in all 26. Pick one with:
Config.Locale = 'tr' -- any code from the list aboveTo add a language that isn't bundled:
- Copy
locales/en.luatolocales/xx.lua(your language code). - Translate the values (keep the same keys and
%splaceholders). - Set
Config.Locale = 'xx'.
If a key is ever missing in a language file, the script automatically falls back to English — no screen is ever left blank.
12. Performance (2000+ pop friendly)
Config.Dui = { renderDistance = 45.0, -- DUI panels created/destroyed around this distance interactDist = 2.5, -- max raycast distance for the contestant's monitor}Config.WatchDistance = 60.0 -- spectator live-update subscription rangeThe server only streams game updates to subscribed watchers near the studio, and DUI panels only exist while a player is nearby — so the script stays light even on high-population servers.
13. Troubleshooting / FAQ
Panel won't open with /wwtbam → You lack admin rights. Add the ace (add_ace group.admin uniqers.millionaire.admin allow) or add your framework group in Config.Admin.groups.
"Generate with AI" errors → Config.AI.apiKey is empty or invalid. Add a valid key for your provider.
YouTube/URL audio doesn't play → xsound isn't installed/started. Local sounds/ files still work.
Phone joker has no voice → pma-voice isn't installed/started, or Config.Phone.voice.enabled = false.
No target prompt → No ox_target/qb-target found; it falls back to drawtext. Force it with Config.Interaction.
Anti alt-tab not catching → Run /focusguardtest. If it shows "IsRawKeyDown: NONE", update your server artifact.
Studio in the wrong place after restart → It loads from the database. Move it with /whomilchangecoord (saved permanently) or reset with /whomilchangecoord reset.
Discord webhook silent → Config.Discord.enabled is still false, or the webhook URL is missing/wrong. Set Config.Debug = true and watch the console for Discord webhook error lines.
"This check is invalid or has already been used." → No prize metadata found on the item (see §5). With Config.Debug = true you'll see Check rejected — no prize metadata | src:X | inv:Y in console.
Check never appears, prize paid as cash instead → The item definition is missing from your inventory, or its name isn't exactly millionaire_check (see §5.1). The player is never left unpaid — the prize falls back to a direct deposit automatically.
On start you should see (with Config.Debug = true):
[uniqers-millionaire] framework: esx | inventory: ox[uniqers-millionaire] millionaire_check useable item registered (esx/ox)If inventory: shows default while you run ox_inventory, ox_inventory didn't start — check your console for start errors.
14. Support
💬 Discord: Discord
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord