# Configuration

### config.lua:

```lua
Config = {}

Config.Locale = 'de'

Config.spikeModel = "p_ld_stinger_s"
Config.previewAlpha = 150
Config.previewOffset = 1.2
Config.placeDistance = 2.0
Config.pickupDistance = 2.0

Config.persistence = false  -- true = spikestrips remain after server restart
Config.persistenceFile = "persistent_strips.json"  -- don't change!!!

Config.notify = {
  type = "esx",
  customExport = "my_notify:SendNotification"
}

Config.esxInventoryItemName = "spike"  -- compatible with any inventory

Config.useOxTarget = true
Config.oxTargetExportName = "ox_target"

Config.enableCommand = false  -- true = the jobs can use a command to place spikestrips
Config.commandName = "placespikes"
Config.allowedJobsForCommand = { "police", "sheriff" }

Config.itemJobRestriction = {
  enabled = false,  -- true = only the jobs can place/remove spikestrips
  allowedJobs = { "police", "sheriff", "army", "fib" }
}

Config.removeAllCommand = {
  enabled = true,  -- removes all spike strips
  commandName = "removespikes",
  allowedGroups = { "superadmin", "admin", "mod" }
}

Config.vehicleRestrictions = {
  preventPlacingInVehicle = true,
  preventPickupInVehicle = true
}

Config.playerLimit = {
  enabled = true,  -- players can only place 10 spikestrips
  maxPerPlayer = 10
}

Config.burstSettings = {
  burstAllWheels = false,  -- false = only 1-2 random wheels burst
  distanceToTrigger = 2.0
}

Config.animations = {
  place = {
    enabled = true,
    dict = "weapons@first_person@aim_rng@generic@projectile@sticky_bomb@",
    anim = "plant_floor",
    duration = 2000,
    flag = 16
  },
  pickup = {
    enabled = true,
    dict = "amb@medic@standing@kneel@base",
    anim = "base",
    duration = 2500,
    flag = 1
  }
}

Config.debug = false
```
