Skip to Content

Items & Images

Prism Restaurant uses ox_inventory base items for prepared food, drinks, ingredients, and the cafe tablet.

ox_inventory items

Add the content from prism_restaurant/INSTALL/ox_inventory/item.txt into ox_inventory/data/items.lua.

ox_inventory/data/items.lua
['restaurant_food'] = { label = 'Cafe Food', weight = 250, stack = true, close = true, description = 'Prepared cafe food.', client = { image = 'restaurant_food.png' } }, ['restaurant_drink'] = { label = 'Cafe Drink', weight = 250, stack = true, close = true, description = 'Prepared cafe drink.', client = { image = 'restaurant_drink.png' } }, ['restaurant_ingredient'] = { label = 'Cafe Ingredient', weight = 250, stack = true, close = true, client = { image = 'restaurant_ingredients.png' } }, ['cafe_tablet'] = { label = 'Cafe Tablet', weight = 500, stack = false, close = true, description = 'Open your cafe business tablet.', client = { image = 'cafe_tablet.png' } },

Image folders

Copy all provided images into ox_inventory:

prism_restaurant/INSTALL/IMAGES/food/* -> ox_inventory/web/images/items/ prism_restaurant/INSTALL/IMAGES/drink/* -> ox_inventory/web/images/items/ prism_restaurant/INSTALL/IMAGES/ingredients/* -> ox_inventory/web/images/items/

Image URL config

shared/config.lua
Config.ItemImages = { BaseUrl = 'https://cdn.shotta.wtf/items/', Extension = '.png', FallbackName = 'water', }

If you use ox_inventory local NUI images instead of a CDN, set the base URL like this:

shared/config.lua
Config.ItemImages.BaseUrl = 'nui://ox_inventory/web/images/items/'

Dynamic ingredient items

Ingredients can use the shared base item restaurant_ingredient. Prism Restaurant reads ingredient identity from item metadata, so ingredients can still be detected correctly while using the same ox_inventory item.

When cooking, the resource matches ingredient items by both item name and metadata. This supports normal ingredient items and dynamic restaurant_ingredient items.

Cafe tablet item

cafe_tablet opens the worker tablet when used inside the cafe zone. It is not consumed.

Workers using the command still need the item when Config.BusinessTablet.RequireItemForCommand = true.

Last updated on