Shop for models

Details

You can create shops that open when you interact with specific models in the game world. This is useful for creating vending machines, ATMs, or other interactive objects that players can use to access a shop.

Example configuration file

config/shops.lua
return {
    -- ...
    VendingMachineDrinks = {
        label = 'Vending Machine',
        items = {
            { name = 'water', price = 10 },
            { name = 'cola',  price = 10 },
        },
        model = {
            `prop_vend_soda_02`, `prop_vend_fridge01`, `prop_vend_water_01`, `prop_vend_soda_01`
        }
    }
}