Groot Development
Store
  • 👋Welcome
  • Coding Information
    • Register Key Mapping
  • ASSETS
    • 🕙g-duty
      • Why?
      • Installation
      • Config.lua
    • 📋g-scoreboard-V1
      • Installation
      • Config.lua
    • 📋g-scoreboardV2
      • Installation
      • Config.lua
      • Exports & Events
    • 🎁g-giftcard
      • Installation
      • Config.lua
      • Export
    • 🏡g-job-vehicle-shop
      • Installation
      • ⚙️Configuration
        • Exports
        • Create Vehicle Management Panel
        • Create Vehicle Shops
    • 💯g-redeem-code
      • 🗒️Features
      • Installation
      • ⛔Note
      • ⚙️Configuration
        • Create New item
    • 📖g-pausemenu
      • 🗒️Features
      • Installation
      • ⚙️Features Guide
        • Info Buttons
        • socials Buttons
        • Rules
        • Organization Avatar
    • 🛠️g-crafting
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ❔Why
      • ⚔️Exports
      • Configuration
        • How to Create New Station
        • How to Create crafting time for an item.
    • 🛒g-shopsV2
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚔️Exports
      • Configuration
        • How to Create New Shop
        • How to create new item
    • 🔧g-adv-modern-repairkit
      • 🗒️Features
      • 📦Patch Details
      • Installation
      • ⚙️Configuration
  • 📖g-pausemenu-simplified
    • 📦Patch Details
    • Installation
    • ❔Why
    • Configuration
      • Git Dev Patchs
  • FREE RELEASE
    • 🎁g-starterpack-gift
      • Installation
      • Config.lua
    • 👨‍🔬g-employee-chat-list
      • Installation
    • g-notifications
      • Installation
      • Notification
      • Framework Integration
      • Remove Notification By ID
Powered by GitBook
On this page
  1. ASSETS
  2. g-job-vehicle-shop

Configuration

Config = {}

Config.settings = {
    CheckForUpdates = true,
    -- en - English | es - SPANISH | fr - FRENCH | hi - HINDI | ko - KOREAN | ml - MALAYALAM | ta - TAMIL | tr - TURKISH | zh - CHINESE
    Language = "en",
    Debug = false,
    currency = "$", -- currency symbol NOTE: just a label
    enableSystem = true, -- if true, player will be able to buy vehicle
    enableConfirmationMessageBeforeBuy = false, -- if true, player will be popup the confirm message before buy
    OneTimeBought = false, -- If true, the player will be able to buy the same vehicle only once
    RemoveMoneyFrom = "cash", -- bank | cash
    Notify = "ox_lib", -- esx | qb-core | ox_lib | custom
    Target = "textui", -- 'qb-target' | 'ox-target' | 'textui' | 'custom' ```lua - I wouldn’t recommend using textui [idle ms 0.02]
    WaitTime = 5, -- in seconds | only if Target = 'textui'
    EnablePeds = true,
    -- Tablet config
    EnableVehicleMangementMenu = true, -- if true, player will be able to open vehicle management menu
    DeleteDataTime = 1, -- in seconds -- delete vehicle cooldowns Note: default should be 1 second
    PanelItemName = 'veh_mangement_tablet',
    OpenVehicleManagementPanel = "item", -- 'item' || 'command' -- you wanna open management panel with command or item?
    PanelCommandName = "vehmanage"
}
Config.MoneyType = {
    -- You can change it depending on your framework, and you also need to update it in the bridge
    cash = "cash",
    bank = "bank"

}

Config.Garage = {
    -- QBCore - pillboxgarage | ESX - SanAndreasAvenue - you can change it
    defaultParking = "pillboxgarage" -- defaultParking
}

-- Management Panel Configurations
Config.ManagementPanelConfig = {
    ['police'] = {
        grades = {2, 3, 4}, -- who can access the management panel
        title = "POLICE VEHICLE MANAGEMENT"
    },
    -- ['jobname'] = {
    --     grades = {0, 2},
    --     title = "Panel names"
    -- }
}

Config.VehicleShops = {
    ["police"] = { -- job name
        MenuConfig = {
            title = "Police Vehicle Shop", -- menu label
            icon = "fa-solid fa-car", -- icon
            TargetCoords = {
                vec3(445.1023, -977.7159, 30.6896), 
                vec3(431.2261, -977.4242, 30.7106) 
                -- add more if you need
            },
            PedCoords = {
                vector4(445.1023, -977.7159, 30.6896, 95.0124), 
                vector4(431.2261, -977.4242, 30.7106, 21.0814)
                 -- add more if you need
            },
            PedModel = "s_m_y_cop_01" -- ped model
        },
        AuthorizedVehicles = {
            [1] = { -- index = grade
                -- 1st grade
                vehicles = {
                    {
                        model = "police3",
                        label = "Police 3",
                        price = 1,
                        type = "car" -- The type of vehicle, whether 'car' or 'air', depends on your garage.
                    }, {
                        model = "police2",
                        label = "Police 2",
                        price = 20000,
                        type = "car"
                    }
                -- add more if you want
                }
            },
            [2] = { -- 2th grade
                vehicles = {{
                    model = "police3",
                    label = "Police 3",
                    price = 1,
                    type = "car"
                }, {
                    model = "police2",
                    label = "Police 2",
                    price = 2000,
                    type = "car"
                }, {
                    model = "maverick",
                    label = "Maverick",
                    price = 10000,
                    type = "air"
                }}
            }
        },
        DiscordLogs = {
            enable = true, -- true or false
            webhook = "", -- add your discord webhook here
            Labels = {
                Title = "Police Vehicle Shop Log",
                embedColor = 16711680 -- embed color code
            }
        }
    }
    -- create more shops if you need
}

PreviousInstallationNextExports

Last updated 10 months ago

🏡
⚙️