1
0
Fork 0
forked from Simnation/Main

Update main.lua

This commit is contained in:
Miho931 2025-06-25 12:54:01 +02:00
parent a2fe329c9b
commit 5d000c1205

View file

@ -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()