diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index eb694a99f..b3fb18856 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -16,13 +16,13 @@ function SpawnGuardNPC(npc) -- Ped Model laden RequestModel(npc.model) local timeout = 0 - while not HasModelLoaded(npcHash) and timeout < 100 do + while not HasModelLoaded(npc.model) and timeout < 100 do timeout = timeout + 1 print("Warte auf Model-Load...") Wait(100) end - if not HasModelLoaded(npcHash) then + if not HasModelLoaded(npc.model) then print("Model konnte nicht geladen werden!") return end