Config = {}

-- █▀ █▀▄ ▄▀▄ █▄ ▄█ ██▀ █   █ ▄▀▄ █▀▄ █▄▀
-- █▀ █▀▄ █▀█ █ ▀ █ █▄▄ ▀▄▀▄▀ ▀▄▀ █▀▄ █ █
local frameworkAutoFind = function()
    if GetResourceState('es_extended') == 'started' then
        return "ESX"
    elseif GetResourceState('qb-core') == 'started' then
        return "QB-Core"
    end
end

Config.Core = frameworkAutoFind()
Config.CoreExport = function()
    if Config.Core == "ESX" then
        return exports['es_extended']:getSharedObject()
    elseif Config.Core == "QB-Core" then
        return exports['qb-core']:GetCoreObject()
    end
end

---@field PlayerLoaded string: ESX: "esx:playerLoaded" / QB-Core: "QBCore:Client:OnPlayerLoaded"
Config.PlayerLoaded = Config.Core == "ESX" and "esx:playerLoaded" or "QBCore:Client:OnPlayerLoaded"

---@field PlayerLogoutServer string: ESX: "esx:playerDropped" / QB-Core: "QBCore:Server:OnPlayerUnload"
Config.PlayerLogoutServer = Config.Core == "ESX" and "esx:playerDropped" or "QBCore:Server:OnPlayerUnload"

---@field PlayerSetJob string: ESX: "esx:setJob" / QB-Core: "QBCore:Client:OnJobUpdate"
Config.PlayerSetJob = Config.Core == "ESX" and "esx:setJob" or "QBCore:Client:OnJobUpdate"


Config.Notification = function(message, time, type)
    if type == "success" then
        if GetResourceState("vms_notify") == 'started' then
            exports['vms_notify']:Notification("VEHICLE SHOP", message, time, "#36f230", "fa-solid fa-shop")
        else
            TriggerEvent('esx:showNotification', message)
            TriggerEvent('QBCore:Notify', message, 'success', time)
        end
    elseif type == "error" then
        if GetResourceState("vms_notify") == 'started' then
            exports['vms_notify']:Notification("VEHICLE SHOP", message, time, "#f23030", "fa-solid fa-shop")
        else
            TriggerEvent('esx:showNotification', message)
            TriggerEvent('QBCore:Notify', message, 'error', time)
        end
    elseif type == "info" then
        if GetResourceState("vms_notify") == 'started' then
            exports['vms_notify']:Notification("VEHICLE SHOP", message, time, "#4287f5", "fa-solid fa-shop")
        else
            TriggerEvent('esx:showNotification', message)
            TriggerEvent('QBCore:Notify', message, 'primary', time)
        end
    end
end

Config.Interact = {
    Enabled = false,
    Open = function(message)
        exports["interact"]:Open("E", message) -- Here you can use your TextUI or use my free one - https://github.com/vames-dev/interact
    end,
    Close = function()
        exports["interact"]:Close() -- Here you can use your TextUI or use my free one - https://github.com/vames-dev/interact
    end
}

Config.Hud = {
    Enable = function()
        if GetResourceState('vms_hud') ~= 'missing' then
            exports['vms_hud']:Display(true)
        end
    end,
    Disable = function()
        if GetResourceState('vms_hud') ~= 'missing' then
            exports['vms_hud']:Display(false)
        end
    end
}

---@field UseTarget boolean: Do you want to use target system
Config.UseTarget = false
Config.TargetResource = 'ox_target' -- Prepared for 'ox_target', 'qb-target' (config.client.lua - CL.Target)

Config.UseMarkers = true -- Using a marker to display points
Config.UseText3D = false -- Using a 3D Text to display points
Config.UseHelpNotify = true -- Using a ESX.ShowHelpNotification (only for esx)

---@field AutoExecuteQuery boolean: Automatic execution of the creation of the vms_business table in database
Config.AutoExecuteQuery = true

---@field DebugPolyZone boolean: Option only for developers to recognize the registration of polyzone store object, and facilitate the creation of new
Config.DebugPolyZone = false

---@field PlateFormat string: Set up your license plate generation format, set any way you want, when you set a letter, it will generate a random letter, when you set a number, it will generate a random number, below are sample formats.
--[[
    Examples:
        'ABC 1234'
        '1234 ABC'
        'ABCD1234'
]]
Config.PlateFormat = 'ABC 1234'

