๐Ÿ›’Commissary & Illegal Shops

The Prison Commissary and Black Market System give inmates access to food, utilities, and contraband items. These shops are essential for gameplay progression, roleplay depth, and jailbreak mechanics.


๐Ÿฅช Commissary Shop

The Commissary sells basic items like food and drink. You can fully configure:

  • Items sold

  • Prices

  • Shop name and ped location

  • Target interaction label/icon

๐Ÿงพ Config Example (config.lua)

Config.FoodShop = {
    ped = `s_m_m_linecook`,
    coords = vector4(1779.15, 2559.04, 45.57, 0.0),
    products = {
        { name = "water", price = 3 },
        { name = "ramen_noodles", price = 6 },
        { name = "burger", price = 8 }
    }
}

Players must use prison currency stored in your dynyx_prisonitems SQL table under prison_money.


๐Ÿงจ Black Market / Illegal Shop

The Illegal Shop allows inmates to buy or trade for contraband like escape tools, blueprints, or keycards.

๐Ÿ’ฌ Shop UI Options

  • Buy Items โ€“ uses prison money

  • Trade Items โ€“ exchange required items (e.g., scrap or job rewards) for contraband

โš™๏ธ Config Snippet

Config.PrisonJob.IllegalShopPed = {
    model = `g_m_m_mexboss_01`,
    coords = vector4(1765.2, 2520.7, 45.6, 90.0),
    items = {
        { name = "makeshift_explosive", price = 50 },
        { name = "blueprint_pistol", price = 80 }
    },
    trades = {
        {
            give = { "metal_scrap", "plastic" },
            receive = "bribe_package",
            amount = 1
        }
    }
}

๐Ÿง  Developer Tips

Want to sell custom weapons or blueprints?

Add to the items list under IllegalShopPed

Want to allow trade-only items?

Use the trades section with no price required

Want to restrict based on rank or XP?

Add conditional logic in your target setup or shop UI

Last updated