pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  1. Assets & Guides
  2. Car Sale Job

Config File

Config = {}

Config.loadEvents = {
    ['ESX'] = 'esx:playerLoaded',
    ['QB'] = 'QBCore:Server:PlayerLoaded',
    ['QBOX'] = 'QBCore:Server:PlayerLoaded',
    ['ND'] = 'ND:characterLoaded',
}

Config.Debug = false -- true / false [prints and zones]
Config.Framework = 'ESX' -- ESX / QB / QBOX / ND
Config.Language = 'en' -- en / fr / es / de / it / nl / pt / pl / tr / ru / ar [custom locales folder]
Config.Target = 'ox_target' -- ox_target / qb-target / ox_lib [context menu] / custom [target folder]
Config.ProgressBar = 'ox_lib' -- ox_lib / mythic_progbar / progressBars [custom client editable]
Config.TextUI = 'ox_lib' -- ox_lib / brutal_textui / jg-textui [custom client editable]
Config.UseZonesSystem = true -- set to false if you don't want to use used market cars
Config.UseJobSystem = true -- set to false if you don't want to use job system
Config.RequiredEmployeeToBuy = true -- set to false if you want to allow everyone to buy vehicles without employee [ignore if not job system]
Config.UseVIN = false -- set to true if you using vin system for owned vehicles [GO TO BRIDGE/SERVER AND CHANGE EXPORT IN buyVehicle]
Config.InspectVehicle = true -- set to true if you want to allow inspect vehicle
Config.RestoreVehicle = true -- allow players to remove their vehicles from market? [only if not using job system]
Config.TabletUsage = 'none' -- item / command / none [if none will be only available in boss room]
Config.DiscordLogs = true -- set to false if you don't want to use discord logs [server/editable.lua]
Config.onPlayerLoaded = Config.loadEvents[Config.Framework] -- event name for player loaded [server]
Config.VehiclesTable = 'dealership_vehicles' -- table name in database where vehicles will be saved [you can change it]

Config.DuiSettings = {
    ['3d'] = true, -- 3d?
    ['faceCam'] = true, -- face cam? only for 3d
    ['renderDistance'] = 5.0, -- render distance for dui
    ['scale'] = 2.25,
    ['offset'] = vector3(0.0, 0.0, 1.5), -- offset from vehicle
    ['rotation'] = vector3(0.0, 0.0, 180.0) -- for 3d without facecam only!!
}

-- 0: Compacts  
-- 1: Sedans  
-- 2: SUVs  
-- 3: Coupes  
-- 4: Muscle  
-- 5: Sports Classics  
-- 6: Sports  
-- 7: Super  
-- 8: Motorcycles  
-- 9: Off-road  
-- 10: Industrial  
-- 11: Utility  
-- 12: Vans  
-- 13: Cycles  
-- 14: Boats  
-- 15: Helicopters  
-- 16: Planes  
-- 17: Service  
-- 18: Emergency  
-- 19: Military  
-- 20: Commercial  
-- 21: Trains  
-- 22: Open Wheel

-- YOU CAN ADD BLACKLIST FOR VEHICLE MODELS OR CLASS
Config.Blacklist = {
    [14] = true, -- BLACKLISTED VEHICLE CLASS 14 = BOATS
    [15] = true, -- BLACKLISTED VEHICLE CLASS 15 = HELICOPTERS
    [16] = true, -- BLACKLISTED VEHICLE CLASS 16 = PLANES
    [17] = true, -- BLACKLISTED VEHICLE CLASS 17 = SERVICE
    [18] = true, -- BLACKLISTED VEHICLE CLASS 18 = EMERGENCY
    [19] = true, -- BLACKLISTED VEHICLE CLASS 19 = MILITARY
    [20] = true, -- BLACKLISTED VEHICLE CLASS 20 = COMMERCIAL
    [21] = true, -- BLACKLISTED VEHICLE CLASS 21 = TRAINS
    ['rhino'] = true, -- BLACKLISTED SPECIFIC VEHICLE MODEL
}

