6. bridge/utils.lua - Function Scope Error
ERROR: attempt to call a nil value (field 'ProgressBar')
Fix: Utils-Funktionen waren nicht korrekt im Scope verfügbar
- Geändert von
function Utils.ProgressBar()zuUtils.ProgressBar = function() - Alle Client-Utils-Funktionen konsistent gemacht
- Server-Utils ebenfalls angepasst
Betroffene Funktionen:
Utils.Notify()Utils.ProgressBar()Utils.InputDialog()Utils.AlertDialog()Utils.NormalizeTimestamp()
5. bridge/framework.lua - QBox Player() Function
ERROR: No such export GetPlayer in resource qbx_core
Fix: QBox nutzt globale Player() Funktion statt Export
- Server-Side:
Player(source)stattexports.qbx_core:GetPlayer(source) - GetJobCount: Nutzt jetzt
GetPlayers()Loop für alle Frameworks - AddMoney/RemoveMoney: QBox benötigt 'reason' Parameter
Änderungen:
-- Vorher (falsch):
return exports.qbx_core:GetPlayer(source)
-- Nachher (richtig):
return Player(source)1. client/npcs.lua - Deprecated Native
ERROR: attempt to call a nil value (global 'SetEntityAsCriminal')
Fix: SetEntityAsCriminal entfernt (deprecated native)
- Ersetzt durch
SetPedFleeAttributes(npc, 0, false) - Model wird jetzt korrekt mit
GetHashKey()geladen
2. client/main.lua - Framework Detection
ERROR: attempt to call a nil value (method 'GetPlayerData')
Fix: Warte auf Framework-Initialisierung
while not Framework or not Framework.Name do Wait(100) end- Framework muss erst von bridge/framework.lua geladen werden
3. client/zones.lua - Sabotage Prop
ERROR: Beim Legen der Bombe
Fix: Problematisches Prop entfernt
prop_bomb_01entfernt aus Progress-Bar- Sabotage funktioniert jetzt ohne Prop-Fehler
4. server/commands.lua - Missing Parameters
ERROR: command 'blackout' received an invalid string for argument 1 (action), received 'nil'
Fix: Parameter-Validierung hinzugefügt
- Check ob
args.actionexistiert - Bessere Fehlermeldungen mit Verwendungshinweisen
✅ Player() Funktion korrekt
✅ Money Functions mit 'reason' Parameter
✅ Job Count über GetPlayers() Loop
✅ Alle Framework-Funktionen getestet
QBCore und ESX User müssen nicht updaten (außer sie wollen).
# Update
rm -rf resources/hm_blackout
unzip hm_blackout.zip -d resources/
restart hm_blackoutKeine bekannten Probleme in v1.0.2 ✅
Changelog:
- v1.0.2: QBox Framework Compatibility (Player() function, Money functions)
- v1.0.1: Bugfixes (SetEntityAsCriminal, Framework Detection, Prop Error, Command Validation)
- v1.0.0: Initial Release