---@field UsePhotosTool boolean: Photos tool on greenscreen, used prop: 'prop_big_cin_screen' whose creator is nnuu
Config.UsePhotosTool = false
Config.PhotosToolCommand = 'photostool'

---@field UnitOfSpeed string: Speed unit for showroom display and maximum speed calculation
Config.UnitOfSpeed = 'kmh' -- 'kmh' or 'mph'

---@field TestDriveOnRoutingBucket boolean: Is the test drive to take place in a dedicated virtual world, players will not see or hear each other
Config.TestDriveOnRoutingBucket = false


Config.Marker = {
    ['delivery'] = {
        distanceSee = 20.0,
        distanceAccess = 1.8,
        type = 20,
        color = {50, 50, 225, 175},
        rotation = vec(0.0, 0.0, 0.0),
        scale = vec(0.7, 0.7, 0.7),
        bobUpAndDown = false,
        rotate = true,
    },
    ['contract'] = {
        distanceSee = 7.75,
        distanceAccess = 2.8,
        type = 29,
        color = {142, 255, 77, 225},
        rotation = vec(0.0, 0.0, 0.0),
        scale = vec(0.28, 0.28, 0.28),
        bobUpAndDown = true,
        rotate = true,
    },
    ['showroom'] = {
        distanceSee = 2.75,
        distanceAccess = 1.0,
        type = 20,
        color = {142, 255, 77, 180},
        rotation = vec(0.0, 180.0, 0.0),
        scale = vec(0.15, 0.15, 0.15),
        bobUpAndDown = false,
        rotate = true,
    },
    ['management'] = {
        distanceSee = 2.75,
        distanceAccess = 1.0,
        type = 20,
        color = {252, 198, 3, 180},
        rotation = vec(0.0, 180.0, 0.0),
        scale = vec(0.15, 0.15, 0.15),
        bobUpAndDown = false,
        rotate = true,
    },
}

Config.Blips = {
    ['delivery'] = {
        sprite = 271,
        display = 4,
        scale = 1.0,
        color = 38,
        routeColor = 38,
        name = "Delivery"
    },
    ['order'] = {
        sprite = 479,
        display = 6,
        scale = 1.2,
        color = 28,
        routeColor = 28,
        name = "Order"
    },
}

