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
  3. Configuration

Create Vehicle Shops

Prior experience as a developer or basic programming skills are advised

Config = {}

Config.VehicleShops = {
    ["yourjobname"] = {
        -- job name
        MenuConfig = {
            title = "Buy Menu Title Label", -- menu label
            icon = "fa-solid fa-car",
            TargetCoords = {
                -- These coordinates must be in vector3(). You can also add as many as you want.
                vec3(0.0, 00.0, 00.0)
            },
            PedCoords = {
                -- These coordinates must be in vector4(). You can also add as many as you want.
                vector4(0.0,0.0,0.0,0.0), 
            },
            PedModel = "s_m_y_cop_01" -- ped name https://docs.fivem.net/docs/game-references/ped-models/
        },
        AuthorizedVehicles = {
            -- [index] - grade
            [1] = { -- index = grade
                vehicles = {
                    {
                        model = "police3", -- vehicle spawn code
                        label = "Police 3", -- Your custom label for the vehicle
                        price = 1, -- Cost of the vehicle
                        type = "car" -- The type of vehicle, whether 'car' or 'air', depends on your garage system. 
                    }, 
                    {
                        model = "police2",
                        label = "Police 2",
                        price = 20000, 
                        type = "car"
                    },
                    -- add more vehicle 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"
                    },
                    -- add more vehicle if you want
                }
            }
        },
        DiscordLogs = {
            enable = true, -- If false, it doesn't send logs to Discord.
            webhook = "", -- discord webhook
            Labels = {
                Title = "Police Vehicle Shop Log", -- tile for embed
                embedColor = 16711680 -- embed color
            }
        }
    },
    -- add more if you need
}
PreviousCreate Vehicle Management PanelNextg-redeem-code

Last updated 10 months ago

🏡
⚙️