Server Events

Here, you will find all the essential exports for this asset. Please review each step and example thoroughly to understand how it works.

fivecore_looting:itemLooted

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

AddEventHandler('fivecore_looting:itemLooted', function(playerId, item, amount, spotId, remainingSlots)
    -- Your code
end)
  • 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

Last updated