From 5d000c12058c860853a503b0aa8bc3ac8f8f77fb Mon Sep 17 00:00:00 2001 From: Miho931 <98314142+Miho931@users.noreply.github.com> Date: Wed, 25 Jun 2025 12:54:01 +0200 Subject: [PATCH] Update main.lua --- resources/[carscripts]/mh_garage/client/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/[carscripts]/mh_garage/client/main.lua b/resources/[carscripts]/mh_garage/client/main.lua index 19e505dae..22d54ec79 100644 --- a/resources/[carscripts]/mh_garage/client/main.lua +++ b/resources/[carscripts]/mh_garage/client/main.lua @@ -80,12 +80,13 @@ CreateThread(function() local spawnDistance = v.NPC.distance if dist < spawnDistance and not isNPCSpawned then + isNPCSpawned = true print(isNPCSpawned) CurrentZone = v SpawnGuardNPC(v.NPC) - Wait(300) AddTargetOptions() elseif dist > spawnDistance and isNPCSpawned then + isNPCSpawned = false CurrentZone = nil exports['qb-target']:RemoveTargetEntity(npcHandle) RemoveGuardNPC()