Config.Zones = { -- ITS FOR USED MARKET CARS WITHOUT JOB
    -- ['Grand_Sendora'] = { -- zone name
    --     ped = {
    --         model = 'csb_mp_agent14',
    --         anim = {dict = 'rcmjosh1leadinout', clip = 'idle_josh', flag = 1},
    --         coords = vector4(1118.1448, 2643.8611, 38.1441, 359.9459)
    --     },
    --     centerPoint = vec3(1125.0909, 2654.8662, 36.5981),
    --     zoneSize = vec3(80.0, 70.0, 50.0),
    --     zoneRot = 179.5184,
    --     blipData = {
    --         enabled = true,
    --         sprite = 523,
    --         color = 1,
    --         scale = 0.85,
    --         label = 'Used Cars Market',
    --     },
    --     vehiclePoints = {
    --         vector4(1135.2618, 2647.3232, 37.9977, 358.1047),
    --         vector4(1131.4532, 2647.4719, 37.9975, 358.0457),
    --         vector4(1127.6898, 2647.9016, 37.9975, 359.5041),
    --         vector4(1124.2067, 2647.4385, 37.9975, 0.0015),
    --         vector4(1120.5972, 2647.4067, 37.9975, 0.4033),
    --         vector4(1116.9805, 2647.4863, 37.9975, 1.6562),
    --         vector4(1111.6504, 2654.2476, 37.9974, 268.6702),
    --         vector4(1111.4733, 2657.8113, 37.9958, 275.3448)
    --     },
    --     testDrive = {
    --         ['enabled'] = true, -- isEnabled?
    --         ['coords'] = vec4(1063.7261, 2677.6094, 39.1893, 356.8536), -- test drive coords
    --         ['time'] = 30, -- 30 seconds
    --     }
    -- }
}

Config.Tablet = { -- ignore if not using job system
    permissions = {
        ['dealership'] = {
            [0] = { -- permissions for grade 0 in dealership job
                ['employees'] = {
                    ['update'] = false, ['hire'] = false, ['fire'] = false, ['reset_time'] = false
                },
                ['vehicles'] = {
                    ['put_on_sale'] = true, ['manage_vehicle'] = false
                },
                ['company'] = {
                    ['withdraw'] = true, ['deposit'] = true
                }
            },
            [1] = { -- permissions for grade 1 in dealership job
                ['employees'] = {
                    ['update'] = false, ['hire'] = false, ['fire'] = false, ['reset_time'] = false
                },
                ['vehicles'] = {
                    ['put_on_sale'] = true, ['manage_vehicle'] = true
                },
                ['company'] = {
                    ['withdraw'] = false, ['deposit'] = false
                }
            },
            [2] = { -- permissions for grade 2 in dealership job
                ['employees'] = {
                    ['update'] = true, ['hire'] = true, ['fire'] = true, ['reset_time'] = true
                },
                ['vehicles'] = {
                    ['put_on_sale'] = true, ['manage_vehicle'] = true
                },
                ['company'] = {
                    ['withdraw'] = true, ['deposit'] = true
                }
            }
        }  
    },
    sortEmployees = 'grade', -- grade / status / random [sort descending]
    sortVehicles = 'time', -- price / time / status / random [sort descending]
}

Config.Dealerships = { -- for job system
    ['dealership'] = {
        label = 'Dealership', -- for inserting in database [esx only, on other framework you need to add manually]
        centerPoint = vec3(1226.9524, 2709.4487, 36.2072),
        zoneSize = vec3(80.0, 70.0, 50.0),
        zoneRot = 0.0,
        allowedJobs = { -- which jobs can access this dealership
            ['dealership'] = 0,
        },
        blipData = {
            enabled = true,
            sprite = 523,
            colors = {
                ['closed'] = 1,
                ['opened'] = 2
            },
            scale = 0.85,
            label = 'Dealership',
        },
        miscPoints = {
            ['toggleShopStatus'] = { -- remove if you dont want it
                coords = vec3(1237.11, 2730.59, 38.0), 
                radius = 0.65,
                allowedGrade = 2, -- from grade 2 player can toggle shop status
                label = 'Change status',
                drawSprite = true
            },
            ['openManageMenu'] = { -- REMOVE THIS POINT IF YOU WANT TO USE TABLET AS ITEM / IN RADIAL ETC
                coords = vec3(1237.11, 2730.59, 38.0), 
                radius = 0.65,
                allowedGrade = 0, -- from grade 0 player can access manage menu
                label = 'Manage shop',
                drawSprite = true
            },
            ['openContractsMenu'] = {
                coords = vec3(1239.86, 2733.4, 38.3), 
                radius = 0.6,
                allowedGrade = 1, -- from grade 0 player can access contracts menu
                label = 'Check contracts',
                drawSprite = true
            },
            ['printContract'] = {
                coords = vec3(1238.08, 2733.96, 38.3), 
                radius = 0.35,
                allowedGrade = 0, -- from grade 0 player can print contract
                label = 'Print contract',
                drawSprite = true
            }
        },
        testDrive = {
            ['enabled'] = true, -- isEnabled?
            ['coords'] = vec4(1063.7261, 2677.6094, 39.1893, 356.8536), -- test drive coords
            ['time'] = 30, -- 30 seconds
        }
    }
}

Config.CustomMiscFunctions = {}
PreviousInstallation GuideNextClient Exports

Last updated 19 days ago

🚗
⚙️