QBCore instalation
Open config.lua and set
Framework.QBCORE = true
andMySQLFramework.OXMYSQL = true
It should look like the following
-- if "STANDALONE" is on true, nothing under will take effect.
Framework = {
STANDALONE = false,
ESX = false,
QBCORE = true,
}
-- if "DISABLE_MYSQL" is on true, nothing under will take effect.
MySQLFramework = {
DISABLE_MYSQL = false,
MYSQL_ASYNC = false,
GHMATTI_MYSQL = false,
OXMYSQL = true,
}
Add items in
qb-core/shared/items.lua
['spray'] = {['name'] = 'spray', ['label'] = 'Spray', ['weight'] = 500, ['type'] = 'item', ['image'] = 'spray.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Spray paint can'},
['spray_remover'] = {['name'] = 'spray_remover', ['label'] = 'Spray Remover', ['weight'] = 500, ['type'] = 'item', ['image'] = 'spray_remover.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Removes graffiti'},
Add item images from
rcore_spray/inventory_images
toqb-inventory/html/images/
Start the script, wait 5 seconds and restart your server (to load newly added items)
Last updated
Was this helpful?