GR1M Docs

Diving

Admin-placed dive shops that sell scuba gear and refill tanks. Worn tanks run on real air stored on the item.

v1.0.0Needs oxmysql, ox_lib, qbx_core, ox_inventory

#Install

  1. Add the items in install/ox_inventory-items.lua (dive_tank, dive_mask, dive_fins) to ox_inventory/data/items.lua and copy install/images/*. Full server restart after adding them.
  2. ensure GR1M_Diving after ox_inventory (and ox_target if used).
  3. /divingadmin (needs the command ace, gr1m.diving.admin, or a Qbox admin/god group): add a shop, Place with aim, Save.

#Admin panel

Everything is saved in gr1m_diving_state (created on start). config.lua only holds first-boot defaults, item names and prop offsets. A default added after launch also goes in DVConfig.SeedProducts, which adds it to the saved list once.

#Players

#Notes