921d9c89c854a5a9040e131db2eb593be78190ef
Lint / Lint Resource (push) Has been cancelled
Die Props waren soft-pinned angehaengt (useSoftPinning = true), wodurch die
Physik-Engine die Attachment bei Ragdoll und harten Anim-Uebergaengen loesen
darf. Dazu kam, dass ein Ped-Model-Wechsel und aufraeumende Fremd-Scripts
(Emotes, Handcuffs) gar nicht abgefangen wurden.
- attachProp() Helper mit harter Attachment (useSoftPinning = false)
- Watchdog-Thread prueft jede Sekunde, ob beide Props noch am aktuellen Ped
haengen, und haengt sie sonst neu an
- Scuba-Flags werden im Watchdog neu gesetzt, weil das Spiel sie bei Respawn
und Fahrzeugausstieg zuruecksetzt
- lib.onCache('ped') haengt die Props nach einem Model-Wechsel neu an
- Ausruestung wird beim Tod abgenommen (removeGearOnDeath, default true)
- removeGear() als gemeinsamer Teardown fuer Ablegen, leere Flasche und Tod
- onResourceStop raeumt Props und Scuba-Flags auf
- maxTimeUnderwater / maxTimeUnderwaterOutOfAir statt Magic Numbers
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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!
Languages
Lua
65%
JavaScript
21.7%
CSS
9.3%
HTML
4%