From 91265ef93cd1617647f280186f26a28d11a385bf Mon Sep 17 00:00:00 2001 From: Miho931 <98314142+Miho931@users.noreply.github.com> Date: Sun, 8 Jun 2025 13:45:42 +0200 Subject: [PATCH] Update main.lua --- resources/[carscripts]/mh_garage/client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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