Stevo Scripts
  • Stevo Scripts
  • stevo lib
    • 📚stevo_lib
      • Functions
        • Client Functions
        • Server Functions
      • Businesses
        • Logs
        • Server Functions
      • Skills
        • Server Functions
  • PAID SCRIPTS
    • 🪪Badges
      • Config
      • Installation
      • Dependencies
    • 🔫stevo_claiming
      • Installation
      • Dependencies
    • 🚗stevo_dmv
      • Installation
        • Items
      • Dependencies
      • Exports
    • 👮stevo_police
      • Installation
      • Exports
      • Dependencies
    • 🔓stevo_prison
      • Installation
        • Items
      • Dependencies
      • Config
      • Exports
    • 💰stevo_supporter
    • 🚠stevo_vendors
      • Installation
      • Configuration
      • Dependencies
    • 🏢stevo_dealerships
      • Installation
      • Dependencies
      • Adding Vehicles
  • FREE SCRIPTS
    • 📦stevo_cayocrates
      • Installation
      • Dependencies
    • 🪓stevo_chopshop
      • Installation
      • Dependencies
    • 🛂stevo_citizenship
      • Installation
      • Dependencies
    • 🌱stevo_drugsell
      • Installation
      • Dependencies
    • 📋stevo_feedback
      • Installation
      • Dependencies
    • 🍎stevo_fruitpicking
      • Installation
        • Items
      • Dependencies
    • 👮‍♀️stevo_policebadge
      • Installation
        • Items
      • Dependencies
    • 🛠️stevo_portablecrafting
      • Installation
        • Items
      • Dependencies
    • 🧼stevo_portablemoneywash
      • Installation
        • Items
      • Dependencies
    • 🚔stevo_jobgarages
      • Installation
      • Dependencies
    • 👻stevo_trickortreat
      • Installation
        • Items
      • Dependencies
    • 🍇stevo_advancedvineyard
      • Installation
        • Items
      • Dependencies
    • 🚨stevo_reports
      • Installation
      • Dependencies
    • 🧹stevo_communityservice
      • Installation
      • Dependencies
Powered by GitBook
On this page
  1. PAID SCRIPTS
  2. stevo_vendors

Configuration

Configuration guide for stevo_vendors

return {
    logWebhook = "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN", -- Set to false for no discord logs.
    vendors = {
        ['rifle_vendor']  = {
            name = 'Rifle Vendor',
            PED_LOCATION = vector4(1409.9078, 3620.0334, 33.8943, 294.6835),
            PED_MODEL = 's_m_m_ammucountry',
            PED_SCENARIO = 'WORLD_HUMAN_CLIPBOARD',
            TEXT_LABEL = '[~r~E~w~] Open ~r~Rifle~w~ Vendor',
            TARGET_LABEL = 'Open Vendor',
            viewDistance = 5, 
            groups = {'police', 'ballas'}, -- Supports job names on ESX & QB / Supports gang names on QB
            items = {
                {
                    item = 'WEAPON_CARBINERIFLE',
                    icon = 'fas fa-gun',
                    can_buy_multiple = false, -- If the player can buy more than 1 at once.
                    requiredItems = {["money"] = 1},
                    collectDelay = false, -- Time (in minutes) players have to wait to collect item. (Set to false for no wait time)
                    stock = 10,
                    amount = 1,
                },
                {
                    item = 'weapon_assaultrifle',
                    icon = 'fas fa-gun',
                    can_buy_multiple = false, -- If the player can buy more than 1 at once.
                    requiredItems= {["money"] = 5, ["donut"] = 1},
                    collectDelay = 5, -- Time (in minutes) players have to wait to collect item. (Set to false for no wait time)
                    stock = 1,
                    amount = 1,
                },
                {
                    item = 'ammo-rifle',
                    icon = 'fas fa-gun',
                    can_buy_multiple = true, -- If the player can buy more than 1 at once.
                    requiredItems = {["money"] = 1},
                    collectDelay = false, -- Time (in minutes) players have to wait to collect item. (Set to false for no wait time)
                    stock = 20,
                    amount = 1,
                },
            }
        },
        ['pistol_vendor']  = {
            name = 'Pistol Vendor',
            PED_LOCATION = vector4(1419.3724, 3607.8008, 33.9568, 294.6835),
            PED_MODEL = 's_m_m_ammucountry',
            PED_SCENARIO = 'WORLD_HUMAN_CLIPBOARD',
            TEXT_LABEL = '[~r~E~w~] Open ~r~Pistol~w~ Vendor',
            TARGET_LABEL = 'Open Vendor',
            viewDistance = 5, 
            groups = {'police'},
            items = {
                {
                    item = 'weapon_pistol',
                    icon = 'fas fa-gun',
                    requiredItems= {["money"] = 1},
                    collectDelay = 5, -- Time (in minutes) players have to wait to collect item. (Set to false for no wait time)
                    stock = 1,
                    amount = 1,
                },
                {
                    item = 'weapon_heavypistol',
                    icon = 'fas fa-gun',
                    requiredItems= {["money"] = 1, ["donut"] = 1},
                    collectDelay = 2, -- Time (in minutes) players have to wait to collect item. (Set to false for no wait time)
                    stock = 1,
                    amount = 1,
                },
            }
        }
    }
}





return {

    
    NotifyType = 'ox_lib', -- Support for 'ox_lib', 'qb', 'esx', 'okok' and 'custom' to use a different type.

    interaction = { 
        type = 'text', -- Supports 'target' and 'text'
        
        targeticon = 'fas fa-store', -- https://fontawesome.com/icons
        targetradius = 3.0, 
    },


    menus = {
        
        menuViewVendorText = 'View Vendor',
        menuViewVendorIcon = 'fas fa-shop',

        menuCollectItemsText = 'Collect Items',
        menuCollectItemsIcon = 'fa-solid fa-box-open',

        menuCollectItemsEmptyText = 'Nothing to collect',
        menuCollectItemsEmptyIcon = 'fas fa-x',

    },

    locales = {
        deny_access_notify = 'You cannot access this vendor!', -- Notification when player accesses vendor they do not have group to open!
        no_required_items = 'You do not have the required items!', -- Notification when player tries to buy item without required items.
        cannot_buy_multi = 'You can only buy one of these at once!'
    }


  
}




PreviousInstallationNextDependencies

Last updated 10 months ago

🚠