Skip to content

Shops ​

Here's a drag'n'drop example of how to set up shops for farming equipment 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
["FarmingEquipment"] = {
    name = "Farming Equipment",
    inventory = {
        { name = "farm_pot_small",  price = 250 },
        { name = "farm_pot_medium", price = 500 },
        { name = "farm_pot_large",  price = 750 },
        { name = "farm_water_can",  price = 1000 },
        { name = "farm_fertilizer", price = 1500 },
        { name = "weapon_scanner",  price = 1500 },
    },
    -- locations = {
    --    vector3(0.0, 0.0, 0.0), -- example location
    -- },
    targets = {
        { ped = `s_m_m_strvend_01`, scenario = "WORLD_HUMAN_STAND_IMPATIENT", loc = vec3(2436.34, 5009.56, 45.77), heading = 318.99 },
    },
}

TIP

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