Configuration
Check the instructions below.
The primary configuration file is config.lua
. Below is a detailed explanation of the settings.
General Settings
Framework
Specify the server framework.
"qbcore"
VoteCommand
The command to participate in a poll.
"vote"
CreateCommand
The command to create a new poll.
"createvote"
Job-Specific Voting
This feature allows targeting specific jobs for votes. Jobs can be defined as follows:
value
The job identifier.
"police"
label
The job label displayed to players.
"Police"
Admin Management
Admins can manage polls and create votes. Add admin identifiers to the Admins
table:
Replace identifier
with the unique identifier for an admin, such as a Discord or Steam ID.
Localized Messages
The script provides localized messages for in-game feedback. Customize the Locales
table to match your server's language.
already_voting
"There is already a vote in progress."
Message shown if a poll is already active.
discord_text
"Best Option: %s with %s vote\nTotal Vote Used: %s"
Discord message for vote results.
creator
"Poll creator: %s"
Displays the poll creator.
no_active_poll
"No polls active!"
Message when no active poll exists.
results
"Poll Results"
Header for poll results.
stats
"Poll Stats"
Header for poll stats.
votecreated
"New vote created! /vote"
Message displayed when a poll is created.
Commands
/vote
Participate in the active poll.
/createvote
Admin-only command to create a new poll.
Last updated