Bring your town’s politics to life!
Whether you are electing a new Sheriff for Valentine, a Mayor for Saint Denis, or just holding a local town hall vote, OGG Elections provides a seamless, immersive, and highly optimized voting experience for your players.
Built with performance and flawless execution in mind, this script features a foolproof NPC interaction system and a robust admin panel that guarantees a smooth election event every single time.
Key Features
Exclusive Admin Control Panel: Authorized admins can easily manage the entire election process via a dedicated UI. Start/stop elections, set custom topics, adjust the timer, and add candidates on the fly using smooth onscreen input boxes.
Fail-Safe Permission System: Tired of framework API crashes when checking admin groups? We bypassed the unstable natives! Our script uses a direct, ultra-fast database query to verify admin status, ensuring the control panel opens instantly and never crashes.
Cinematic Global Announcements: Keep the whole server engaged! When an election starts, ends, or a winner is declared, beautiful screen-centered notifications (with custom color highlights) are broadcast to all players.
Fair & Secure Voting: Strict one-vote-per-character policy. The system securely tracks voters during the active session to prevent any duplicate entries.
Bulletproof NPC Logic: Say goodbye to disappearing or “ghost” NPCs. Our custom entity handling ensures the Ballot Clerk NPC spawns perfectly with collision, correct heading, and zero duplication issues.
Zero-Impact Performance: Extremely optimized code. The script runs at 0.00ms when idle and only processes interaction logic when players are directly in front of the ballot box.
Highly Configurable: The config.luais completely open! Easily customize the NPC model, exact coordinates, interaction keys, and all UI text.
Multi-Language Support: Comes out-of-the-box with English and Turkish locales. Easily add your own language via the config.
How It Works
- For Admins (
[R]Key): Approach the election NPC to open the Admin Panel. Define the election topic (e.g., “Sheriff Election”), set the duration in minutes, and add your candidates. Hit “Start Election” to notify the server! - For Players (
[G]Key): Approach the NPC while an election is active to open the Voting Ballot. Select your preferred candidate and cast your vote.
Technical Details & Dependencies
- Framework: VORP Core
- Database: oxmysql
- Dependencies:
vorp_menu,vorp_inputs(or standard onscreen keyboard fallback).
Required Information Table
| Information | Details |
|---|---|
| Code is accessible | No (Tebex Escrow) / config.lua is 100% unlocked |
| Subscription-based | No |
| Lines (approximately) | ~500 lines |
| Requirements | VORP Core, oxmysql, vorp_menu |
| Support | Yes |
