How it works

Tracks, seasons, missions, rewards, Tebex premium and the admin dashboard

4 min read · Updated Dec 3, 2026

Permanent or timed

Config.PassMode decides how a season ends:

  • permanent (the default): the season never ends.
  • timed: the season ends after Config.SeasonDays days. Everyone goes back to level 0 with no claims and no mission progress, a new season starts and the window shows how long is left. If the server was off when a season ended, the new season starts when it comes back, on the same schedule.

Config.KeepPremium = true lets players who have premium keep it in the next season. A season can always be ended by hand with Force reset in the admin dashboard (Season tab). In a timed pass it starts the timer again. Old seasons stay in the database.

Tracks

Config.BattlepassTypes decides which tracks the pass has:

  • both: a free track and a premium track (the default).
  • free: only the free track. Premium, the buy button and the Tebex command are switched off.
  • premium: only the premium track. Players need premium to claim anything, free players see it locked and can buy it.

Rewards of a track that is switched off stay in the database, they come back when the option changes.

Premium with Tebex

In the Tebex package add this command, run on the server:

text
battlepass_premium {id}

The id can be a server id (up to 4 digits), the character id of the framework (the citizenid of qbx and qb, the identifier of esx), a license, a FiveM, Steam or Discord id, with or without the prefix. Only the server console can run the command.

  • The buyer is online or already known by the pass: premium starts at once.
  • Otherwise the purchase waits in topx_bp_purchases and premium starts when the buyer joins. The buyer is found by the framework id, the license, the FiveM id or any other identifier.
  • Premium bought in the middle of a season also unlocks the premium rewards of the levels the player already reached.

Set Config.StoreUrl to show a Buy premium button in the pass. It opens the store in the browser of the player and copies the link. Empty: no button.

Admins can turn premium on or off for a player in the dashboard (Players tab).

Missions

Kinds: walk (meters), drive (meters), time online (minutes) and script. Walking, driving and time are measured on the server, jumps that look like a teleport are not counted. A script mission is filled with AddMissionProgress.

When a mission starts again:

  • Every day: at the hour set in Config.DailyResetHour.
  • After it is done: it can be finished again and again, the player gets the XP every time. A limit can be set.
  • At server restart.
  • Never: one time for the whole season.

Seasons

A reset (the timer of a timed pass, or Force reset in the dashboard) sends everyone back to level 0 with no claims, no mission progress and, unless Config.KeepPremium is on, no premium. Rewards and missions stay. Old seasons stay in the database.

Rewards

Item, money (cash or bank) and vehicle. A tier of a level (free or premium) holds up to eight rewards, they are claimed together with one button, so nothing is lost when the inventory is full: if the player cannot carry the items, nothing is given and the claim stays open. Vehicles are added to the player in the vehicle table of the framework.

On a level card up to eight rewards are shown as small squares. In the middle of the screen the reward on show is displayed large, with every reward of the tier.

Every reward has a rarity. The rarities (name and colour) are made in the dashboard, see below.

A vehicle reward can have a photo: in /battlepassadmin, Rewards, pick the vehicle type, enter the model and press Take photo. You are moved to the photo studio of TopXBridge, the picture is cut out of a green screen and saved as thumbs/<model>.webp, then the panel reopens with your unsaved edits. The photo is shown on the reward, and without one a car icon is shown. Needs screenshot-basic (or screencapture) started on the server.

Rarities

Config.EnableRarities = false switches the rarities off: the rewards have no colour and name, the Rarities tab and the rarity field of the dashboard are hidden.

Admin dashboard

  • Season: name, number, number of levels, the XP curve (a first level cost plus a growth per level) and a cost for every single level that can be different, for example a harder level 10. Force reset is here too. Changing the season number moves the progress of the current season to the new number.
  • Rarities: add, rename, recolour or delete rarities. A deleted rarity falls back to the first one.
  • Rewards: the free and the premium rewards of every level, each with a rarity.
  • Missions: kind, goal, XP, when it starts again.
  • Players: search, XP (add or set) and premium on or off, applied at once.