d9643620ffca005a70413fa42164e636c5d08a00
Lint / Lint Resource (push) Has been cancelled
Licht ist in GTA nie synchronisiert - DrawSpotLight zeichnet nur lokal fuer den aktuellen Frame. "Gesynct" heisst deshalb: der Zustand wird als Statebag repliziert und jeder Client zeichnet die Lampen aller Taucher in seiner Naehe selbst. Muster uebernommen aus d4rk_phone (Statebag, adaptives Polling, Distanzfilter). client/light.lua ist ein reiner Renderer ohne gemeinsamen Zustand mit main.lua - er kommt mit dem Statebag allein aus und kennt weder Ausruestung noch Flasche. - Richtung ueber zwei bone-relative Punkte am Kopf-Bone statt ueber GetEntityForwardVector: beim Tauchen liegt der Ped waagerecht im Wasser, der Entity-Forward wuerde stur horizontal leuchten. Die Offsets von GetPedBoneCoords sind laut Native-Doku "relative to the bone's rotation", die Differenz zweier solcher Punkte enthaelt also den Pitch - Toggle per lib.addKeybind, Standard L, vom Spieler umlegbar - Distanzfilter und Limit auf die naechsten N Lampen, Schatten abschaltbar - Prop-Model wird vorher mit IsModelValid geprueft: lib.requestModel wirft bei ungueltigen Models einen Error, der sonst die ganze Ausruestung lahmlegt - Lampen-Status im HUD 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%