Fivecore
  • Fivecore - FiveM Scripts
  • Discord
  • General
    • Common issues
  • RESOURCES
    • Zombies
      • Installation
      • Usage
      • Functions
        • Server Functions
      • Events
        • Server Events
    • Looting
      • Installation
      • Setup
      • Events
        • Server Events
      • Functions
        • Client Functions
        • Server Functions
      • Loot editor
    • NPC Dialogs
      • Installation
      • Usage
      • Extras
    • Dynamic Guides
      • Installation
      • Usage
    • Interact
      • Installation
      • Usage
      • InteractOptions
      • Functions
        • Client
Powered by GitBook
On this page
  1. RESOURCES
  2. Looting
  3. Events

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.

These events should not be triggered by any other scripts.

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

PreviousEventsNextFunctions

Last updated 8 months ago