
π»Installation
Dependencies :
QBCore
You will need the latest version of qb-core
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
ITEMS
QB INVENTORY
Go to qb-core/shared/items.lua and add this :
sportsbettable = { name = 'sportsbettable', label = 'Sports Bet Table', weight = 7000, type = 'item', image = 'sportsbettable.png', unique = false, useable = true, shouldClose = true, description = 'A table for placing sports bets' },OX INVENTORY
Go to ox_inventory/data/items.lua and add this :
["sportsbettable"] = {
label = "Sports Bet Table",
weight = 7000,
stack = false,
close = true,
description = "A table for placing sports bets",
client = {
image = "sportsbettable.png",
}
},Go to ox_inventory/modules/items/client.lua and add this :
Item('sportsbettable', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent('zat-sportsbet:client:PreviewProp', 'sportsbettable', 'prop_sportsbet_table')
end
end)
end)QS INVENTORY
Go to qs-inventory/shared/items.lua and add this :
['sportsbettable'] = {
['name'] = 'sportsbettable',
['label'] = 'Sports Bet Table',
['weight'] = 7000,
['type'] = 'item',
['image'] = 'sportsbettable.png',
['unique'] = true, -- ox had stack = false
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'A table for placing sports bets',
},Go to qs-inventory/server/custom/misc/CreateUseableItem.lua and add this :
CreateUsableItem('sportsbettable', function(source, item)
local src = source
TriggerClientEvent('zat-sportsbet:client:PreviewProp', src, 'sportsbettable', 'prop_sportsbet_table')
end)
ADDITIONAL SETUP
ENSURE RESOURCES
Last updated