# Configuration

## Configuration File

```lua
Config = {}
Config.Debug = false -- Use only for testing purpose
Config.UseBaseEvents = false -- If you have base events improve performance
--Config.CustomBaseEvent = true --If you have custom base events in you server ( need UseBaseEvents = true )

Config.ExplosionHeight = 20 -- Minimum height at which the vehicle will explode after jumping
Config.UseArmor = true -- If the vehicle has armor installed, it will be protected from explosion (false always explode)

-- When UseArmor = true
Config.ArmorChance = {
	-- 80 = 80% to protect, 20% chance to explode ( need UseArmor = true )
	-- Armor has 5 level
	[1] = 20,
	[2] = 40,
	[3] = 60,
	[4] = 80,
	[5] = 100,
}
Config.ArmorChanceDecrease = 1 -- 1 = reduce 1% of ArmorChance by each 1% of ExplosionHeight, 2 = -1% by each 2% of ExplosionHeight


--[[
Vehicle Classes:
0: Compacts     1: Sedans       2: SUVs         3: Coupes       4: Muscle       5: Sports Classics
6: Sports       7: Super        8: Motorcycles  9: Off-road     10: Industrial  11: Utility
12: Vans        13: Cycles      14: Boats       15: Helicopters 16: Planes      17: Service
18: Emergency   19: Military    20: Commercial  21: Trains
--]]
Config.DefaultArmorClass = { -- add default armor to a vehicle class
	[9] = 80,
}
Config.DefaultArmorVehicle = { -- add default armor to a vehicle
	['riata'] = 200,
	['baller5'] = 200,
}
Config.IgnoreVehicleClass = {8, 13, 15, 16} -- disable the script for this vehicle class
Config.IgnoreVehicle = {'kamacho', 'trophytruck'} -- disable the script for this vehicles

-- LVS Accident compatibility:
-- If you have "lvs_accident" when you land safely, you can configure to trigger accident effects to players in the vehicle
Config.UseAccident = true 	-- use lvs-accident
Config.AccidentLevel = 3 	-- accident level
```


---

# 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://fivem.lvsoft.com.ar/standalone/lvs-explosion/configuration.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.
