Election System
A complete and flexible voting system for FiveM (Qbox/QBCore).
✨ Features
Multiple Vote Options
Vote 1 (adjustable weight, default 5 points)
Vote 2 (adjustable weight, default 3 points)
Vote 3 (adjustable weight, default 1 point)
Configurable option to prevent duplicate votes on the same candidate.
Full Admin Panel
Add and remove candidates
Set or close election window (now, hours, days, or specific date/time)
Reset all votes with one click
Manage election info text and prediction field shown in the menu
View live results with points, vote counts, and sorted ranking
Integrations
ox_lib for modern UI
ox_target / E-interaction to open voting locations
oxmysql for database storage
Supports both CitizenID and FiveM license to prevent multicharacter abuse
Discord Logging
Every vote is logged to Discord including:
CitizenID
FiveM ID
FiveM Name
Discord ID
Character Name
Overview of vote 1, 2, and 3
Locale & Config
All texts are easily translatable/editable in
shared.luaConfig file for weighting, identifier type, Discord webhook, and more
📦 Included
Fully working script with all required files
SQL tables for candidates, votes, and metadata
Installation and setup guide
⚙️ Requirements
Qbox or QBCore
ox_lib
oxmysql
ox_target (optional if you only want E-interaction)
💡 Perfect for
City council elections
Faction leader elections
Community events
Any situation where you want a professional and fair voting system on your FiveM server.