Installation
Dependencies
QBCore Framework theft-givecash (Included in pack)
ESX Framework ox_lib ox_inventory (Custom Inventory possible) qb-menu (Included in pack) qb-input (Included in pack) theft-givecash (Included in pack)
How to install
Add the following item to yourinventory/data/items.lua
QBCore users to qbcore/shared/items.lua
Add the item image to your inventory/images
If you are using a different inventory then literally create the same items for your custom inventory.
-- Uwu Cafe
["pasta_pack"] = {["name"] = "pasta_pack", ["label"] = "Italiano Pasta Pack", ["weight"] = 50, ["type"] = "item", ["image"] = "pasta_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["pizza_pack"] = {["name"] = "pizza_pack", ["label"] = "Pizza Pack", ["weight"] = 50, ["type"] = "item", ["image"] = "pizza_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_cherry_pack"] = {["name"] = "bubbletea_cherry_pack", ["label"] = "Bubble Tea Cherry Pack", ["weight"] = 150, ["type"] = "item", ["image"] = "bt_cherry_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_banana_pack"] = {["name"] = "bubbletea_banana_pack", ["label"] = "Bubble Tea Banana Pack", ["weight"] = 500, ["type"] = "item", ["image"] = "bt_limo_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_berry_pack"] = {["name"] = "bubbletea_berry_pack", ["label"] = "Bubble Tea Berry Pack", ["weight"] = 50, ["type"] = "item", ["image"] = "bt_multi_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_milk_pack"] = {["name"] = "bubbletea_milk_pack", ["label"] = "Bubble Tea Milk Pack", ["weight"] = 10, ["type"] = "item", ["image"] = "bt_milk_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_choco_pack"] = {["name"] = "bubbletea_choco_pack", ["label"] = "Bubble Tea Choco Pack", ["weight"] = 150, ["type"] = "item", ["image"] = "bt_choco_pack.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
-- Uwu Cafe
["pasta"] = {["name"] = "pasta", ["label"] = "Italiano Pasta", ["weight"] = 50, ["type"] = "item", ["image"] = "pasta.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["pizza"] = {["name"] = "pizza", ["label"] = "Pizza", ["weight"] = 50, ["type"] = "item", ["image"] = "pizza.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_cherry"] = {["name"] = "bubbletea_cherry", ["label"] = "Bubble Tea Cherry", ["weight"] = 150, ["type"] = "item", ["image"] = "bt_cherry.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_banana"] = {["name"] = "bubbletea_banana", ["label"] = "Bubble Tea Banana", ["weight"] = 500, ["type"] = "item", ["image"] = "bt_limo.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_berry"] = {["name"] = "bubbletea_berry", ["label"] = "Bubble Tea Berry", ["weight"] = 50, ["type"] = "item", ["image"] = "bt_multi.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_milk"] = {["name"] = "bubbletea_milk", ["label"] = "Bubble Tea Milk", ["weight"] = 10, ["type"] = "item", ["image"] = "bt_milk.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
["bubbletea_choco"] = {["name"] = "bubbletea_choco", ["label"] = "Bubble Tea Choco", ["weight"] = 150, ["type"] = "item", ["image"] = "bt_choco.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = ""},
Example for ox_inventory
-- Uwu Cafe Job
['pasta_pack'] = {
label = 'Italiano Pasta Pack',
weight = 100,
client = {
image = 'pasta_pack.png',
},
},
['pizza_pack'] = {
label = 'Pizza Pack',
weight = 200,
client = {
image = 'pizza_pack.png',
},
},
['bubbletea_cherry_pack'] = {
label = 'Bubble Tea Cherry Pack',
weight = 10,
client = {
image = 'bt_cherry_pack.png',
},
},
['bubbletea_banana_pack'] = {
label = 'Bubble Tea Banana Pack',
weight = 30,
client = {
image = 'bt_limo_pack.png',
},
},
['bubbletea_berry_pack'] = {
label = 'Bubble Tea Berry Pack',
weight = 10,
client = {
image = 'bt_multi_pack.png',
},
},
['bubbletea_milk_pack'] = {
label = 'Bubble Tea Milk Pack',
weight = 20,
client = {
image = 'bt_milk_pack.png',
},
},
['bubbletea_choco_pack'] = {
label = 'Bubble Tea Choco Pack',
weight = 100,
client = {
image = 'bt_choco_pack.png',
},
},
--
['pasta'] = {
label = 'Italiano Pasta',
weight = 100,
client = {
image = 'pasta.png',
},
},
['pizza'] = {
label = 'Pizza',
weight = 200,
client = {
image = 'pizza.png',
},
},
['bubbletea_cherry'] = {
label = 'Bubble Tea Cherry',
weight = 10,
client = {
image = 'bt_cherry.png',
},
},
['bubbletea_banana'] = {
label = 'Bubble Tea Banana',
weight = 30,
client = {
image = 'bt_limo.png',
},
},
['bubbletea_berry'] = {
label = 'Bubble Tea Berry',
weight = 10,
client = {
image = 'bt_multi.png',
},
},
['bubbletea_milk'] = {
label = 'Bubble Tea Milk',
weight = 20,
client = {
image = 'bt_milk.png',
},
},
['bubbletea_choco'] = {
label = 'Bubble Tea Choco',
weight = 100,
client = {
image = 'bt_choco.png',
},
},
Custom Inventory
Example for QBCore & ESX users which are using a different inventory.
Config.UseQBInventory =
false
Config.UseOXInventory =
false
You can create your own shop/stash with your inventory and trigger them via a export in the config.lua
TheftDev.UseQBInventoryShop = true -- If false you need to add your own custom export to TheftDev.CustomInventoryShop
TheftDev.CustomInventoryShop = function()
-- In here you can add your custom shop export/event etc.
end
TheftDev.UseQBInventoryStash = true -- If false you need to add your own custom export to TheftDev.CustomInventoryStash
TheftDev.CustomInventoryStash = function()
-- In here you can add your custom stash export/event etc.
end
TheftDev.UseOXInventoryShop = true -- If false you need to add your own custom export to TheftDev.CustomInventoryShop
TheftDev.CustomInventoryShop = function()
-- In here you can add your custom shop export/event etc.
end
TheftDev.UseOXInventoryStash = true -- If false you need to add your own custom export to TheftDev.CustomInventoryStash
TheftDev.CustomInventoryStash = function()
-- In here you can add your custom stash export/event etc.
end
Add Shop (ESX)
If you are using a different inventory we recommend you to check out your inventory guides to create a shop which you can easily trigger with a export/event via config.lua
Add to ox_inventory/data/shops.lua
-- Uwu Cafe Inventory
UwuCafeShop = {
name = 'Uwu Cafe',
inventory = {
{ name = 'pasta_pack', price = 50 },
{ name = 'pizza_pack', price = 50 },
{ name = 'bubbletea_cherry_pack', price = 50 },
{ name = 'bubbletea_berry_pack', price = 50 },
{ name = 'bubbletea_banana_pack', price = 50 },
{ name = 'bubbletea_milk_pack', price = 50 },
{ name = 'bubbletea_choco_pack', price = 50 },
},
},
Last updated