# Config

shared/config.lua

```lua
Config = {}

--[[====[ SPARK-DEVELOPMENTS ]====]]
-- Thank you for buying this resource!
-- DOCS - https://spark-developments.gitbook.io

--[[====[ GENERAL SETTINGS ]====]]
Config.GuideMode = false -- Used in the guide for adding custom projectiles, intercepts every in-air object and prints out its model for you to copy and add to allowedProjectiles.
Config.DetectionRate = 200 -- How often the system scans the area for projectiles (Lower Rate = Higher Ms Usage)
Config.EnableAlerts = true -- Enable Missile Alerts (Like Home Front Command)

--[[====[ LAUNCHER SETTINGS ]====]]
Config.Launchers = { -- Add your launchers here.
    { -- Example Launcher
        label = "New York", -- The city name which will pop up in the missile alert
        position = vector4(2877.55, 4181.4, 49.15, 161.64), -- x, y, z, heading
        launchCooldown = 600, -- Cooldown between launches (in MS)
        radius = 800.0, -- The radius in which the launcher will detect incoming threats
    },
}

--[[====[ INTERCEPTOR & DETECTION SETTINGS ]====]]
Config.interceptorSpeed = 205.0 -- The speed of the interceptor
Config.interceptorMissChance = 0.05 -- 5% chance that interceptors will purposely miss the target

Config.detectionTime = 0.4 -- Time (in seconds) between detecting a threat and launching an interceptor
Config.minDetectionZ = 35.0 -- The distance from the ground the projectile has to be in order to be detected
Config.vehicleMinDetectionZ = 60.0 -- The distance from the ground the vehicle has to be in order to be detected

--[[====[ ALLOWED ENTITIES ]====]]
Config.allowedProjectiles = {
    [`w_lr_rpg_rocket`] = { ballistic = false }, --? ROCKET LAUNCHER
    [`w_lr_homing_rocket`] = { ballistic = true }, --? HOMING ROCKET (example ballistic)
}

--[[====[ VEHICLES ]====]]
Config.vehicleInterceptorMissChance = 0.10 -- 10% chance that interceptors will purposely miss vehicles

Config.allowedVehicles = { -- This is based on the vehicle's spawn name, there is an example below using the hydra jet.
    [`hydra`] = { 
        mode = 'interceptor', -- 'alert' for alerts only, 'interceptor' for interceptors
        maxInterceptors = 1 -- Maximum number of interceptors to launch at this vehicle before giving up
    },
    [`lazer`] = { 
        mode = 'alert', -- Example: this vehicle will only trigger alerts
    },
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://spark-developments.gitbook.io/dev/military/missileinterceptor/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
