Config
Here you can find all the configurations that you can set with our lootdrop script
Mio.Locals
Configure the different texts that should be output when notifying
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
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
------------------------- 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
--------------------------- 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
------------------------- 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
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
Last updated