A fully interactive and secure in-game presidential voting system for QBCore-based FiveM servers. This system allows players to vote inside a realistic voting booth, while securely logging each vote to a designated Discord channel.
- π€ Support for multiple presidential candidates
- π Display detailed information for each candidate
- π³οΈ In-game voting booth with interactive UI
- β Votes are securely recorded and sent to Discord
- π Anti-duplicate vote system
- π Logs include voter name, citizen ID, selected candidate, and timestamp
- πΌοΈ Custom candidate posters displayed during voting
- QBCore Framework
- Discord Webhook (for vote logging)
ox_libor similar NUI handler- MySQL (for storing voting data)
-
Players walk into the voting booth.
-
They browse candidate info and select one to vote.
-
Vote is recorded securely in the database.
-
A summary of the vote is sent to Discord via webhook.
-
Configure your
config.lua:
- Add candidate data
- Set your Discord webhook
- Customize UI text and appearance
- Import the SQL file to your database if provided.
- One vote per citizen (checked via
citizenid) - Webhook uses embed logs for transparency
- Voting is anonymous and cannot be traced by other players
TshentroTech
For inquiries or suggestions, feel free to open an issue or contact via Discord.