Config Files
Information
Our configuration files are highly detailed and structured for easy understanding. To make it as simple as possible for you, an explanation is provided next to each setting.
All configuration files can be found in the /configs
folder.
Included configuration files:
---------------------------------------------------------------------------------------------------------------
-- If you have any questions or issues, feel free to open a ticket on our Discord.
-- https://discord.gg/unique
-- "true" = activated, "false" = deactivated. (Applies universally)
-- DO NOT TOUCH THE KEYS BEFORE THE "=" CHARACTER TO PREVENT ERRORS!
-- YOU CAN ONLY EDIT THE VALUES BEHIND THE "=" CHARACTER UNLESS MENTIONED!
UNIQUE = {}
-----------------------------------------------------------------------
-- [NOTIFICATIONS]
UNIQUE.Locale = 'en' -- Select your language. ['en' or 'de']
UNIQUE.CustomNotify = false -- Do you want to use your own notify?
function Notify(type, msg) -- Your Notify Trigger. ['msg' must be retained.]
if type == 'lootdrop_announce' then
TriggerEvent('unique_hud:Announce', "Lootdrop", msg, 10000) -- EXAMPLE.
end
if type == 'info' then
TriggerEvent('unique_hud:Notify', "Lootdrop", msg, 'info', 5000) -- EXAMPLE.
end
if type == 'success' then
TriggerEvent('unique_hud:Notify', "Lootdrop", msg, 'success', 5000) -- EXAMPLE.
end
if type == 'error' then
TriggerEvent('unique_hud:Notify', "Lootdrop", msg, 'error', 5000) -- EXAMPLE.
end
end
UNIQUE.HelpNotify = false -- Do you want to use a helpnotify?
function HelpNotify() -- Your Helpnotify Trigger / Export.
exports['unique_helpnotify']:TriggerHelpNotify("PRESS E TO INTERACT.") -- Example.
end
UNIQUE.Progressbar = false -- Do you want to use a progressbar?
function Progressbar(Time) -- Your Progressbar Trigger / Export.
TriggerEvent('unique_progressbar', "The crate is being welded...", Time) -- Example.
end
UNIQUE.CancelProgressbar = false -- Do you want to cancel the progress bar when the loot drop opening process is canceled?
function CancelProgressbar() -- Your Progressbar Cancel Trigger / Event.
TriggerEvent('unique_progressbar:Stop') -- Example.
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
------------------------------------------------------------------------
-- [INVENTORY]
UNIQUE.Inventory = 'esx' -- Choose between 'esx' & 'ox_inventory'.
-- [INVENTORY]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [MAIN SETTINGS]
function CheckIfDeath(PlayerPed)
local IsDead
-- [NORMAL METHOD]
IsDead = IsPedDeadOrDying(PlayerPed, true)
-- [NORMAL METHOD]
-- [VISN_ARE]
-- IsDead = exports['visn_are']:GetHealthBuffer().unconscious
-- [VISN_ARE]
return IsDead
end
UNIQUE.Settings = {
['Lootdrops'] = {
['interaction_key'] = 38, -- Interaction key. [Currently "E", You can find all keys here: https://docs.fivem.net/docs/game-references/controls/#controls]
['announces_only_for_whitelisted_jobs'] = true, -- Do you want to display lootdrop announcements only for the affected jobs when activated?
['delete_lootdrop_after'] = 30, -- After how many minutes should a lootdrop be deleted if it hasn't been claimed?
['lootdrop_canceled_cooldown'] = 5, -- How long should it take in seconds before the loot drop can be collected again after the process was canceled?
},
['Blip'] = {
['scale'] = 1.0, -- Blip scale. [0.1 - ∞]
},
['Zone'] = {
['scale'] = 150.0, -- Zone scale.
['color'] = '#FF0000', -- Zone color. [HEX-Code]
['opacity'] = 50, -- Zone opacity. [0 - 255]
}
}
UNIQUE.Lootdrops = {
-- [LOOTDROP PRESET, to create a new one, copy the existing one and modify the new one as desired.]
['WeaponCrate'] = { -- ATTENTION -> The lootdrop identifier provided here must be unique and must not contain any spaces!
['display_name'] = "Weapon Delivery", -- The display name provided here will be shown in the configured notification.
['wait_until_drop'] = 5, -- Enter here how long it takes in minutes for the aircraft to take off with the lootdrop.
['enable_vehicle'] = true, -- Do you want to enable the vehicle, including the flight route and other features?
['vehicle_model'] = 'titan', -- Enter the model of the aircraft here.
['vehicle_speed'] = 65.00, -- Enter the speed of the aircraft here. [The maximum speed depends on the aircraft.]
['vehicle_heading'] = 108.03, -- Enter your desired direction of view for the model here.
['Start_Coords'] = {
['enabled'] = true, -- Do you want to enable the starting position? [If this entry is set to 'false', the aircraft will be created at the position specified one below named 'air_coords'.]
['coords'] = vector3(1710.46, 3253.15, 41.04), -- The position specified here can be used for the start of the aircraft from, for example, an airport.
['ped_model'] = "s_m_m_pilot_02", -- Enter the Ped model of the pilot here.
},
-- ATTENTION! --> ['air_coords']
-- These coordinates are needed for the aircraft to take off smoothly from the specified position.
-- This position should be straight ahead of the aircraft, nearby, and in the air. [We recommend a height of at least + 30.0]
['air_coords'] = vector3(1356.70, 3156.47, 68.60), -- Please read the text above this setting!
['Lootdrop'] = {
['DropCoords'] = { -- Here you can specify all locations where this lootdrop can be dropped. [A random coordinate will always be taken if multiple are present.]
-- ATTENTION! -> Enter the ground coordinates here. The required altitude of the aircraft will be automatically determined.
{coords = vector3(1076.42, 3080.35, 40.65), location = "Sandy Shores"}, -- location = Displayname of the location.
-- {coords = vector3(-713.55, 2427.87, 62.45), location = "1"}, -- location = Displayname of the location.
-- {coords = vector3(-2533.19, 1921.93, 170.88), location = "2"}, -- location = Displayname of the location.
},
['model'] = 'tr_prop_tr_container_01e', -- Enter the model of the lootdrop you want the aircraft to drop. [Here you can find various crates for example: https://forge.plebmasters.de/objects?search=crate]
['entity_maxspeed'] = 5.0, -- Enter the maximum flying speed of the model here. [Models have different flying speeds, so you have to play around here to find the desired one.]
['Parachute'] = { -- Here you can make settings for a parachute attached to your lootdrop.
['enabled'] = true, -- Do you want to enable the parachute?
['model'] = 'p_parachute1_mp_dec', -- Enter the model of your desired parachute here. [Here you can find various parachutes for example: https://forge.plebmasters.de/objects?search=parachute]
['AttachEntityToEntity'] = { -- With these position and rotation settings, the parachute is attached to the specified model.
['Position'] = {0.0, 0.0, 5.0}, -- [X, Y, Z] Here you can set the position of the parachute. [Since each model is different in size, you have to play around here again to find the desired position.]
['Rotation'] = {0.0, 0.0, 0.0}, -- [X, Y, Z] Here you can set the rotation of the parachute. [Since each model is different in size, you have to play around here again to find the desired rotation.]
},
},
['Lootdrop_Landed'] = { -- Here you will find all settings for the lootdrop landed on the ground.
['Blip'] = {
['enabled'] = true, -- Do you want to create a blip on the map as soon as the lootdrop has landed?
['name'] = "Lootdrop", -- Blip name.
['sprite'] = 478, -- Blip sprite. [https://docs.fivem.net/docs/game-references/blips/]
['color'] = 47, -- Blip color. [https://docs.fivem.net/docs/game-references/blips/#blip-colors]
},
['Zone'] = {
['enabled'] = true, -- Do you want to create a zone as soon as the lootdrop has landed?
['enter_and_leave_notify'] = true, -- Do you want to inform your players when they enter and leave a lootdrop zone?
['vehicles_allowed'] = true, -- Do you want to allow your players to enter the zone with vehicles?
['drawdistance'] = 100.0, -- Marker viewdistance.
},
['Interaction'] = {
['actiondistance'] = 3.0, -- Interaction radius.
['duration'] = 5, -- Enter here in seconds how long it should take to open the lootdrop. [If a scenario is activated, it also has this duration.]
['RequiredItem'] = {
['enabled'] = false, -- Do you want players to need an item to open the lootdrop?
['item'] = 'weldingmachine', -- Enter the item needed here.
},
['Scenario'] = {
['enabled'] = true, -- Do you want to play a scenario while opening the lootdrop?
['name'] = 'WORLD_HUMAN_WELDING', -- Scenario Name. ['https://wiki.rage.mp/index.php?title=Scenarios']
},
['BlacklistOrWhitelist'] = { -- Here you can activate a blacklist or whitelist for the lootdrop.
['enabled'] = false, -- Do you want to activate a blacklist or whitelist?
['type'] = 'whitelist', -- To create a whitelist, enter 'whitelist'. To create a blacklist, enter 'blacklist'.
['Jobs'] = { -- Enter all the jobs that will be included in your blacklist or whitelist here.
'police',
'ambulance',
-- 'taxi',
}
},
},
},
['Lootdrop_Loot'] = { -- Here you can set up the complete loot that is available in this lootdrop.
['Money'] = {
['enabled'] = true, -- Do you want to store money in this lootdrop?
['account'] = 'money', -- On which account should the player receive the money? ['money', 'bank', 'black_money']
['amount'] = 5000, -- Enter the amount of money here. [Will only be valued if the Randomizer is set to 'false'.]
['Randomizer'] = {
['enabled'] = false, -- Do you want to randomly generate the amount of money between two values?
['min'] = 5000, -- Enter the lowest amount of the randomizer here.
['max'] = 25000, -- Enter the maximum amount of the randomizer here.
},
},
['Weapons'] = {
['enabled'] = true, -- Do you want to store weapons in this lootdrop?
['weapon'] = 'weapon_pistol', -- Enter the weapon stored in the lootdrop here. [Will only be valued if the Randomizer is set to 'false'.]
['Randomizer'] = {
['enabled'] = false, -- Do you want to generate random weapons from a specified list of weapons?
['amount'] = 2, -- How many weapons should the player receive from this list?
['Weapons'] = { -- Enter all the weapons that can be plundered in this lootdrop here.
'weapon_pistol',
'weapon_pistol50',
'weapon_carbinerifle',
'weapon_assaultrifle',
},
},
},
['Items'] = {
['enabled'] = true, -- Do you want to store items in this lootdrop?
['amount'] = 2, -- How many items should the player receive from this list?
['Item_List'] = { -- Enter all the items that can be plundered in this lootdrop here.
['bread'] = {1, 3}, -- EXAMPLE. [1-3 of this item.]
['water'] = {1, 6}, -- EXAMPLE. [1-6 of this item.]
},
},
},
},
['delete_coords'] = vector3(-3760.75, 2593.76, 147.83), -- Once the aircraft has dropped the loot, the aircraft flies to the position specified here and is then removed.
},
-- [LOOTDROP PRESET, to create a new one, copy the existing one and modify the new one as desired.]
}
-- [MAIN SETTINGS]
------------------------------------------------------------------------
-- https://discord.gg/unique
-- If you have any questions or issues, feel free to open a ticket on our Discord.
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
-- If you have any questions or issues, feel free to open a ticket on our Discord.
-- https://discord.gg/unique
-- "true" = activated, "false" = deactivated. (Applies universally)
-- DO NOT TOUCH THE KEYS BEFORE THE "=" CHARACTER TO PREVENT ERRORS!
-- YOU CAN ONLY EDIT THE VALUES BEHIND THE "=" CHARACTER UNLESS MENTIONED!
------------------------------------------------------------------------
-- [SQL SETTINGS]
UNIQUE.SQL = {
['users_table'] = 'users', -- Table where all players are stored.
['identifier_column'] = 'identifier', -- Identifier.
['firstname_column'] = 'firstname', -- Firstname.
['lastname_column'] = 'lastname', -- Lastname.
}
-- [SQL SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [COMMANDS SETTINGS]
UNIQUE.Commands = {
['SpawnLootdrop'] = {
['command'] = 'lootdrop', -- Command with which a lootdrop can be spawned.
['Ranks'] = { -- List all ranks here that are allowed to spawn a lootdrop.
'superadmin',
'admin',
-- 'mod',
},
}
}
-- [COMMANDS SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [AUTO LOOTDROPS]
UNIQUE.AutoLootdrops = {
-- This function is written so that the plane takes off at the specified time!
-- So if you specify 12:00 AM but your ['wait_until_drop'] setting is, for example, 15 minutes, the loot drop announcement will come at 11:45 AM, and the plane will take off at 12:00 AM.
-- [ATTENTION] = We recommend keeping at least one hour between each lootdrop!
['enabled'] = false, -- Would you like to enable automatic lootdrops?
['Lootdrops'] = { -- Enter all automatic loot drops here.
-- ['LootdropName_1'] = { -- This identifier must always be unique and must not be used twice!
-- ['hour'] = '12', -- Enter the hour of your desired time here.
-- ['minute'] = '00', -- Enter the minutes of your desired time here.
-- ['Lootdrops'] = { -- Enter all desired identifiers of your lootdrops here, from which one will then be spawned randomly at the specified time. [If you enter only one, only that one will be taken.]
-- 'WeaponCrate',
-- },
-- },
-- ['LootdropName_2'] = { -- This identifier must always be unique and must not be used twice!
-- ['hour'] = '06', -- Enter the hour of your desired time here.
-- ['minute'] = '00', -- Enter the minutes of your desired time here.
-- ['Lootdrops'] = { -- Enter all desired identifiers of your lootdrops here, from which one will then be spawned randomly at the specified time. [If you enter only one, only that one will be taken.]
-- 'WeaponCrate',
-- },
-- },
-- ['LootdropName_3'] = { -- This identifier must always be unique and must not be used twice!
-- ['hour'] = '09', -- Enter the hour of your desired time here.
-- ['minute'] = '00', -- Enter the minutes of your desired time here.
-- ['Lootdrops'] = { -- Enter all desired identifiers of your lootdrops here, from which one will then be spawned randomly at the specified time. [If you enter only one, only that one will be taken.]
-- 'WeaponCrate',
-- },
-- },
}
}
-- [AUTO LOOTDROPS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Would you like to enable the Discord log for the captured lootdrops?
['webhook'] = "", -- Webhook URL.
['color'] = '#F1A502', -- Embed color. [HEX-Code]
['header'] = "unique_lootdrops", -- Author text.
['header_link'] = "https://discord.gg/invite/unique", -- Author link.
['header_image'] = "https://unique-studio.de/UNIQUE/DESIGNS/Logo_New.png", -- Author image.
['thumbnail'] = "https://unique-studio.de/UNIQUE/DESIGNS/Logo_New.png", -- Thumbnail image.
['image'] = "", -- Normal image.
['footer_date_format'] = "%d.%m.%Y 〢 %H:%M:%S", -- Date format. [%d = day, %m = month, %Y = year, %H = hour, %M = minute, %S = second.] <- Pay attention to the case sensitivity!
['footer_emoji'] = "📅", -- Footer emoji.
}
-- [DISCORD LOGS]
------------------------------------------------------------------------
-- https://discord.gg/unique
-- If you have any questions or issues, feel free to open a ticket on our Discord.
-------------------------------------------------------------------------------------------------------------
Last updated