> For the complete documentation index, see [llms.txt](https://mio-scripts.gitbook.io/mio-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mio-scripts.gitbook.io/mio-scripts/scripts/mio-lootdrop/config.md).

# Config

### Mio.Locals

Configure the different texts that should be output when notifying

```lua
Mio.Locals = {
  looterhalten = "You have collected the loot!",
  keinecrowbar = "You don't have the proper tool to break it open!",
  keinerechte = "You do not have permission to use this command!",
  textui  = "[E] Loot the loot drop",
  lootdropdeleted = "The nearest loot drop has been deleted.",
  lootdropnotfound = "No loot drop found nearby.",
  lootdropannounce = "A loot drop has been sighted!"
}
```

### Mio.Base

Base Settings like Prop, time to loot, admin groups and commands

```lua
Mio.Debug = false -- Enable/disable debug mode (for error analysis)

Mio.Prop = "tr_prop_tr_container_01e" -- Prop used as loot drop
Mio.time = 10 -- Time in seconds a player needs to loot a loot drop
Mio.Groups = {"admin", "owner"} -- Groups that can manage loot drops

Mio.Blip = {
    enable = false, -- Enable/disable blip for loot drop
    sprite = 307, -- Icon for blip (https://docs.fivem.net/docs/game-references/blips/)
    color = 6, -- Color of the blip (https://docs.fivem.net/docs/game-references/blips/)
    scale = 1.5, -- Size of blip
    name = "Lootdrop" -- name of blip
}

Mio.OpenCommand = 'lootmenu' -- Command to open the loot drop menu
Mio.DeleteCommand = 'deleteld' -- Command to delete a loot drop
```

### Mio.PlayerSettings

Settings for player to open lootdrops

```lua
------------------------- PLAYER SETTINGS ------------------------------------------------------
-- Here you can configure the various options for players to open the loot drop
Mio.NeedOpen = true -- Is an item or weapon required to open the loot drop?

Mio.UseWeapon = true -- Do players need a weapon to open it? (true/false)
Mio.OpenWeapon = 'WEAPON_CROWBAR' -- Here you can set which weapon is required to open the loot drop // Weapon list: https://wiki.rage.mp/index.php?title=Weapons

Mio.UseItem = false -- Do players need an item to open it? (true/false)
Mio.OpenItem = 'bread' -- Here you can set which item is required to open the loot drop
------------------------- PLAYER SETTINGS END --------------------------------------------------
```

### Mio.Announce

set your own export for announce the lootdrop to every player on the server or use our announce through MIO NOTIFY

```lua
--------------------------- ANNOUNCE SETTINGS ------------------------------------------------------
-- Here you can set up your own announce
-- Just replace "ESX.ShowHelpNotification" with your own announce export

Mio.Announce = true -- If you use our Mio Announce, set this to true (https://tebex.mioscripts/mionotify)

Mio.AnnounceExport = function()
    TriggerClientEvent('mio_announce:announce', -1, "Lootdrop", Mio.Locals.lootdropannounce , 5000, 'announce')
  end
--------------------------- ANNOUNCE SETTINGS END----------------------------------------------------
```

### Mio.Notify

set your own notify export or use our MIO NOTIFY

```lua
------------------------- NOTIFY SETTINGS ------------------------------------------------------
-- Here you can customize the notifications for individual situations
-- Replace "ESX.ShowNotification" with your own notify export

Mio.MioNotify = true -- If you use our Mio Notify, set this to true (https://tebex.mioscripts/mionotify)

Mio.LootErhalten = function()
    ESX.ShowNotification(Mio.Locals.looterhalten)
  end
  
  Mio.KeineCrowbar = function()
    ESX.ShowNotification(Mio.Locals.keinecrowbar)
  end
  
  Mio.KeineRechte = function(source)
    ESX.ShowNotification(Mio.Locals.keinerechte)
  end

  Mio.lootdropdeleted = function(playerId)
    ESX.ShowNotification(Mio.Locals.lootdropdeleted)
  end
  
    Mio.lootdropnotfound = function(playerId)
        ESX.ShowNotification(Mio.Locals.lootdropnotfound)
    end
------------------------- NOTIFY SETTINGS END --------------------------------------------------
```

### Mio.TextUI

set your own textui export

```lua
Mio.MioTextUI = false -- Wenn du unser Mio TextUI verwendest, setze dies auf true (https://tebex.mioscripts/miotextui)

Mio.TextUI = function()
    ESX.ShowHelpNotification(Mio.Locals.textui)
  end
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mio-scripts.gitbook.io/mio-scripts/scripts/mio-lootdrop/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
