Guides
Adding items as reward
This is valid for both free and premium battle pass
Item options: table
name:
stringName of item
label:
stringLabel of item
img?:
stringIf no image is provided, the item image will automatically be based on the item name. Alternatively, you can specify a custom image
requirements:
tabletier:
numberRequired tier to collect item
xp:
numberRequired XP to collect item
amount:
numberAmount of item that will be received
metadata?:
tableOptionally, you can add metadata to the item here if needed
Example (items as rewards)
FreePass = {
[1] = { -- Rewards for the 1st week of the month.
{ name = 'water', label = 'Water', img = 'panties', requirements = { tier = 0, xp = 150 }, amount = 10, metadata = { description = 'This is metadata' } },
},
[2] = { -- Rewards for the 2nd week of the month.
{ name = 'water', label = 'Water', requirements = { tier = 0, xp = 150 }, amount = 10, metadata = { description = 'This is metadata' } },
},
[3] = { -- Rewards for the 3rd week of the month.
{ name = 'water', label = 'Water', requirements = { tier = 0, xp = 150 }, amount = 10, metadata = { description = 'This is metadata' } },
},
[4] = { -- Rewards for the 4th week of the month.
{ name = 'water', label = 'Water', requirements = { tier = 0, xp = 150 }, amount = 10, metadata = { description = 'This is metadata' } },
},
}Adding vehicles as reward
This is valid for both free and premium battle pass
Vehicle options: table
name:
stringName of vehicle (spawn code)
label:
stringLabel of vehicle
img:
stringURL of image, otherwise it will look for image in
web/imgfolder
requirements:
tabletier:
numberRequired tier to collect item
xp:
numberRequired XP to collect item
vehicle:
tabletype:
stringcar, boat, helicopter, whatever you need
stored:
stringorbooleanUsually for stored status is 1 or true
garage:
stringgarage where vehicle will be stored
properties:
tablehere you can pre-configure properties that vehicle will have (colour, tyre smoke, engine etc)
Example (vehicles as rewards)
FreePass = {
[1] = { -- week
{
name = 'zentorno',
label = 'Zentorno',
img = 'https://docs.fivem.net/vehicles/zentorno.webp',
requirements = { tier = 5, xp = 150 },
vehicle = { type = 'car', stored = 1, garage = 'SanAndreasAvenue', properties = { color1 = 0, color2 = 27, neonEnabled = { 1, 2, 3, 4 } } }
},
}
}Adding items to battle pass shop
Item options: table
name:
stringName of item
label:
stringLabel of item
img?:
stringIf no image is provided, the item image will automatically be based on the item name. Alternatively, you can specify a custom image
currency:
stringItem that will be currency for that item/vehicle
price:
numberPrice for item/vehicle
amount:
numberAmount of item that will be received
metadata?:
tableOptionally, you can add metadata to the item here if needed
Example (items in battle pass shop)
BattleShop = {
[1] = { -- Items available in the shop during the 1st week of the month.
{ name = 'water', label = 'Water', price = 50, currency = 'money', amount = 10, metadata = { description = 'This is metadata' } },
},
[2] = { -- Items available in the shop during the 2nd week of the month.
{ name = 'water', label = 'Water', price = 50, currency = 'money', amount = 10, metadata = { description = 'This is metadata' } },
},
[3] = { -- Items available in the shop during the 3rd week of the month.
{ name = 'water', label = 'Water', price = 50, currency = 'money', amount = 10, metadata = { description = 'This is metadata' } },
},
[4] = { -- Items available in the shop during the 4th week of the month.
{ name = 'water', label = 'Water', price = 50, currency = 'money', amount = 10, metadata = { description = 'This is metadata' } },
},
},Adding vehicles in battle pass shop
Vehicle options: table
name:
stringName of vehicle (spawn code)
label:
stringLabel of vehicle
img:
stringURL of image, otherwise it will look for image in
web/imgfolder
currency:
stringItem that will be currency for that item/vehicle
price:
numberPrice for item/vehicle
vehicle:
tabletype:
stringcar, boat, helicopter, whatever you need
stored:
stringorbooleanUsually for stored status is 1 or true
garage:
stringgarage where vehicle will be stored
properties:
tablehere you can pre-configure properties that vehicle will have (colour, tyre smoke, engine etc)
Example (vehicles in battle pass shop)
BattleShop = {
[1] = { -- Items available in the shop during the 1st week of the month.
{
name = 'zentorno',
label = 'Zentorno',
img = 'https://docs.fivem.net/vehicles/zentorno.webp',
price = 50,
currency = 'money',
vehicle = { type = 'car', stored = 1, garage = 'SanAndreasAvenue', properties = { color1 = 0, color2 = 27, neonEnabled = { 1, 2, 3, 4 } }}
},
},
},Last updated