> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Item Stolen

> Triggered after a player steals something from the actions menu, only if you use the default player search/rob, it won't work if you replaced it

Triggered after a player steals something from the actions menu.

<Note>
  This only works if you use the default player search/rob action — it won't fire if you replaced it with a custom module.
</Note>

<CodeGroup>
  ```lua Event theme={null}
  RegisterNetEvent("jobs_creator:actions:itemStolen", function(playerId, targetId, itemName, itemQuantity)
  end)
  ```

  ```lua Example theme={null}
  -- This example for ESX will "delete" all stolen items
  RegisterNetEvent("jobs_creator:actions:itemStolen", function(playerId, targetId, itemName, itemQuantity)
      local xPlayer = ESX.GetPlayerFromId(playerId)
      xPlayer.removeInventoryItem(itemName, itemQuantity)
  end)
  ```
</CodeGroup>

### Parameters

| Name           | Data Type | Description                                    |
| -------------- | --------- | ---------------------------------------------- |
| `playerId`     | integer   | The server ID of the player who stole the item |
| `targetId`     | integer   | The server ID of the victim who lost the item  |
| `itemName`     | string    | Item name                                      |
| `itemQuantity` | integer   | Quantity stolen                                |


## Related topics

- [Search/Steal Action](/jobs-creator/server/search-steal-action/index.md)
- [Account stolen](/jobs-creator/server/search-steal-action/account-stolen.md)
- [Weapon Stolen](/jobs-creator/server/search-steal-action/weapon-stolen.md)
- [Prevent Police Weapons from Being Stolen](/jaksam-inventory/guides/block-police-weapon-rob.md)
- [Installation](/luxury-clothes-theft/installation.md)
