Diving
Admin-placed dive shops that sell scuba gear and refill tanks. Worn tanks run on real air stored on the item.
#Install
- Add the items in
install/ox_inventory-items.lua(dive_tank,dive_mask,dive_fins) toox_inventory/data/items.luaand copyinstall/images/*. Full server restart after adding them. ensure GR1M_Divingafterox_inventory(andox_targetif used)./divingadmin(needs thecommandace,gr1m.diving.admin, or a Qbox admin/god group): add a shop, Place with aim, Save.
#Admin panel
- Shops: name, clerk ped + scenario, open/closed, blip. Aim to place: Scroll or ← → rotates, Shift+Scroll or ↑ ↓ height, E places, Backspace cancels.
- Products & stock: label, item, price, stock (shared, -1 unlimited), air minutes for tank rows, on/off. The box button gives you a full tank for testing.
- Refills & air: cash/bank, business job for income (society account), full refill price + minimum, fill time, mask required, low-air %, breath-hold without air, fins speed, gauge, default clerk, blip.
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
- Use the tank / mask / fins from the inventory to put them on, use again to take off.
/divegeartakes all off,/divelighttoggles the mask lamp (bindable in Key Bindings). - Air only drains under water. The tank tooltip shows
Air m:ss / m:ss; the durability bar is % left. - Refill at any dive shop (Refill tab). Take the tank off first.
#Notes
tw-diving(Tworst) is separate and keeps its own single-use tubes.- GR1M_Skills owns the swim-speed native while it runs and caps boosts at 1.15, so fins go through its modifier layer.
GR1M