> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/bank-truck-robbery-4-in-1/disable-mission-npc.md).

# Disable Mission NPC

## Tracking the Truck

* **Remove the NPC:**
  * To disable the NPC, set the `cfg.missionNPCs` table in `data/npcs.lua` to an empty table.
* **Start Tracking the Truck:**

  * Use the server event below and spawn a truck from another resource to find out its location.. Here are some examples:

  ```lua
  -- Basic usage:
  TriggerServerEvent('rm_banktruck:server:startTrackingTruck')

  -- With a target player's server ID (e.g., 1)
  TriggerServerEvent('rm_banktruck:server:startTrackingTruck', 1)

  -- With additional parameters:
  TriggerServerEvent('rm_banktruck:server:startTrackingTruck', nil, {
      price = 0,
      ignorePoliceCount = true,
      ignorePlayerCooldown = true
  })

  -- Specifying a mode value:
  TriggerServerEvent('rm_banktruck:server:startTrackingTruck', 1, {
      price = 0,
      ignorePoliceCount = true,
      ignorePlayerCooldown = true
  })
  ```

These examples show different ways to call the event, depending on your needs. Adjust the parameters as necessary for your specific use case.
