Config.lua

Full View

Config = {}

Config.Framework = 'esx' -- 'qb' or 'esx' or 'vrp'
Config.GfxInventory = false -- If you use GFX Inventory, set it to true


Config.CooldownTime = { -- Time to generate a new airdrop / Cooldown
    -- Choose a time range. It will be random depending on the set interval.
    min = 1, -- in minutes
    max = 3 -- in minutes
}

Config.TimerToOpenBox = 60 -- Time to open box. This time starts when the box hits the ground (seconds)
Config.TimeAnimation = 5 -- seconds (if you have EnableProgressBar = false)

Config.EnableProgressBar = true
Config.ProgressBar = 'mythic_progbar' -- 'progressbar' or 'mythic_progbar' or 'ox_lib'
Config.ProgressLabel = 'OPENING...'
Config.ProgressTime = 4 -- in seconds

Config.DroppingAirdropSound = false -- You need to have the Interact-Sound script

Config.BoxProp = "ex_prop_adv_case_sm" -- Box prop || https://gta-objects.xyz/objects
Config.ParachuteProp = "p_cargo_chute_s" -- Parachute prop || https://gta-objects.xyz/objects

Config.Coords = { 
    {x = -186.9262, y = 2397.3015, z = 92.8176},
    {x = 240.5462, y = 1780.9818, z = 211.7526},
    -- you can add + coords
}

Config.Blip = {
    Sprite = 94,
    Colour = 1,
    Scale = 0.7,
    Text = "Zone AirDrop"
}

Config.AlertOnlyJobs = {
    Enable = false,
    AlertJobs = { 'bloods', 'crips' }
}

Config.AlertType = 'advanced' -- 'notif' or 'chat' or 'advanced'
Config.Translations = {
    ["time"] = 5,
    ["title"] = "~r~AIR DROP",
    ["msg"] = "~y~AIRDROP FALLING",
    ["pickup"] = '~p~[E] ~w~- Open Airdrop',
    ["rewards"] = 'Item(s) collected',
    ["receivedItems"] = 'Received items: ',
    ["receivedMoney"] = 'Received cash: ',
}
Config.AlertWhoCollected = true -- Alert all players who collected the airdrop?

Config.RemoveDropTime = 25 -- in minutes | Set a time to remove the object (airdrop) if no one collects it.

Config.RewardItems = { -- Allows weapons and items

    ["weapon_smg"] = { percentage = 10, quantity = 1 }, --percentage(0-100%) | quantity(add inv count)
    ["weapon_pistol"] = { percentage = 50, quantity = 2 }, --percentage(0-100%) | quantity(add inv count)
    ["weapon_bat"] = { percentage = 30, quantity = 1 }, --percentage(0-100%) | quantity(add inv count)
    ["weapon_snspistol"] = { percentage = 50, quantity = 1 }, --percentage(0-100%) | quantity(add inv count)

    ["armor"] = { percentage = 80, quantity = 1 }, -- percentage(0-100%) | quantity(add inv count)

}

Config.RandomItemCount = { -- Number of items each box can give (random)
    Min = 2,
    Max = 5,
}

-- Money Reward
Config.GiveMoney = true -- cash account
Config.RandomMoney = {
    Min = 1000,
    Max = 2500
}

Config.PlayersCheck = false -- If you want check players count
Config.MinPlayers = 10 -- How many players need for drop

Config.Command = 'airdrop' -- Command (only for cmd) to generate airdrop, if you want to generate airdrop manually.

Config.Debug = true -- Prints on console

--|> 𝗗𝗜𝗦𝗖𝗢𝗥𝗗 𝗕𝗢𝗧 ----------------
Config.Log = {
    Webhook = "",
    BotName = "Airdrop Logs",
    ServerName = "Server Name RP",
    IconURL = "https://cdn.discordapp.com/attachments/1111280529082417203/1111289712095801415/logo_1.png",
}

Config.GetItemLabel = true -- if not working automatic, check config/functions.lua

-- You can implement or change here for your notification system
function Notify(msg)
	
	--TriggerEvent('codem-notification:Create', msg, 'info', nil, 5000)
	--exports['Roda_Notifications']:showNotify(msg, 'info', 5000)
	--exports['okokNotify']:Alert("Airdrop", msg, 5000, 'info')
	exports['mythic_notify']:SendAlert('inform', msg)
    
end

Last updated

Was this helpful?