This script provides an optimized and easy way for your players to support your server. All logic is handled on the server to mitigate the risk of abuse, and is limited to one reward per FiveM license. Otherwise, you can customize giveReward for your framework as needed.
It was built for qbx_core, but supports license and license2. I am open to PRs building a bridge for nd-core, esx or other frameworks, but I am not interested in creating it myself.
Please don't change the name of the script so I can see how many people actually use it. :)
- qbx_core
- ox_lib
- oxmysql
- Ensure after all dependencies above
- Sign up for an account at trackyserver.com
- Create your server profile
- Go to Account > My Servers > Edit
- Copy your Tracky Server ID and secret key to
config/server.luain the specified areas - Start script and the database tables will be created automatically on first run
- Players can use the
/votecommand to check if they have voted and claim their rewards. - When a player votes, the script makes an API call to TrackyServer to verify the vote.
- If the vote is valid, the player receives a reward based on their license.
- The rewards are calculated based on the number of votes the player has made.
- The script also inserts the vote into the MySQL database for bonus tracking.
- You can customize the rewards and bonus amounts in the
config/server.luafile. - You can modify the notification messages in the
notifyfunction. - You can change the API endpoints and URLs in the
buildUrlfunction. (don't touch)
- This script was created by Castar and Geo City Roleplay.
- For support and more information, visit the Geo City Roleplay Discord server.
- The idea for the script came from Murgator's
FiveM-vote-script. But it is no longer maintained and I wanted a safer and modern vote script for TrackyServer. - TrackyServer for providing a developer API
This script is released under the MIT License.