Config

Every option of config.lua for Battle Pass

3 min read · Updated Dec 3, 2026

The file is TopXBattlepass/config.lua. Save it and restart the script. Everything else (places, shops, rewards, prices) is set in game with the admin dashboard.

TIP

A number option set to 0 or false means no limit, unless the note of the option says otherwise.

Options

OptionDefaultWhat it does
Accent'#327bf7'-
SeasonDays30timed only: the length of a season in days
KeepPremiumfalsetrue: players who have premium keep it in the next season. false: they have to buy it again
Command'battlepass'chat command that opens the battle pass (false to disable)
PremiumPrice'200EGP'text shown next to the buy button, for example '$9.99'
TrackSeconds10how often the server measures walking, driving and playing time. Only runs while a player is online
MaxWalkSpeed12.0meters per second. A bigger jump on foot is a teleport and is not counted. 0 or false: no check
MaxDriveSpeed140.0meters per second. A bigger jump in a vehicle is a teleport and is not counted. 0 or false: no check
DailyResetHour0the hour of the day (server time, 0 to 23) when daily missions start again
LeaderboardSize100how many players the leaderboard lists

The whole file

lua
Config = {}

Config.Accent = '#327bf7'

Config.BattlepassTypes =
'both' -- the tracks of the pass: 'free' (only the free track, no premium), 'premium' (only the premium track, players need premium to claim) or 'both'

Config.PassMode =
'timed'                    -- 'permanent': the season never ends. 'timed': the season ends after SeasonDays, everyone goes back to level 0 and a new season starts. The window shows a timer
Config.SeasonDays = 30     -- timed only: the length of a season in days
Config.KeepPremium = false -- true: players who have premium keep it in the next season. false: they have to buy it again

Config.EnableRarities =
    true                      -- true: every reward has a rarity (colour and name) and the admin dashboard has the Rarities tab. false: no rarities, every reward looks the same

Config.Command = 'battlepass' -- chat command that opens the battle pass (false to disable)
Config.Keybind =
'F6'                          -- default key, players can change it in Settings > Key Bindings > FiveM (false to disable)

Config.AdminCommand =
'battlepassadmin'              -- season, rewards, missions and players are set in game with this command. needs: add_ace group.admin command.battlepassadmin allow
Config.TebexCommand =
'battlepass_premium'           -- console command for the Tebex package: battlepass_premium {id}. Only the server console can run it
Config.StoreUrl =
'https://yourstore.tebex.io'   -- the page where players buy premium. Players can copy it from the window. Empty: no buy button
Config.PremiumPrice = '200EGP' -- text shown next to the buy button, for example '$9.99'

Config.ItemImage =
'nui://ox_inventory/web/images/%s.png' -- where item pictures are loaded from. %s is the item name. Empty: no pictures

Config.TrackSeconds = 10               -- how often the server measures walking, driving and playing time. Only runs while a player is online
Config.MaxWalkSpeed = 12.0             -- meters per second. A bigger jump on foot is a teleport and is not counted. 0 or false: no check
Config.MaxDriveSpeed = 140.0           -- meters per second. A bigger jump in a vehicle is a teleport and is not counted. 0 or false: no check
Config.DailyResetHour = 0              -- the hour of the day (server time, 0 to 23) when daily missions start again
Config.LeaderboardSize = 100           -- how many players the leaderboard lists