codeReal Documentation
  • 👋Welcome to codeReal Documentation
  • Normal Series
    • 🏦Bank
      • ⬇️Installation
      • ℹ️Information
      • 🛠️Exports
    • 👮Dispatch
      • ⬇️Installation
      • ℹ️Information
      • 🛠️Exports
    • 🏠House
      • ⬇️Installation
      • ℹ️Information
  • Aqua Series
    • 🚘Vehicleshop
      • ⬇️Installation
      • ⚙️Configuration
      • ℹ️Information
Powered by GitBook
On this page
  1. Aqua Series
  2. Vehicleshop

Information

İnformation about the resource

PreviousConfiguration

Last updated 10 months ago

How To Add More Vehicles?

To add more vehicles to the script, you can use this example table and paste it inside the Config.VehiclesData table in the config/config.lua file.

{ name = 't20', label = 'T20', model = 'Custom', price = 150000, stock = 1, img = 'https://docs.fivem.net/vehicles/t20.webp', category = 'sports', discount = 0, information = {TopSpeed = 273, Braking = 100, Acceleration = 89, Suspension = 100, Handling = 89} },
Values
Description

name

Vehicle name. The name you use in /car [name]

label

Label typed in UI

model

This is the second label of the vehicle. The name that will appear in the UI. This is optional.

price

The normal price of vehicles. If the company does not have an owner, players pay this price to buy the vehicle. And also the price paid to replenish the stock of the vehicles in the bossmenu.

stock

This part is not important, leave it as 1.

img

Default photo of vehicles. Fivem's own site is used for normal gta vehicles, but if you are using a custom car, you can either write a url yourself or use scripts like greenscreener to get the picture of the vehicle. (PNG Format) Greenscreener:

category

You need to write the 'name' in the table in Config.Categories. Except 'all'.

discount

Don't touch this, leave it as 0

information

The values in this table are not important, they just need to be there. You can also set them all to 0.

You can add vehicles as you wish using the information above.

🚘
ℹ️
Github