Skip to content

Installation

Fifteen minutes. Two folders, a few settings, and the items. Nothing is stored in the database, so there is nothing to import for the resource itself.


You needWhy
ESX, QBCore or QBox, runningItems, owners and jobs go through it
ox_target or qb-target, runningEvery interaction with a placed hookah or chair
Both folders from your purchase: mic_hookah and mic_hookah_propThe script, and the hookah models
Access to your inventory’s item list and image folderHookahs, furniture, supplies and flavours are items

Drop mic_hookah and mic_hookah_prop into your resources, for example inside resources/[mic]/.

mic_hookah_prop holds the ten hookah models (mic_hookah_black … mic_hookah_yellow) and their mic_hookah.ytyp. It has no code; it only streams. The tables and chairs are base-game models and need nothing extra.


In server.cfg, below your framework, your inventory and your target resource, add ensure mic_hookah_prop and then ensure mic_hookah.

It worked when both start with no red lines under them.


Open config.lua:

OptionSet it toDefault
Config.Frameworkesx, qbcore or qboxesx
Config.Targetox_target or qb-targetox_target
Config.ESXResourceNameThe folder name of ESX, if you renamed ites_extended
Config.QBResourceNameThe folder name of QBCore, if you renamed itqb-core
Config.QBoxResourceNameThe folder name of QBox, if you renamed itqbx_core
Config.QBTargetResourceNameThe folder name of qb-target, if you renamed itqb-target

Nothing is detected on its own here: these values decide which framework and which target are used.


Nothing for the resource: placed hookahs and furniture live in the server’s memory, not in a table. On ESX with the default inventory, the items go in the items table — next step.


The full list is on 🎒 Items. In short:

ItemWhat it does
hookah_black, hookah_blue, hookah_green, hookah_grey, hookah_orange, hookah_pink, hookah_purple, hookah_red, hookah_skyblue, hookah_yellowUse it to carry and place that hookah
hookah_table … hookah_table5Use it to place a table
hookah_chair … hookah_chair6Use it to place a chair you can sit on
hookah_coalFills the charcoal from the setup menu
hookah_waterFills the water from the setup menu
hookah_<flavour>_flavorSixty flavours, chosen from the setup menu

Where the ready-made definitions are, in inventory_items/ inside mic_hookah:

FileForWhat to do
esx_items.sqlESX with its default inventoryImport it once into your database
ox_items.mdox_inventoryPaste its lines into ox_inventory/data/items.lua
qb_items.mdQBCore / QBox with qb-inventoryPaste its lines into qb-core/shared/items.lua

Images: the icons are in inventory_images/, one PNG per item named after it. Copy them into your inventory’s image folder — ox_inventory/web/images/ or qb-inventory/html/images/.

Then point Config.InventoryImagePath at that same folder, so the flavour icons show in the setup menu. It ships as nui://ox_inventory/web/images/; for qb-inventory use nui://qb-inventory/html/images/.

It worked when you can give yourself hookah_red and it shows in your inventory with its picture.


Give yourself hookah_red, hookah_coal, hookah_water and hookah_mint_flavor.

  1. Use hookah_red. Your character holds it on a tray. Press E.
  2. A preview follows your aim. Turn it with the mouse wheel, raise or lower it with the arrow keys, and press E to set it down.
  3. Target the hookah and choose Open Setup Menu. Add charcoal, add water, pick Mint, then Light Hookah.
  4. Close the menu, target the hookah again and choose Grab Hose. Press E.

It worked when a hose runs from the hookah to your character, and on E you take a puff and pale green smoke comes out. The charcoal and water in the menu drop a little with each puff.


  • Decide who may manage hookahs. Config.AdminGroups ships as false, which lets every player open the menu of, and pick up, any hookah or piece of furniture. Set it to your admin groups to limit that to the owner and staff. See Customization.
  • Config.InventoryImagePath points at the image folder you actually use.
  • Stress: Config.Stress is on, but ReduceStress in server_functions.lua is empty until you put your call in it.
  • Tell your players that hookahs and furniture are not saved: they are cleared when the resource or the server restarts.