Vote rewards for FiveM

Unzip a resource, set two lines in server.cfg, and players type /claimvote for cash or items in ox, QBCore or ESX.

Create your vote page

Sign up, name your server and choose FiveM. Setup fills in the usual settings: players enter “Your in-game name” and claim with /claimvote.

You should now see: Your vote page at its own address.

Add your toplists

Paste the link of your server on each list. For this game, VoteRank, Top-Games.net, Serveurly and others are ready.

You should now see: Each list on your vote page.

Choose the reward

money, bank, or an inventory item name.

You should now see: The reward under “What you earn” on your page.

Create an API key

Open Game server in the dashboard and create a key. It is shown once. You need it in the next step.

Connect the game

Follow the steps below.

Try it

Open a vote site in your dashboard, use Send a test vote with your own name, then type /claimvote in the game.

You should now see: The reward in your game, and “Your game has used a key”.

FiveM resource

Tested against a live VoteScript with a simulated game

Step 1

Unzip into resources/ and add ensure votescript to server.cfg.

Step 2

Also in server.cfg: set votescript_url "https://votescript.voterank.net" and set votescript_key "YOUR_KEY". Use set, never setr, or players could read the key.

server.cfg
ensure votescript
set votescript_url "https://votescript.voterank.net"
set votescript_key "YOUR_KEY"

Step 3

Choose your inventory and framework in config.lua: ox, QBCore, ESX, or your own. VIP days, jobs, teleports, player data and your own actions that votes may give are there too.

votescript/config.lua
Config.Command = 'claimvote'

-- 'ox', 'qb', 'esx' or 'none'
Config.Inventory = 'ox'
-- 'qb', 'esx' or 'none': used for the keys 'money' and 'bank'
Config.Framework = 'qb'

Config.Places = { vote_island = vector3(4840.5, -5174.3, 2.0) }
Config.Vip = { vip = 'group.vip' }

Toplists for FiveM

VoteRank is recommended for every game. Lists marked “test first” have a format we only found in other people’s code.

If it does not work

The command says there is nothing to claim
Check that the name on the vote page is the same as in the game, and that the vote shows as counted in the callback log.
Votes are not checked right now
Your game could not reach VoteScript, or the key is wrong. Look at “Last used” next to the key under Game server.
A reward says it waits
Your game said it cannot give it yet, or the player was in a fight. Open Rewards in the dashboard to see what your game can do, and allow it in the settings of the script or plugin.
Nothing arrives from a toplist
Compare the callback URL on the list with the one in VoteScript, letter by letter, with https. The common problems guide has every case.

Do it yourself

The API, webhooks and clients work with any game.

Give your players one place to vote

Your page is live as soon as you create your server. You can connect the rest step by step.