25 lines
		
	
	
	
		
			692 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			692 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| -- You should really consider using another script, bt-target is really old at this point.
 | |
| 
 | |
| AddEventHandler('slashtires:bt-target:slashTire', function()
 | |
|     -- Fuck it, this is the easiest way.
 | |
|     ExecuteCommand('slashtire')
 | |
| end)
 | |
| 
 | |
| local vehicles = {}
 | |
| local modelList = GetAllVehicleModels()
 | |
| 
 | |
| for i = 1, #modelList do
 | |
|     vehicles[i] = joaat(modelList[i])
 | |
| end
 | |
| 
 | |
| exports['bt-target']:AddTargetModel(vehicles, {
 | |
|     options = {
 | |
|         {
 | |
|             event = 'slashtires:bt-target:slashTire',
 | |
|             icon = Config.TargetIcon,
 | |
|             label =  GetLocalization('target_label'),
 | |
|         }
 | |
|     },
 | |
|     job = { 'all' },
 | |
|     distance = Config.MaxTireInteractionDist
 | |
| })
 | 