Config.Stores = {
    ["PDM"] = {
        jobName = 'pdm',
        societyName = 'society_pdm',
        cityhall_grades = { -- Grades for sections from vms_cityhall
            ['resumes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
            ['taxes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
        },
        
        brand = "Premium Deluxe Motorsports",
        address = "Power St. Adam Apple Blvd, Pillbox Hill",

        paymentMethods = {'cash', 'bank'},

        wholesaleType = 'cars',
        maxOrderVehicles = 4, -- Maximum number of vehicles that can be ordered per order, due to the limit of space on the trailer for realistic delivery

        realisticDelivery = true, -- Does the player have to drive himself to pick up the vehicles
        orderDeliveryTime = 12 * 60, -- Value given in minutes, only works with realisticDelivery = false

        allowPurchase = true, -- Should there be an option to purchase the vehicle in the showroom?
        allowTestDrive = true, -- Should there be an option to test drive the vehicle in the showroom?
        showPrices = true, -- Should the vehicle price be visible in the showroom?
        abilityCustomLicensePlate = true, -- Should there be an option to set a custom license plate in the showroom/management?
        -- showOnlyAvailable = true, -- Should only vehicles available in stock be visible in the showroom?
 
        -- allowBuyIfEmployeesOffline = true, -- true allows the player to buy by himself when all employees are offline (you must have allowPurchase = true)

        spawnVehicleOnPurchase = true, -- Vehicle is supposed to spawn after purchase

        testDriveTime = 30, -- seconds
        testDrivePrice = 1000,

        freeCamRadius = 5.5,
        
        storeArea = { -- PolyZone
            vector2(-72.46, -1125.31),
            vector2(-16.36, -1123.88),
            vector2(-0.69, -1081.1),
            vector2(-19.94, -1074.09),
            vector2(-21.06, -1077.19),
            vector2(-56.38, -1064.47),
            vector2(-77.08, -1120.19),
        },
        minZ = 25.4,
        maxZ = 39.23,

        blip = {
            enabled = true,
            coords = vector3(-42.89, -1098.93, 25.42),
            sprite = 820,
            display = 4,
            scale = 1.0,
            color = 26,
            name = 'Vehicle Shop',
        },

        vehiclePoint = vector4(-47.22, -1074.92, 25.7, 71.74),
        deliveryPoint = vector3(-45.78, -1080.87, 26.69),
        
        onPurchasePoint = vector4(-47.22, -1074.92, 25.7, 71.74),

        testDrivePoint = vector4(-28.76, -1081.46, 25.64, 70.74),
        testDriveEndPoint = vector3(-45.78, -1080.87, 26.69),

        showroomPoint = {
            coords = vector3(-57.35, -1097.0, 26.42),
            targetCoords = vector3(-56.8, -1097.91, 25.82),
            targetHeading = 210.0,
            targetSize = vec(3.5, 1.0, 1.8),
        },

        showroomInside = {
            camera = vector3(-48.66, -1100.71, 26.73),
            cameraFov = 65.5,
            vehicle = vector4(-44.47, -1097.25, 25.42, 92.34),
            player = vector4(-44.19, -1098.78, 25.42, 108.79),
        },

        managementPoint = {
            coords = vector3(-31.83, -1114.08, 26.42),
            targetCoords = vector3(-33.05, -1114.43, 25.8),
            targetHeading = 70.0,
            targetSize = vec(2.4, 1.35, 1.85),
        },

        vehiclesOnDisplay = {
            [1] = {
                coords = vector4(-46.58, -1102.26, 25.44, 282.77),
                primaryColor = 0,
                secondaryColor = 0,
                pearlescentColor = 0,
                wheelColor = 0,
            },
            [2] = {
                coords = vector4(-40.76, -1094.76, 25.01, 214.25),
                primaryColor = 0,
                secondaryColor = 0,
                pearlescentColor = 0,
                wheelColor = 0,
            },
            [3] = {
                coords = vector4(-46.09, -1093.36, 25.01, 213.76),
                primaryColor = 0,
                secondaryColor = 0,
                pearlescentColor = 0,
                wheelColor = 0,
            },
        },

        categories = {
            ['bikes'] = true,
            ['compacts'] = true,
            ['coupes'] = true,
            ['motorcycles'] = true,
            ['muscle'] = true,
            ['offroad'] = true,
            ['other'] = true,
            ['sedans'] = true,
            ['sports'] = true,
            ['sportsclassics'] = true,
            ['super'] = true,
            ['suvs'] = true,
            ['vans'] = true,
        },
        vehicles = {
            ['blade'] = true,
            ['buccaneer'] = true,
            ['buccaneer2'] = true,
            ['chino'] = true,
            ['chino2'] = true,
            ['coquette3'] = true,
            ['veto'] = true,
            ['veto2'] = true,
            ['driftyosemite'] = true,
            ['yosemite2'] = true,
            ['everon2'] = true,
            ['gb200'] = true,
            ['clique'] = true,
            ['warrener2'] = true,
            ['ratloader'] = true,
            ['ratloader2'] = true,
            ['gp1'] = true,
            ['fagaloa'] = true,
            ['clique2'] = true,
            ['kalahari'] = true,
            ['dominator'] = true,
            ['dukes'] = true,
            ['gauntlet'] = true,
            ['hotknife'] = true,
            ['faction'] = true,
            ['faction2'] = true,
            ['faction3'] = true,
            ['nightshade'] = true,
            ['phoenix'] = true,
            ['picador'] = true,
            ['sabregt'] = true,
            ['sabregt2'] = true,
            ['slamvan'] = true,
            ['slamvan2'] = true,
            ['slamvan3'] = true,
            ['tampa'] = true,
            ['virgo'] = true,
            ['virgo2'] = true,
            ['virgo3'] = true,
            ['vigero'] = true,
            ['voodoo'] = true,
            ['blista'] = true,
            ['brioso'] = true,
            ['brioso2'] = true,
            ['brioso3'] = true,
            ['issi2'] = true,
            ['panto'] = true,
            ['prairie'] = true,
            ['bison'] = true,
            ['bobcatxl'] = true,
            ['burrito3'] = true,
            ['gburrito2'] = true,
            ['camper'] = true,
            ['gburrito'] = true,
            ['journey'] = true,
            ['minivan'] = true,
            ['minivan2'] = true,
            ['moonbeam'] = true,
            ['moonbeam2'] = true,
            ['paradise'] = true,
            ['rumpo'] = true,
            ['rumpo3'] = true,
            ['surfer'] = true,
            ['youga'] = true,
            ['youga2'] = true,
            ['youga3'] = true,
            ['asea'] = true,
            ['emperor'] = true,
            ['fugitive'] = true,
            ['glendale'] = true,
            ['intruder'] = true,
            ['premier'] = true,
            ['primo'] = true,
            ['primo2'] = true,
            ['regina'] = true,
            ['schafter2'] = true,
            ['stretch'] = true,
            ['superd'] = true,
            ['tailgater'] = true,
            ['warrener'] = true,
            ['washington'] = true,
            ['cavalcade'] = true,
            ['cavalcade2'] = true,
            ['contender'] = true,
            ['dubsta'] = true,
            ['dubsta2'] = true,
            ['fq2'] = true,
            ['granger'] = true,
            ['gresley'] = true,
            ['huntley'] = true,
            ['landstalker'] = true,
            ['mesa'] = true,
            ['mesa3'] = true,
            ['patriot'] = true,
            ['radi'] = true,
            ['rocoto'] = true,
            ['seminole'] = true,
            ['xls'] = true,
            ['btype'] = true,
            ['btype2'] = true,
            ['btype3'] = true,
            ['casco'] = true,
            ['coquette2'] = true,
            ['manana'] = true,
            ['manana2'] = true,
            ['monroe'] = true,
            ['pigalle'] = true,
            ['stinger'] = true,
            ['stingergt'] = true,
            ['feltzer3'] = true,
            ['ztype'] = true,
            ['bifta'] = true,
            ['bfinjection'] = true,
            ['blazer'] = true,
            ['blazer3'] = true,
            ['blazer4'] = true,
            ['brawler'] = true,
            ['dubsta3'] = true,
            ['dune'] = true,
            ['guardian'] = true,
            ['rebel'] = true,
            ['rebel2'] = true,
            ['sandking'] = true,
            ['sandking2'] = true,
            ['trophytruck'] = true,
            ['trophytruck2'] = true,
            ['exemplar'] = true,
            ['f620'] = true,
            ['felon'] = true,
            ['felon2'] = true,
            ['jackal'] = true,
            ['oracle'] = true,
            ['oracle2'] = true,
            ['sentinel'] = true,
            ['sentinel2'] = true,
            ['windsor'] = true,
            ['windsor2'] = true,
            ['zion'] = true,
            ['zion2'] = true,
            ['ninef'] = true,
            ['ninef2'] = true,
            ['alpha'] = true,
            ['banshee'] = true,
            ['bestiagts'] = true,
            ['buffalo'] = true,
            ['buffalo2'] = true,
            ['carbonizzare'] = true,
            ['comet2'] = true,
            ['coquette'] = true,
            ['tampa2'] = true,
            ['feltzer2'] = true,
            ['furoregt'] = true,
            ['fusilade'] = true,
            ['jester'] = true,
            ['jester2'] = true,
            ['khamelion'] = true,
            ['kuruma'] = true,
            ['mamba'] = true,
            ['massacro'] = true,
            ['massacro2'] = true,
            ['omnis'] = true,
            ['penumbra'] = true,
            ['rapidgt'] = true,
            ['rapidgt2'] = true,
            ['schafter3'] = true,
            ['schafter4'] = true,
            ['seven70'] = true,
            ['sultan'] = true,
            ['surano'] = true,
            ['tropos'] = true,
            ['verlierer2'] = true,
            ['adder'] = true,
            ['banshee2'] = true,
            ['bullet'] = true,
            ['cheetah'] = true,
            ['entityxf'] = true,
            ['sheava'] = true,
            ['fmj'] = true,
            ['infernus'] = true,
            ['osiris'] = true,
            ['pfister811'] = true,
            ['le7b'] = true,
            ['reaper'] = true,
            ['sultanrs'] = true,
            ['t20'] = true,
            ['turismor'] = true,
            ['tyrus'] = true,
            ['vacca'] = true,
            ['voltic'] = true,
            ['prototipo'] = true,
            ['zentorno'] = true,
            ['akuma'] = true,
            ['avarus'] = true,
            ['bagger'] = true,
            ['bati'] = true,
            ['bati2'] = true,
            ['bf400'] = true,
            ['bmx'] = true,
            ['carbonrs'] = true,
            ['chimera'] = true,
            ['cliffhanger'] = true,
            ['cruiser'] = true,
            ['daemon'] = true,
            ['daemon2'] = true,
            ['defiler'] = true,
            ['double'] = true,
            ['enduro'] = true,
            ['esskey'] = true,
            ['faggio'] = true,
            ['faggio2'] = true,
            ['fixter'] = true,
            ['gargoyle'] = true,
            ['hakuchou'] = true,
            ['hakuchou2'] = true,
            ['hexer'] = true,
            ['innovation'] = true,
            ['manchez'] = true,
            ['manchez2'] = true,
            ['manchez3'] = true,
            ['nemesis'] = true,
            ['nightblade'] = true,
            ['pcj'] = true,
            ['ruffian'] = true,
            ['sanchez'] = true,
            ['sanchez2'] = true,
            ['sanctus'] = true,
            ['scorcher'] = true,
            ['sovereign'] = true,
            ['shotaro'] = true,
            ['thrust'] = true,
            ['tribike'] = true,
            ['tribike2'] = true,
            ['tribike3'] = true,
            ['vader'] = true,
            ['vortex'] = true,
            ['wolfsbane'] = true,
            ['zombiea'] = true,
            ['zombieb'] = true,
            ['ruiner'] = true,
            ['ruiner4'] = true,
            ['visione'] = true,
            ['retinue'] = true,
            ['retinue2'] = true,
            ['cyclone'] = true,
            ['rapidgt3'] = true,
            ['raiden'] = true,
            ['broadway'] = true,
            ['shinobi'] = true,
            ['verus'] = true,
            ['brigham'] = true,
            ['yosemite'] = true,
            ['pariah'] = true,
            ['sc1'] = true,
            ['riata'] = true,
            ['hermes'] = true,
            ['savestra'] = true,
            ['streiter'] = true,
            ['kamacho'] = true,
            ['gt500'] = true,
            ['z190'] = true,
            ['viseris'] = true,
            ['autarch'] = true,
            ['comet5'] = true,
            ['neon'] = true,
            ['sentinel3'] = true,
            ['hustler'] = true,
            ['aleutian'] = true,
            ['asbo'] = true,
            ['nero'] = true,
            ['nero2'] = true,
            ['thrax'] = true,
            ['asterope'] = true,
            ['asterope2'] = true,
            ['astron'] = true,
            ['baller'] = true,
            ['baller2'] = true,
            ['baller3'] = true,
            ['baller4'] = true,
            ['baller7'] = true,
            ['baller8'] = true,
            ['bjxl'] = true,
            ['blista2'] = true,
            ['bodhi2'] = true,
            ['boor'] = true,
            ['buffalo4'] = true,
            ['buffalo5'] = true,
            ['calico'] = true,
            ['caracara2'] = true,
            ['cavalcade3'] = true,
            ['champion'] = true,
            ['cheburek'] = true,
            ['cheetah2'] = true,
            ['cinquemila'] = true,
            ['club'] = true,
            ['cog55'] = true,
            ['cogcabrio'] = true,
            ['cognoscenti'] = true,
            ['comet3'] = true,
            ['comet4'] = true,
            ['comet6'] = true,
            ['comet7'] = true,
            ['coquette4'] = true,
            ['corsita'] = true,
            ['coureur'] = true,
            ['cypher'] = true,
            ['deity'] = true,
            ['deviant'] = true,
            ['diablous'] = true,
            ['diablous2'] = true,
            ['dilettante'] = true,
            ['dloader'] = true,
            ['dominator3'] = true,
            ['dominator7'] = true,
            ['dominator8'] = true,
            ['dominator9'] = true,
            ['dorado'] = true,
            ['drafter'] = true,
            ['draugur'] = true,
            ['drifteuros'] = true,
            ['driftfr36'] = true,
            ['driftfuto'] = true,
            ['driftjester'] = true,
            ['driftremus'] = true,
            ['drifttampa'] = true,
            ['driftzr350'] = true,
            ['zr350'] = true,
            ['dynasty'] = true,
            ['elegy'] = true,
            ['elegy2'] = true,
            ['ellie'] = true,
            ['emerus'] = true,
            ['emperor2'] = true,
            ['entity2'] = true,
            ['entity3'] = true,
            ['eudora'] = true,
            ['euros'] = true,
            ['faggio3'] = true,
            ['fcr'] = true,
            ['fcr2'] = true,
            ['flashgt'] = true,
            ['fr36'] = true,
            ['freecrawler'] = true,
            ['furia'] = true,
            ['futo'] = true,
            ['futo2'] = true,
            ['gauntlet3'] = true,
            ['gauntlet4'] = true,
            ['gauntlet5'] = true,
            ['gauntlet6'] = true,
            ['glendale2'] = true,
            ['granger2'] = true,
            ['greenwood'] = true,
            ['growler'] = true,
            ['habanero'] = true,
            ['hellion'] = true,
            ['hotring'] = true,
            ['ignus'] = true,
            ['imorgon'] = true,
            ['impaler'] = true,
            ['impaler5'] = true,
            ['impaler6'] = true,
            ['inductor'] = true,
            ['inductor2'] = true,
            ['infernus2'] = true,
            ['ingot'] = true,
            ['issi3'] = true,
            ['issi7'] = true,
            ['issi8'] = true,
            ['italigtb'] = true,
            ['italigtb2'] = true,
            ['italigto'] = true,
            ['italirsx'] = true,
            ['iwagen'] = true,
            ['jester3'] = true,
            ['jester4'] = true,
            ['journey2'] = true,
            ['jubilee'] = true,
            ['jugular'] = true,
            ['kanjo'] = true,
            ['kanjosj'] = true,
            ['komoda'] = true,
            ['krieger'] = true,
            ['l35'] = true,
            ['landstalker2'] = true,
            ['lm87'] = true,
            ['locust'] = true,
            ['lynx'] = true,
            ['michelli'] = true,
            ['monstrociti'] = true,
            ['nebula'] = true,
            ['neo'] = true,
            ['novak'] = true,
            ['omnisegt'] = true,
            ['outlaw'] = true,
            ['panthere'] = true,
            ['paragon'] = true,
            ['patriot2'] = true,
            ['patriot3'] = true,
            ['penetrator'] = true,
            ['penumbra2'] = true,
            ['peyote'] = true,
            ['peyote2'] = true,
            ['peyote3'] = true,
            ['postlude'] = true,
            ['powersurge'] = true,
            ['previon'] = true,
            ['r300'] = true,
            ['rancherxl'] = true,
            ['raptor'] = true,
            ['ratel'] = true,
            ['rebla'] = true,
            ['reever'] = true,
            ['remus'] = true,
            ['rhapsody'] = true,
            ['rhinehart'] = true,
            ['rt3000'] = true,
            ['ruston'] = true,
            ['s80'] = true,
            ['sadler'] = true,
            ['schlagen'] = true,
            ['schwarzer'] = true,
            ['seminole2'] = true,
            ['sentinel4'] = true,
            ['serrano'] = true,
            ['sm722'] = true,
            ['specter'] = true,
            ['specter2'] = true,
            ['speedo'] = true,
            ['speedo2'] = true,
            ['speedo4'] = true,
            ['speedo5'] = true,
            ['squaddie'] = true,
            ['stafford'] = true,
            ['stalion'] = true,
            ['stanier'] = true,
            ['stingertt'] = true,
            ['stratum'] = true,
            ['stryder'] = true,
            ['sugoi'] = true,
            ['sultan2'] = true,
            ['sultan3'] = true,
            ['surge'] = true,
            ['swinger'] = true,
            ['tahoma'] = true,
            ['tailgater2'] = true,
            ['taipan'] = true,
            ['tempesta'] = true,
            ['tenf'] = true,
            ['tenf2'] = true,
            ['terminus'] = true,
            ['tezeract'] = true,
            ['tigon'] = true,
            ['toreador'] = true,
            ['torero'] = true,
            ['torero2'] = true,
            ['tornado'] = true,
            ['tornado2'] = true,
            ['tornado3'] = true,
            ['tornado4'] = true,
            ['tornado5'] = true,
            ['tornado6'] = true,
            ['toros'] = true,
            ['tulip'] = true,
            ['tulip2'] = true,
            ['turismo2'] = true,
            ['turismo3'] = true,
            ['tyrant'] = true,
            ['vagner'] = true,
            ['vagrant'] = true,
            ['vamos'] = true,
            ['vectre'] = true,
            ['vigero2'] = true,
            ['vigero3'] = true,
            ['vindicator'] = true,
            ['virtue'] = true,
            ['vivanite'] = true,
            ['vstr'] = true,
            ['weevil'] = true,
            ['weevil2'] = true,
            ['winky'] = true,
            ['xa21'] = true,
            ['yosemite3'] = true,
            ['zeno'] = true,
            ['zion3'] = true,
            ['zorrusso'] = true,
        },
    },
    ["PlanesDealership"] = {
        jobName = 'planesdealership',
        societyName = 'society_planesdealership',
        cityhall_grades = { -- Grades for sections from vms_cityhall
            ['resumes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
            ['taxes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
        },

        brand = "Planes Dealership",
        address = "Los Santos International Airport",

        paymentMethods = {'cash', 'bank'},

        wholesaleType = 'planes',
        maxOrderVehicles = 1,

        realisticDelivery = false, -- Does the player have to drive himself to pick up the vehicles
        orderDeliveryTime = 24 * 60, -- Value given in minutes, only works with realisticDelivery = false

        allowPurchase = true,
        allowTestDrive = true,
        showPrices = true,
        abilityCustomLicensePlate = false,
        showOnlyAvailable = false,

        spawnVehicleOnPurchase = true, -- Vehicle is supposed to spawn after purchase

        testDriveTime = 120, -- seconds
        testDrivePrice = 6000,
        
        freeCamRadius = 15.5,

        storeArea = { -- PolyZone
            vector2(-1034.1, -2871.65),
            vector2(-1064.45, -2926.7),
            vector2(-1119.66, -2894.29),
            vector2(-1092.95, -2848.45),
        },
        minZ = 11.5,
        maxZ = 26.13,

        blip = {
            enabled = true,
            coords = vector3(-1070.72, -2868.32, 12.95),
            sprite = 582,
            display = 4,
            scale = 1.0,
            color = 26,
            name = 'Planes Dealership',
        },
        
        vehiclePoint = vector4(-1081.76, -2889.77, 13.95, 258.12),
        deliveryPoint = vector3(-1074.24, -2923.03, 13.95),
        
        onPurchasePoint = vector4(-985.24, -3114.29, 13.94, 114.29),

        testDrivePoint = vector4(-1330.37, -2200.23, 12.98, 149.59),
        testDriveEndPoint = vector3(-1074.24, -2923.03, 13.95),

        showroomPoint = {
            coords = vector3(-1070.68, -2868.34, 13.95),
            targetCoords = vector3(-1070.13, -2867.22, 14.4),
            targetHeading = 333.14,
            targetSize = vec(2.4, 1.45, 2.5),
        },
        
        showroomInside = {
            camera = vector3(-1336.159, -2739.14, 15.864),
            cameraFov = 59.5,
            vehicle = vector4(-1343.11, -2725.5, 12.94, 149.03),
            player = vector4(-1336.02, -2730.53, 12.94, 181.71),
        },

        managementPoint = {
            coords = vector3(-1078.27, -2863.67, 13.95),
            targetCoords = vector3(-1078.27, -2863.67, 13.95),
            targetHeading = 328.14,
            targetSize = vec(3.0, 3.0, 3.0),
        },

        vehicles = {
            ['alphaz1'] = true,
            ['cuban800'] = true,
            ['dodo'] = true,
            ['duster'] = true,
            ['howard'] = true,
            ['luxor'] = true,
            ['luxor2'] = true,
            ['mammatus'] = true,
            ['microlight'] = true,
            ['miljet'] = true,
            ['nimbus'] = true,
            ['rogue'] = true,
            ['seabreeze'] = true,
            ['shamal'] = true,
            ['streamer216'] = true,
            ['stunt'] = true,
            ['velum'] = true,
            ['velum2'] = true,
            ['vestra'] = true,
            ['buzzard2'] = true,
            ['cargobob'] = true,
            ['cargobob2'] = true,
            ['conada'] = true,
            ['havok'] = true,
            ['maverick'] = true,
            ['seasparrow'] = true,
            ['seasparrow2'] = true,
            ['seasparrow3'] = true,
            ['supervolito'] = true,
            ['supervolito2'] = true,
            ['swift'] = true,
            ['swift2'] = true,
        },
    },
    ["BoatsDealership"] = {
        jobName = 'boatsdealership',
        societyName = 'society_boatsdealership',
        cityhall_grades = { -- Grades for sections from vms_cityhall
            ['resumes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
            ['taxes'] = {'manager', 'boss'}, -- string: 'name', table: {'name', 'name2'}
        },
        
        brand = "Boats Dealership",
        address = "Los Santos International Airport",

        paymentMethods = {'cash', 'bank'},

        wholesaleType = 'boats',
        maxOrderVehicles = 1,

        realisticDelivery = false, -- Does the player have to drive himself to pick up the vehicles
        orderDeliveryTime = 6 * 60, -- Value given in minutes, only works with realisticDelivery = false

        allowPurchase = true,
        allowTestDrive = true,
        showPrices = true,
        abilityCustomLicensePlate = false,
        showOnlyAvailable = false,

        spawnVehicleOnPurchase = true, -- Vehicle is supposed to spawn after purchase

        testDriveTime = 90, -- seconds
        testDrivePrice = 6000,
        
        freeCamRadius = 14.5,

        storeArea = { -- PolyZone
            vector2(-676.39, -1391.83),
            vector2(-701.69, -1422.17),
            vector2(-732.94, -1396.99),
            vector2(-709.01, -1363.78),
        },
        minZ = 4.0,
        maxZ = 15.0,

        blip = {
            enabled = true,
            coords = vector3(-699.26, -1395.1, 12.9),
            sprite = 427,
            display = 4,
            scale = 1.0,
            color = 26,
            name = 'Boat Dealership',
        },

        vehiclePoint = vector4(-682.46, -1424.32, 4.0, 85.13),
        deliveryPoint = vector3(-693.2, -1403.65, 5.0),

        onPurchasePoint = vector4(-889.08, -1442.13, -1.47, 293.07),
        
        testDrivePoint = vector4(-830.78, -1529.63, -0.37, 137.91),
        testDriveEndPoint = vec(-846.15, -1503.58, 1.0),

        showroomPoint = {
            coords = vector3(-696.5, -1386.62, 5.5),
            targetCoords = vector3(-696.21, -1386.82, 5.5),
            targetHeading = 231.06,
            targetSize = vec(1.8, 1.0, 2.5),
        },

        showroomInside = {
            camera = vector3(-837.47, -1492.268, 2.842),
            cameraFov = 52.0,
            vehicle = vector4(-846.15, -1503.58, -0.3, 293.78),
            player = vector4(-845.91, -1497.69, 0.63, 316.89),
        },

        managementPoint = {
            coords = vector3(-704.28, -1398.45, 5.5),
            targetCoords = vector3(-703.87, -1398.06, 5.0),
            targetHeading = 321.28,
            targetSize = vec(1.8, 1.0, 2.5),
        },
        
        vehicles = {
            ['avisa'] = true,
            ['dinghy'] = true,
            ['dinghy2'] = true,
            ['dinghy3'] = true,
            ['dinghy4'] = true,
            ['jetmax'] = true,
            ['longfin'] = true,
            ['marquis'] = true,
            ['speeder'] = true,
            ['speeder2'] = true,
            ['squalo'] = true,
            ['submersible'] = true,
            ['submersible2'] = true,
            ['suntrap'] = true,
            ['toro'] = true,
            ['toro2'] = true,
            ['tropic'] = true,
            ['tropic2'] = true,
            ['seashark'] = true,
            ['seashark3'] = true,
        },
    },
}