ZSX Development
  • Homepage to Innovation
  • User Interface V2
    • Installation
      • Introduce
      • Integration for Chat
      • ZSX_Multicharacter Integration
      • Auto Installer
        • About
        • Overextended Library
    • Exports
      • Interfaces
        • Default Notifications
        • Help Notification
        • Notifications
        • Progress Bar
        • TextUI
          • Updating text & key
        • Point
        • Chat
          • AddMessage
          • AddUserMessage
        • 3D DUI
      • Storage
        • Gathering Storage
          • Get Color
          • Get Type
          • Get Options
          • Is Configuration Done
        • Get Current Screen
        • Is UI Busy
        • Gathering position of the interface
      • Threads
        • Interrupting Thread
      • Other
        • DisplayRadar
        • OpenConfiguration
        • OpenMainMenu
        • OpenSettings
        • IsPauseMenuActive
        • IsUIBusy
        • GetCurrentScreen
        • Cinematic
    • Configurating
      • Handling UI
        • Show / Hide UI
        • Disabling Interfaces
        • Disabling Interfaces type
        • Disabling configuration for Interface
        • Creating new status for HUD
        • Changing links
        • Custom Pause Menu Navbar
        • Removing Pause Menu user data
        • Adjusting new voice states
        • Changing between voice indicators
        • Adding new blacklisted weapon
        • Adding blacklist for vehicle model
        • Changing currency
      • Commands
        • Adding commands
      • Translating
        • Translating the resource
        • Adding translation to custom weapons
        • Translating component's type label
      • Handling Data
        • Adding more accounts to Displayers
        • Adding addon elements to Displayers
        • Creating job2 functionality
        • Changing default keybinds
      • AIO Options
      • Camera stuff
        • Creating new preset for Cinematic Mode
        • Creating new scenes for Main Menu
    • Snippets
      • ESX
        • Notification
        • TextUI
        • ShowAdvancedNotification
        • ShowHelpNotification
      • QBCore
        • Notification
        • ProgressBar
  • Multicharacter
    • Installation
      • Setting up the Appearance
      • Setting up the logo
      • Setting up table removal
    • Exports
      • Client
        • GetConfigValue
        • GetUserStorage
        • Logout
        • SetLocationsDisabled
        • isInMulticharacter
        • Initialize
      • Server
        • isInMulticharacter
        • Logout
    • Workers
    • Baseevents
    • FAQ
    • Translating the resource
    • Open source files
    • Common Issues
      • Common
      • ESX
      • Database
      • Other
  • User Interface
    • About
    • Notifications
    • Progressbar
    • Custom Initialization
    • Functions
  • Dealership
    • About
    • Installation
    • Adding a Store
    • Using Exclusive Content
    • Listeners
    • Configuration
Powered by GitBook
On this page
  1. Dealership

Adding a Store

Navigate to the directory:

Dealership/shared/config_dealers.lua

The file contains a list of your vehicle shops. To add another one, all you have to do is copy the content of, for example, the "main" shop.

```lua
['my_new_shop'] = {
        blip = {
            sprite = 810, -- For the full list of blips: https://docs.fivem.net/docs/game-references/blips/
            color = 2, -- For the full list of blips colors: https://docs.fivem.net/docs/game-references/blips/
            size = 1.0, -- Size of the blip on the map/minimap.
            name = "My new Dealership", -- Display name of the blip on map.
            coords = vector3(-56.95651, -1096.566, 26.42233), -- Coords for the blip on the map.
        },
        vehicle = {
            coords = vector3(-15.29679, -1097.014, 26.67208), -- Where to spawn the vehicle after the purchase is complete.
            heading = 161.1845, -- Heading of the spawned vehicle.
        },
        rest = {
            vehicle_colors = {
                primary = 112, -- Vehicle colors on the dealership. List: https://wiki.rage.mp/index.php?title=Vehicle_Colors
                secondary = 112, -- Vehicle colors on the dealership. List: https://wiki.rage.mp/index.php?title=Vehicle_Colors
            },
        },
        zone = {
            coords = vector3(-56.76, -1097.97, 25.51), -- Coords for the target/non-target init.
            heading = 31.17, -- Heading for the target init.
            minZ = 25.0, -- Target minimal Z coords.
            maxZ = 26.51, -- Target max Z coords.
            width = 2.0, -- Width of the box for target.
            enableDebug = false, -- Enable debug for target.
        },
        camera = 'underground', -- Do not change that until you know what you're doing.
    }
```

After adding a shop, you need to add some vehicles to your database. Ensure that you've installed the dealership.sql file in your database. The dealer_key column should match the key value from the added shop in the config file; in this example, it's `my_new_shop`. Once you've added at least one vehicle, you're good to go!

PreviousInstallationNextUsing Exclusive Content

Last updated 1 year ago