Skip to content

Shops

Here's a drag'n'drop example of how to set up shops for mining tools using different inventory systems. You can customize the items, prices, and locations as needed.

Tools

Add the shop to your ox_inventory in data/shops.lua.

lua
["MiningShop"] = {
    name = "Mining Shop",
    inventory = {
        { name = "WEAPON_PICKAXE",       price = 250  },
        { name = "WEAPON_DRILL",         price = 500  },
        { name = "WEAPON_DRILL_COBALT",  price = 750  },
        { name = "WEAPON_DRILL_HSS",     price = 1000 },
        { name = "WEAPON_DRILL_DIAMOND", price = 1500 },
    },
    -- locations = {
    --    vector3(2707.3118, 2776.8994, 37.8780), -- example location
    -- },
    targets = {
        { ped = `s_m_m_strvend_01`, scenario = "WORLD_HUMAN_STAND_IMPATIENT", loc = vector3(2707.3118, 2776.8994, 37.8780), heading = 27.8579 },
    },
}

TIP

The coordinates used above are examples. Replace them with your desired shop location.