Page cover

πŸ’»Installation

Dependencies :

chevron-rightQBCorehashtag

You will need the latest version of qb-corearrow-up-right

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.

ITEMS

chevron-rightQB INVENTORYhashtag

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' },
chevron-rightOX INVENTORYhashtag

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)
chevron-rightQS INVENTORYhashtag

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

chevron-rightSQLhashtag
  • Import the SQLs from the [SQLs] folder into your database

ENSURE RESOURCES

Last updated