96 lines
		
	
	
	
		
			3.9 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
	
		
			3.9 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| Config = {
 | |
|     debug = false,
 | |
|     dartModel = `trackerdart`,
 | |
|     fireCooldown = 3000,   -- Time in milliseconds between each dart shot
 | |
| 
 | |
|     singeDart = true,      -- If enabled, only one dart can be deployed at a time. As a result, this will also create a blip route to the target.
 | |
|     destroyOldDart = true, -- If enabled, the old dart will be destroyed when a new one is deployed. (Must have singleDart on true)
 | |
| 
 | |
|     shootKey = 22,         -- Key used to shoot the dart (Default 22 / Spacebar)
 | |
|     disabledControls = {   -- Controls that are disabled when the overlay is open
 | |
|         22, 76
 | |
|     },
 | |
|     overlayKey = 58,      -- Key used to open the overlay (Default 58 / G)
 | |
|     toggleOverlay = true, -- If set to true, the overlay will be toggled on/off when the key is pressed instead of holding it down
 | |
|     overlayPosition = {
 | |
|         vertical = '2.5%',
 | |
|         horizontal = '50%',
 | |
|     },
 | |
| 
 | |
|     allowedJobs = { -- Jobs that are allowed to install and/or use the tracker system. Set to nil to disable job restrictions.
 | |
|         ['police'] = 0,
 | |
|         ['sheriff'] = 0
 | |
|     },
 | |
| 
 | |
|     installWithTarget = false,  -- If set to true, it requires the player to install the tracker system using a target system and an item before it can be used
 | |
|     itemName = 'trackersystem', -- The name of the item used to install the tracker system (If you don't want to use an item, set this to nil)
 | |
|     removeItem = true,          -- If set to true, the item will be removed from the player's inventory when the tracker system is installed
 | |
|     onlyAllowedVehicles = true, -- If set to true, only vehicles that are in the allowedVehicles list can have the tracker system installed
 | |
|     dartsPerVehicle = 5,        -- The amount of darts a vehicle can 'carry'
 | |
| 
 | |
|     selfDestructTime = 900,     -- Time in seconds before a tracker dart self destructs (Default: 900 sec / 15 minutes)
 | |
| 
 | |
|     interactDistance = 3.0,     -- The distance for the target interactions
 | |
| 
 | |
|     blipUpdateInterval = 2000,  -- The interval in milliseconds to update the blips from server to clients
 | |
| 
 | |
|     vehicleBlip = {
 | |
|         sprite = 225,
 | |
|         scale = 0.8,
 | |
|         color = 1,
 | |
|         shortRange = false,
 | |
|         label = 'Tracker Dart',
 | |
|     },
 | |
| 
 | |
|     shootPtfx = {
 | |
|         dict = 'core',
 | |
|         name = 'bul_glass_shotgun',
 | |
|         rot = vector3(-90.0, 0.0, 0.0),
 | |
|         scale = 1.5,
 | |
|     },
 | |
| 
 | |
|     explodePtfx = {
 | |
|         dict = 'core',
 | |
|         name = 'ent_brk_sparking_wires',
 | |
|         rot = vector3(0.0, 0.0, 0.0),
 | |
|         scale = 1.5,
 | |
|     },
 | |
| 
 | |
|     removeAnim = {
 | |
|         dict = 'mp_arresting',
 | |
|         anim = 'a_uncuff',
 | |
|         flag = 51,
 | |
|     },
 | |
| 
 | |
|     allowedVehicles = {
 | |
|         [`police`] = 5, -- Override the default amount of darts a vehicle model can carry
 | |
|         [`polgauntlet`] = 5,
 | |
|         [`police2`] = 5,
 | |
|         [`police3`] = 5,
 | |
|         [`police4`] = 5,
 | |
|         [`police5`] = 5,
 | |
|         [`policet`] = 5,
 | |
|         [`sheriff`] = 5,
 | |
|         [`sheriff2`] = 5,
 | |
|         [`fbi`] = 5,
 | |
|         [`fbi2`] = 5,
 | |
|     },
 | |
| }
 | |
| 
 | |
| Config.Locales = {
 | |
|     ['target_missed'] = 'You missed the target',
 | |
|     ['install_system'] = 'You need to install the tracker system first',
 | |
|     ['no_darts_left'] = 'You do not have any darts left',
 | |
|     ['target_has_dart'] = 'There is already a dart on the target',
 | |
|     ['dart_attached'] = 'You have attached a dart to the target',
 | |
|     ['already_installed'] = 'This vehicle already has a tracker system installed',
 | |
|     ['dart_system_installed'] = 'You have installed the tracker system on this vehicle',
 | |
|     ['not_allowed_vehicle'] = 'You cannot install the tracker system on this vehicle',
 | |
|     ['remove_target'] = 'Remove tracker dart',
 | |
|     ['failed_remove_dart'] = 'Failed to remove tracker dart',
 | |
|     ['removed_dart'] = 'You have removed the tracker dart',
 | |
|     ['only_one_dart'] = 'You can only deploy one dart at a time',
 | |
|     ['old_dart_destroyed'] = 'The old dart has been destroyed',
 | |
|     ['no_item'] = 'You do not have the item',
 | |
|     ['install_target'] = 'Install tracker system',
 | |
| }
 | 
