diff --git a/client/main.lua b/client/main.lua index 3b7c17b..0fce645 100644 --- a/client/main.lua +++ b/client/main.lua @@ -235,7 +235,7 @@ lib.callback.register('d4rk_divegear:client:fillTank', function(tanks) return end - if not lib.progressBar({ + if not exports.d4rk_lib:progress({ duration = config.refillTankTimeMs, label = locale('info.filling_air'), useWhileDead = false, @@ -606,7 +606,7 @@ local function einsetzen(slot) return end - if not lib.progressBar({ + if not exports.d4rk_lib:progress({ duration = config.putOnSuitTimeMs, label = locale('info.patrone_einsetzen'), useWhileDead = false, diff --git a/server/artikel.lua b/server/artikel.lua index f73f5c7..6915d68 100644 --- a/server/artikel.lua +++ b/server/artikel.lua @@ -195,3 +195,32 @@ RegisterCommand('tauchartikel', function(source, args) kleidungAnlegen() end, true) +--[[ + /tauchstand - WAS LIEGT IN DEN SLOTS? (29.09.2026, nur Serverkonsole) + + Betreiber: "nachdem er durchgelaufen ist sagt er du traegst keine + taucherflasche". getWorn (server/main.lua) liest rigSlot und maskSlot - + dieser Befehl zeigt, was dort wirklich liegt: Itemname, Kleidungskennung, + Patrone. Ein `clothing` mit der richtigen Kennung heisst: vor dem + /tauchartikel-Eintrag gekauft, die Optik stimmt, das Item nicht. +]] +RegisterCommand('tauchstand', function(source, args) + if source ~= 0 then return end + + local ziel = tonumber(args[1]) + + if not ziel or not GetPlayerName(ziel) then + print('[d4rk_divegear] tauchstand - Spieler nicht gefunden.') + return + end + + print(('[d4rk_divegear] tauchstand %d:'):format(ziel)) + + for _, s in ipairs({ { 'Flasche', shared.rigSlot, shared.rigItem }, { 'Maske', shared.maskSlot, shared.maskItem } }) do + local slot = exports.d4rk_inventory:GetSlot(ziel, s[2]) + local m = slot and slot.metadata or {} + + print((' %-8s Slot %d: %s (soll %s) garment %s patrone %s oxygen %s'):format(s[1], s[2], + slot and slot.name or '', s[3], tostring(m.garment), tostring(m.patrone), tostring(m.oxygen))) + end +end, true)