QBR CORE

  • if you don't have already, download oxmysql

  • if you don't have already, download ox_lib

  • go to "server.cfg" and at the beginning of the file add following:

add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
ensure ox_lib
  • go to "qbr-core/shared/items.lua" and add following items:

-- enpwr weed
['p_haze']          = {['name'] = 'p_haze',         ['label'] = 'Purple Haze',      ['weight'] = 100, ['type'] = 'item', ['image'] = 'p_haze.png',          ['unique'] = false, ['useable'] = false, ['shouldClose'] = true,    ['combinable'] = nil, ['level'] = 0, ['description'] = ''},
['p_haze_seed']     = {['name'] = 'p_haze_seed',    ['label'] = 'Purple Haze Seed', ['weight'] = 100, ['type'] = 'item', ['image'] = 'p_haze_seed.png',     ['unique'] = false, ['useable'] = true, ['shouldClose'] = true,     ['combinable'] = nil, ['level'] = 0, ['description'] = ''},
['weedpot']         = {['name'] = 'weedpot',        ['label'] = 'Weed Pot',         ['weight'] = 100, ['type'] = 'item', ['image'] = 'weedpot.png',         ['unique'] = false, ['useable'] = false, ['shouldClose'] = true,    ['combinable'] = nil, ['level'] = 0, ['description'] = ''},
['cannabis']        = {['name'] = 'cannabis',       ['label'] = 'Cannabis',         ['weight'] = 100, ['type'] = 'item', ['image'] = 'cannabis.png',        ['unique'] = false, ['useable'] = false, ['shouldClose'] = true,    ['combinable'] = nil, ['level'] = 0, ['description'] = ''},

-- this 2 you myb already have
--['fertilizer']      = {['name'] = 'fertilizer',     ['label'] = 'Fertilizer',       ['weight'] = 100, ['type'] = 'item', ['image'] = 'fertilizer.png',      ['unique'] = false, ['useable'] = true, ['shouldClose'] = true,     ['combinable'] = nil, ['level'] = 0, ['description'] = ''},
--['water']           = {['name'] = 'water',          ['label'] = 'Water',            ['weight'] = 100, ['type'] = 'item', ['image'] = 'water.png',           ['unique'] = false, ['useable'] = true, ['shouldClose'] = true,     ['combinable'] = nil, ['level'] = 0, ['description'] = ''},
  • you already might have some of this items so check before adding them

  • in the "enpwr_weed/item_images" directory, you'll find a collection of images for items. You can easily integrate these images into your "qbr-inventory/html/images" folder.

  • please open the "config.lua" file located at "enpwr_weed/shared/config.lua" and thoroughly review its contents. Customize the configuration to suit your specific requirements

  • please open the "editable.lua" file located at "enpwr_weed/server/editable.lua" and thoroughly review its contents. Customize the code to suit your specific requirements

  • in "server.cfg" add ensure enpwr_weed after all scripts

Last updated