D4rkst3randClaude Opus 5 58f31adfa9
Lint / Lint Resource (push) Has been cancelled
fix(client): onCache('ped') haengt Props an den neuen Ped
ox_lib feuert die onCache-Callbacks ueber Citizen.CreateThreadNow, bevor der
neue Wert in den Cache geschrieben wird (ox_lib/init.lua:188-199). cache.ped
zeigt im Callback also noch auf den alten, bereits verschwundenen Ped - die
Props waeren an genau den Ped gegangen, dessen Verschwinden der Handler
abfangen soll.

enableScuba, disableScuba, attachProp und attachGear nehmen den Ped jetzt als
Parameter (default cache.ped), der onCache-Handler reicht den Callback-Wert
durch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-10 23:34:24 +02:00
2026-03-29 19:35:12 +02:00
2023-11-17 22:11:02 -08:00

image

qbx_divegear

A Qbox resource that enables the functionality of diving and air tank items.

Works with qbx_diving, a coral diving and collection resource, also developed by the Qbox community!

Features

  • Able to set the length of time an air tank will refill your tank
  • Able to configure the rate of decay of the oxygen tank (to allow longer time in the water)
  • Limitations for refilling underwater (to limit endless use of air tanks)
  • animations and timers during refill
  • Text that displays current air time at the bottom of the player's screen when underwater and wearing gear

ox_inventory items

Place these items in ox_inventory's item.lua if you don't have them already:

    ['diving_fill'] = {
        label = 'Diving Tube',
        weight = 3000,
        stack = false,
        close = true,
        description = "used to refill your diving gear's oxygen supply."
    },

    ['diving_gear'] = {
        label = 'Diving Gear',
        weight = 30000,
        stack = false,
        close = true,
        description = "A diving set that let's swim underwater. Blub blub!"
    },

ox_inventory images

Missing images for your items? Here are some free-to-use images!

diving_gear diving_fill

S
Description
Tauchausruestung mit Flaschengroessen, gesyncter Lampe und Tiefenanzeige (Fork von qbx_divegear)
Readme GPL-3.0
715 KiB
Languages
Lua 65%
JavaScript 21.7%
CSS 9.3%
HTML 4%