> For the complete documentation index, see [llms.txt](https://mic-scripts.gitbook.io/mic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mic-scripts.gitbook.io/mic/documentation/car-bomb.md).

# Car Bomb

{% hint style="info" %}
💬 **Need help?** Support, updates and changelogs are on the [**Mic Scripts Discord**](https://discord.gg/86FPzAV73B). Open a ticket with your Tebex transaction ID and the console error.
{% endhint %}

<a href="https://discord.gg/86FPzAV73B" class="button primary">💬 Join the Discord</a> <a href="https://mic.tebex.io/" class="button secondary">🛒 Get it on Tebex</a>

{% embed url="<https://www.youtube.com/watch?v=mMvkNKX6vEM>" %}

**mic\_carbomb** is a car bomb in four items. One player plants a bomb under a vehicle, walks away, and sets it off from a burner phone — straight away or on a countdown. Another player sweeps the street with a handheld detector, follows the beeping, and opens a toolbox to defuse it before it goes.

It runs on **ESX**, **QBCore** or **QBox**, needs no database table, and can send every detonation and defusal to a Discord channel.

***

## Key features

* **Plant it on any vehicle** 💣\
  Use `car_bomb`, walk up to a vehicle and press **E**. The bomb is tied to that vehicle's plate. One bomb per vehicle.
* **A detonator phone** 📱\
  `phone_detonator` opens a keypad phone that lists every bomb you planted by model and plate. Pick one and press the green key to blow it now, or the stopwatch to type a countdown in seconds.
* **A detector that beeps** 🔍\
  `bomb_detector` puts a scanner in your hand. Point it at a bombed vehicle and it beeps faster the closer you get; players standing next to you hear it too. Bombed vehicles in range can also get a map blip.
* **Defuse it** 🧰\
  `bomb_defuser` gives you a toolbox. Kneel at the bombed vehicle, press **E**, and wait out the repair — or win the C4 minigame.
* **A C4 minigame, if you want it** 🎛️\
  Off by default. Switch it on for planting, defusing or both: five colours flash, you repeat them. Get one wrong and the vehicle explodes.
* **Bombs that tick** 🔊\
  Anyone within 5 m of a bombed vehicle hears it beep. Can be switched off.
* **Items back, or not** 🎁\
  Choose whether planting uses up the bomb, whether defusing uses up the toolbox, and whether a defused bomb comes back as a `car_bomb` or as a `defused_bomb`.
* **Discord logs** 📡\
  A webhook message for every detonation, defusal, failed plant and failed defusal, with the player, their identifiers, the plate and the coordinates.

***

## What you need

| You need                           | Why                                                                                  |
| ---------------------------------- | ------------------------------------------------------------------------------------ |
| **ESX**, **QBCore** or **QBox**    | Usable items and inventory. Chosen with `Config.Framework` (`qbcore` on QBox)        |
| **Five items** in your inventory   | Ready-made definitions and images ship in `inventory_items/` and `inventory_images/` |
| **A Discord webhook** *(optional)* | For the logs                                                                         |

No SQL of its own, no target resource, no extra props — every prop it uses is already in the game.

***

## Where to go next

| Page                                                                 | What is in it                                                    |
| -------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [🪛 Installation](/mic/documentation/car-bomb/installation.md)       | The folder, the five items, the framework, and a full first test |
| [🎨 Customization](/mic/documentation/car-bomb/customization.md)     | Every option in `config.lua`, the controls, and the webhook      |
| [🩺 Troubleshooting](/mic/documentation/car-bomb/troubleshooting.md) | Items that do nothing, detonations that do not go off            |
