My5FiveM resource discovery
[STANDALONE] VOTEKICK
Other

[STANDALONE] VOTEKICK

Store · dr3ydz
14.27 EUR(≈15.45 USD)one-time
Report incorrect information

Prices and availability may change. Confirm the terms in the original store.

About this resource

Would you like to have a vote system to kick or ban players? Then, this is helpful for you. Features Vote Kick Command ( /votekick ) : Initiates a vote to kick a player from the server. Requires the player ID and a reason for the kick. Checks if a vote is already in progress. Validates the player ID to ensure the player is connected. Checks if the player is in the whitelist to prevent kicking whitelisted players. Vote Ban Command ( /voteban ) : Initiates a vote to ban a player from the server. Requires the player ID and a reason for the ban. Checks if a vote is already in progress. Validates the player ID to ensure the player is connected. Checks if the player is in the whitelist to prevent banning whitelisted players. Voting Process : Players can vote "yes" ( /yes ) or "no" ( /no ) on the active vote. Tracks the number of "yes" and "no" votes. Displays the current vote count to all players. Vote Duration : The vote lasts for a configurable duration (default is 60 seconds). Automatically ends the vote after the duration expires. Vote Outcome : If the majority of votes are "yes", the target player is kicked or banned. If the majority of votes are "no", the vote fails. Notifies all players of the vote outcome. Ban Duration : Configurable ban duration (default is 10 minutes). Temporarily bans the player and saves the ban information to the database. Whitelist : Prevents certain players (identified by their Steam identifiers) from being kicked or banned. Configurable whitelist to add or remove identifiers. Database Integration : Uses mysql-async for database operations. Saves ban information to the database. Checks if a player is banned when they try to join the server. Removes expired bans from the database. Store the information about steam identifier of banned player and from who started the vote to prevent abuse and solve later, time duration, and reason. Player Connection Check : Validates if the player ID exists and is connected before initiating a vote. Prevents kicking or banning non-existent or disconnected players. Deny banned players connection until time is over.