Skip to content

Installation

Ten minutes, most of it spent pasting item definitions. The resource has no tables of its own and no companion resource: the vape models stream from its own stream/ folder.


You needWhy
ESX (es_extended), QBCore (qb-core) or QBox (qbx_core), runningDetected on its own; there is no framework setting
Access to your inventory’s item listThe vapes are items
Access to your inventory’s image folderSo each vape has its icon

Drop mic_vape into your resources, for example inside resources/[mic]/. Keep the folder name: the progress bar talks to the resource by its own name.

The ten vape models and their def_props.ytyp are in stream/ and load from the manifest; you do not move them.


In server.cfg, put ensure mic_vape below es_extended, qb-core or qbx_core, and below your inventory. QBox is found through its QBCore compatibility — qbx_core provides qb-core — so there is nothing to set.

This one matters more than usual: mic_vape looks for a started framework at the moment it starts. If it starts first, it finds nothing, registers no items, and says nothing about it.

It worked when mic_vape starts with no red lines under it.


Nothing for the resource. On ESX with the default inventory, the vape items go in the items table — that is the next step.


Every key in Config.Vapes (in config.lua) is an item name, and every one is registered as usable. The full list with what each does is on 🎒 Items. In short:

GroupItems
Normalvape
Power vapesinvisibility_vape, speed_vape, superjump_vape, teleport_vape, invincibility_vape, health_vape, armor_vape, carspeed_vape, random_vape
Flavoursvape_watermelon, vape_mango, vape_blueberry … forty in all, every one named vape_<flavour>

Where the ready-made definitions are, in the inventory_items/ folder of the resource:

FileForWhat to do
esx_sql_items.sqlESX with its default inventoryImport it once into your database
ox_inventory_items.mdox_inventoryPaste its lines into ox_inventory/data/items.lua
qb_items.mdQBCorePaste 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/. Three items from the lists above have no icon (transform_vape, freeze_vape, gravity_vape) and neither does vape_grape; give it one of your own if you use it.

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


Give yourself vape and use it from the inventory.

It worked when a black vape appears in your character’s hand. Press E: your character raises it, and a moment later white smoke comes out. Use the item again, or type /vape, and it is put away.

Then try speed_vape: after a puff you sprint noticeably faster for fifteen seconds.


  • mic_vape starts after your framework in server.cfg.
  • Stress: Config.Stress is on, and out of the box it only prints a line to the server console on every puff. Either put your stress logic in bridge/server_bridge.lua or set Config.Stress = false. See Customization.
  • Notifications are off by default (Config.ShowNotifications = false). Turn them on if you want players to see “on cooldown”, “vape empty” and the power messages.
  • Decide on the power vapes. Invisibility, invincibility and teleport are strong. Give them a price, a shop or a job before they appear in anyone’s pockets.