> For the complete documentation index, see [llms.txt](https://fivecore.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivecore.gitbook.io/home/resources/looting/events/server-events.md).

# Server Events

{% hint style="danger" %}
These events **should not** be triggered by any other scripts.
{% endhint %}

### fivecore\_looting:itemLooted <a href="#fivecore_zombies-zombiekilled" id="fivecore_zombies-zombiekilled"></a>

Triggered when a player picks up an item inside a loot point, useful if you want to give xp or something similar

<pre class="language-lua"><code class="lang-lua">AddEventHandler('fivecore_looting:itemLooted', function(playerId, item, amount, spotId, remainingSlots)
<strong>    -- Your code
</strong>end)
</code></pre>

* playerId: `number`
* item: `string`
* amount: `number`
* spotId: `string`
* remainingSlots: `number`
  * How many slots with items are still in the spot, if it is 0 then there is no more loot
