Skip to content

Shops

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

Fishing Rods

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

lua
["FishingShop"] = {
    name = "Fishing Shop",
    inventory = {
        { name = "basic_fishing_rod",        price = 100  },
        { name = "sport_fishing_rod",        price = 200  },
        { name = "professional_fishing_rod", price = 550  },
        { name = "aqua_fishing_rod",         price = 750  },
        { name = "golden_fishing_rod",       price = 1000 },
    },
    -- locations = {
    --    vector3(-1710.5709, -1110.9550, 13.1523), -- example location
    -- },
    targets = {
        { ped = `s_m_m_strvend_01`, scenario = "WORLD_HUMAN_STAND_IMPATIENT", loc = vector3(-1710.5709, -1110.9550, 13.1523), heading = 103.1455 },
    },
}

Bait

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

lua
["BaitShop"] = {
    name = "Bait Shop",
    inventory = {
        { name = "fishing_bait_worm",     price = 10 },
        { name = "fishing_bait_lugworm",  price = 15 },
        { name = "fishing_bait_radiated", price = 25 },
    },
    -- locations = {
    --    vector3(-1710.5709, -1110.9550, 13.1523),
    -- },
    targets = {
        { ped = `s_m_m_strvend_01`, scenario = "WORLD_HUMAN_STAND_IMPATIENT", loc = vector3(-1710.5709, -1110.9550, 13.1523), heading = 103.1455 },
    },
}

Combined Shop (Rods + Bait)

You can combine both into a single shop if you prefer one NPC to sell everything.

lua
["FishingShop"] = {
    name = "Fishing Supply Store",
    inventory = {
        -- Rods
        { name = "basic_fishing_rod",        price = 100  },
        { name = "sport_fishing_rod",        price = 200  },
        { name = "professional_fishing_rod", price = 550  },
        { name = "aqua_fishing_rod",         price = 750  },
        { name = "golden_fishing_rod",       price = 1000 },
        -- Bait
        { name = "fishing_bait_worm",        price = 10   },
        { name = "fishing_bait_lugworm",     price = 15   },
        { name = "fishing_bait_radiated",    price = 25   },
    },
    -- locations = {
    --    vector3(-1710.5709, -1110.9550, 13.1523),
    -- },
    targets = {
        { ped = `s_m_m_strvend_01`, scenario = "WORLD_HUMAN_STAND_IMPATIENT", loc = vector3(-1710.5709, -1110.9550, 13.1523), heading = 103.1455 },
    },
}

TIP

The coordinates used above are examples. Replace them with your desired shop location. The Prodigy and Sunset rods are excluded from the shop as they are earned through tournaments and challenges.