AV Scripts
StoreDiscord
  • Documentation
  • Guides
    • Dealerships
      • Installation
      • Admin Panel
        • All Vehicles
        • Dealerships
        • Auctions
      • Dealership Panel
        • Overview
        • Auctions
        • Employees
        • Orders
        • Payments
        • Showroom
        • Warehouse
        • Pre Owned
        • Settings
      • Buy/Sell Vehicles
      • Catalogue
      • Exports
      • FAQ
    • House Robbery
      • Installation
      • Add Shells
      • Dispatch
      • Exports
      • Weather
      • Minigames
      • Notifications
      • New Houses
      • Object Types
      • Sell Items
    • Illegal Runs
      • Installation
      • Customization
      • Ox Inventory
      • QB Inventory
    • Multicharacter
      • Installation
      • Character Slots
      • Clothes
      • Scenes
        • Previews
      • Exports
      • Weather
    • Paleto Heist
      • Buy here
    • Refund System
      • Installation
        • Inventories
    • Tuning Script
      • Installation
      • Events and Controls
      • Exports
      • Price Multiplier
    • Vehicleshop
      • Installation
      • Admin Panel
      • Addon Vehicles
      • Functions
        • Fuel
        • Keys
        • VIP
        • Weather
      • Garages
      • HUD
      • Society
    • Weather Script
      • Installation
      • Breath Condensation
      • Fog
      • Real Time Sync
      • Exports
    • VIP Script
      • Installation
      • Exports
      • Categories
      • Admin
      • Tebex
      • Free Tokens
  • LAPTOP PACK V3
    • Laptop v3
      • Installation
        • Inventory
        • Cosmo
        • Permissions
        • QBCore
        • Custom Framework/Inventory
        • Phone
        • Translate
      • Browser
      • Terminal
      • Documents
      • APPs Config
      • Exports
    • Boosting
      • Create Profile
      • APP
      • Contracts
      • Dispatch
      • Lockpick Export
      • VIN Export
    • Business
      • Installation
        • Inventories
          • Origen Inventory
            • ESX
            • QBCore
          • OX Inventory
          • QB/PS/LJ Inventory
          • Quasar Inventory
            • ESX
            • QBCore
          • Codem Inventory
          • Tgiann Inventory
        • ESX
      • Admin Panel
        • Create Zones
        • Edit Zones
      • Config
        • Animations
        • Blips
        • Buttons
        • Crafting
        • Effects
        • Events
          • Items
          • Zones
        • Logs
          • Custom Logs
        • Permissions
      • Exports
      • Banking Scripts
      • Multijobs
    • Cameras
      • Installation
        • Vehicle Cameras
      • Place Camera
      • Job Cameras
    • Drugs
      • Installation
      • Admin Panel
      • APP
      • Tables
      • Labs
        • PC
        • Raids
      • Alert Cops
      • Shells
      • Exports
    • Gangs
      • Installation
      • Admin Panel
        • Gangs
        • Whitelist
      • Properties
      • Register Gang
      • APP
        • Members
        • Settings
        • Missions
        • Blackmarket
        • Properties
      • Graffitis
      • Missions
      • Gang NPC
      • Shells
      • Exports
      • Labs
    • Groups
      • Events
      • Exports
    • Music
      • Installation
      • Music Labels
      • APP
        • Search Music
        • Playlists
        • Headphones
      • CDs
    • Racing
      • Installation
        • Permissions
        • Discord Logs
        • Addon Vehicles
      • Admin Panel
      • Categories
      • Events
      • Exports
      • Personal Settings
      • The Underground
    • Custom APPs
    • Discord Support
Powered by GitBook
On this page
  • Import all your vehicles
  • Permissions problems
  • Garage Config
  • Custom Framework
  1. Guides
  2. Dealerships

Installation

Last updated 1 year ago

  • Download and install (NOT source_code.zip)

1) Install the tables in database:

  • Add import.sql to your database.

  • If using ESX run the esx_db.sql in your database.

2) Add the contract item to your Framework/Inventory:

  • If your inventory supports item metadata import the item from _ITEMS folder.

  • If your inventory doesn't support item metadata ignore this step.

3) Read and modify the config files (everything in config folder):

  • Everything in config have a short comment so you can know what it's used for.

4) Translate the UI:

  • You can translate the UI in web/build/lang.json

  • Please be really careful with this file or you will break the whole UI.

Note: Never edit veh_specs.json or dealerships.json files or you will break the whole script.

5) Add your webhook for logs:

  • Go to server/framework/_framework.lua line 2

Import all your vehicles

  • First thing you have to do before creating dealerships is import all your server vehicles, go to an open field like the airport and use the command /veh_data (needs admin permission)

  • You will start to see all your server vehicles being spawned in front of you, you can open F8 console to know what is happening, it will print you when is finished (can take up to 2 or 3 minutes depends on how many vehicles you have).

  • You can also import one single vehicle by specifying the model when using the command: /veh_data sultanrs this will only import the vehicle sultanrs.

  • Once the process is finished you will be able to see and edit all vehicles using your admin panel.

Permissions problems

Garage Config

  • Make sure to setup your garages before using the script, by default the garages listed in config/garages.lua are from qb-garages.

  • This only applies for servers that have unique garages.

  • If using ESX and unique garages make sure to edit the query in server/framework/buy.lua line 37 and 72.

Custom Framework

  • All the Framework functions are open, there's nothing framework related encrypted. You can make the script compatible with your current Framework by editing the files inside framework folders in client and server.

A pretty common problem with QBCore servers are the permissions not being setup correctly in their server.cfg, if you are 100% sure you have the needed admin level and you are receiving the "You don't have permissions" message, setup your permissions correctly .

ox_lib.zip
by following this guide