[Garage] Target verschoben
This commit is contained in:
		
							parent
							
								
									7ba21dc78b
								
							
						
					
					
						commit
						0e0f3736ba
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -65,8 +65,9 @@ CreateThread(function()
 | 
			
		|||
            local spawnDistance = v.NPC.distance
 | 
			
		||||
        
 | 
			
		||||
            if dist < spawnDistance and not isNPCSpawned then
 | 
			
		||||
                AddTargetOptions()
 | 
			
		||||
                SpawnGuardNPC(v.NPC)
 | 
			
		||||
                Wait(300)
 | 
			
		||||
                AddTargetOptions()
 | 
			
		||||
            elseif dist > spawnDistance and isNPCSpawned then
 | 
			
		||||
                exports['qb-target']:RemoveTargetEntity(npcHandle)
 | 
			
		||||
                RemoveGuardNPC()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue