Installation

Follow these steps to install this resource to your server.

  1. Ensure you have all dependencies.

  2. Extract the resource.

  3. Configure the resource to your liking. (See Configuration for help)

  4. Add the items to the resource of your choice using the guide below.

  5. Place the extracted resource in your resources directory.

  6. Import the included gfg_drugtables.sql into your database.

  7. Add ensure gfg_drugtables to your server.cfg after the dependencies.

  8. Restart your server.

If you are using the default tables and items included in the config, you can check out the inventory folder for images and code snippets for ox and qb.

Adding Tables

  1. Navigate to ox_inventory/data/items.lua

  2. Somewhere in your item list, add the entry below for each table you'd like to have.

  3. Make sure the item name matches the tableItem in Config.DrugTables.

You can have whatever name or other item information you'd like, as long as the server export is 'gfg_drugtables.placeTable'

["methtable"] = { label = "Meth Table", weight = 10, description = "", stack = false, server = {export = 'gfg_drugtables.placeTable'} },

Adding Ingredients

  1. Navigate to ox_inventory/data/items.lua

  2. Somewhere in your item list, add the entry below for each ingredient you'd like to have.

  3. Make sure the item name matches the item name is the related Config.DrugTables.'name'.itemsNeeded.name

You can have whatever name or other item information you'd like.

["methingredient1"] = { label = "Meth ingredient 1", weight = 10, description = "" },

Last updated