# Config

This is the default Config.lua

It may vary according to the further versions

```lua
-----------------------------------
-- Dealerships by  Playooze
-- config.lua
-----------------------------------

------ dont delete ---
--[[]] Config = {}  --
--[[]] Locales = {} --
----------------------

-- Installation
Config.Framework = 'newqb' -- esxlegacy or oldesx or oldqb or newqb
Config.UseMultichar = true
Config.Locale = 'pt' -- en/pt   you can create more on translations file, just dont forget to add the file name in fxmanifest
Config.UseQBVehicleKeys = true -- if you use qb-vehicle keys set to true  |   if you use esx its irrelevant

-- Notifications
Config.Notify = 'okok' -- 'default'- esx/qb notify     or    'okok'- okok notify

-- Prices
Config.TestDrivePrice = 100 -- price to test vehicles  |  use the money defined in Config.Money

-- Accounts
Config.Money = 'bank'  -- bank/cash
Config.MoneyVip = 'coins' -- the account type you put in qb-core Config/ es_extended Config

-- Plate
Config.VehiclePlate = 'ROLEPLAY' -- for showroom vehicle plates | max 8 characters
Config.PlateLetters  = 3         -- number of letters the plate have
Config.PlateNumbers  = 3         -- number of numbers the plate have
Config.PlateUseSpace = true      -- plate use space between the letters and numbers

-- Initial Voucher
Config.ItemVoucher = 'voucher' -- if not using set to false
Config.ValueVoucher = 35000    -- Maximium value of the vehicle that the voucher can buy   |   its also buys it if the value is lower

-- Logs
Config.DiscordWebhook = {
    {
        ["icon"] = 'https://cdn.discordapp.com/avatars/1086617611669872753/8bbaeea7793b797def0ca9ca0696a858.webp?size=80',                          -- image
        ["webhook"]= 'https://discord.com/api/webhooks/1144726280068141226/fRPFoNWcZwOHn400I-aSzCF2opeTTNDIXNlXiYanLQgAxwmvv2c_9agr6W5gLDLX6iaL',   -- discord weebhook where logs will be sent
        ["bot_name"] = "My Roleplay Server",                                                                                                        -- The server name to be displayed on log
        ["color"] = 0,                                                                                                                              -- the color of the line of embed (default is black)
        ["title"] = "**Dealership**",                                                                                                               -- Title of Dealership log
        ["description"] = ' bought the vehicle with the plate ', -- ' comprou o veículo com a matrícula '                                           -- Text that will be showed
        ["description2"] = ' for ',                              -- ' por '                                                                         -- Text that will be showed

    }
}


-- there are 3 types: car, boat, plane,  but you can add others
-- optional

    -- BLIP               if you dont insert this the location wont have blip in the map
        --blipid = 523,
        --blipcolor = 2,
        --blipText = "Premium Deluxe Motorsport",
    --


    -- RESTRICTIONS
        -- vip = true               if true, the dealership will use vip coins
        -- job ="name_of_the_job"   if you add job = "job name" it will restrict the dealership for that job
    --

--

Config.dealerships = {  
    -------------------------------------------
    -- Normal Dealership
    -------------------------------------------
    [1] = {
        -- Name
        name = "Simeon",
        
        -- Ped
        ped = "cs_solomon",                                -- ped model
        ped_heading = 289.1,                               -- ped heading
        ped_coords = vector3(-39.04, -1101.26, 27.27 - 1), -- where the ped is located
        
        -- Vehicle Show
        vehicle_heading = 1.6,                             -- vehicle heading
        vehicle_coords = vector3(-42.29, -1101.43, 26.35), -- showroom of the vehicle
        type = "car",                                      -- the type that will be inserted in sql (ESX)
        --                                                 -- it also what trigger the image that is displayed on nui, so if you add other type you should add the image on javascript file
        
        -- Blip
        blipid = 523,                                      -- https://docs.fivem.net/docs/game-references/blips/
        blipcolor = 2,                                     -- https://docs.fivem.net/docs/game-references/hud-colors/
        blipText = "Premium Deluxe Motorsport",
        
        -- Cam
        cam_coords = vector3(-39.52, -1098.88, 28.27),     -- the place where you want the player see the vehicle | imagine where the car will be and just place yourself on a position or you can see it with a good angle
        
        -- Vehicle
        vehicle_spawn = vector3(-23.65, -1094.52, 26.88),  -- where the vehicle will spawn when bought and when making the test drive. Dont worry because on testdrive he cant interact with anything of the game, he goes to a virtual world
        vehicle_spawn_heading = 339.93,                    -- heading of the spawned vehicle
        testdrivetime = 60, -- seconds                     -- time it will take to test drive  |  it should be the same on every place because the notification 
        
        -- Vehicles List
        vehiclesList = {
            
            ['Albany Emperor'] = {                         -- the name that will be displayed
                vehID = 1,                                 -- vehID = 1 is the one that will spawn in the showroom first
                --                                         -- vehicle id cant be the same of each vehiclesList, you need to follow the order
                price        = 35000,                      -- price of the vehicle
                spawncode    = "emperor",                  -- the same spawncode that is used to spawn vehicle in-game with the command /car
                trunk        = {                           -- the trunk is the only thing that you need to setup yourself from the vehicle stats because it depends 
                --                                          on the inventory you use and there is no fivem native to grab it
                    barsize = 17, text = "170KG"
                },
            },
            
            ['Karin Dilettante'] = { 
                vehID = 3, 
                price        = 35000,
                spawncode    = "dilettante",
                trunk        = {barsize = 17, text = "170KG"},
            },
            
            
        }
    },
...
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://playooze-scripts.gitbook.io/playooze-scripts/script-guides/playooze-dealership/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
