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 == 'success' then
TriggerEvent('unique_notify:Notify', 'success', msg, 5000) -- EXAMPLE.
end
if type == 'error' then
TriggerEvent('unique_notify:Notify', 'error', msg, 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', "Searching dumpster...", 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]
UNIQUE.Settings = {
['interaction_key'] = 38, -- Enter the interaction key here to search through dumpsters. [https://docs.fivem.net/docs/game-references/controls/#controls]
['clear_dumpsters_timer'] = 360, -- Enter the duration in minutes of how long it takes after searching until the affected dumpster can be searched again.
['Marker'] = {
['enabled'] = false, -- Would you like to use a marker?
['type'] = 1, -- Marker sprite. [https://docs.fivem.net/docs/game-references/markers/]
['rotate'] = false, -- Would you like the marker to rotate?
['bounce'] = false, -- Would you like the marker to bounce?
['color'] = '#F1A502', -- Marker color. [HEX-Code]
['opacity'] = 120, -- Marker opacity. [0 - 255]
},
}
UNIQUE.Dumpsters = { -- Enter all the dumpster props here that you want to make searchable.
['prop_dumpster_02a'] = { -- Enter the prop name of your desired dumpsters prop here.
['interaction_timer'] = 5, -- How long should it take to search this dumpster?
['interaction_radius'] = 2.0, -- What is the interaction radius for this dumpster?
['Animation'] = {
['enabled'] = true, -- Do you want to play an animation while searching?
['animdict'] = "mini@repair", -- Animation dictionary. [https://forge.plebmasters.de/animations/]
['animname'] = "fixing_a_ped", -- Animation name. [https://forge.plebmasters.de/animations/]
},
['LootSettings'] = {
['percentage'] = 100, -- Enter the percentage chance of finding anything at all here.
['max_finds'] = 1, -- Enter the maximum number of things the player can receive while searching. [3 = A value between 1 and 3]
['PossibleLoot'] = { -- Enter all items that can be found in this dumpster here.
['Raritys'] = { -- Here are all the rarity grades. [Make sure the total always adds up to 100!]
['Items'] = 99, -- What percentage of items should one find in this dumpster?
['Money'] = 1, -- What percentage of money should one find in this dumpster?
['Weapons'] = 0, -- What percentage of weapons should one find in this dumpster?
},
['Items'] = {
['enabled'] = true, -- Do you want items to be found in this dumpster?
['List'] = { -- Enter all the items that can be found in this dumpster here.
['bread'] = {1, 3}, -- Enter the name + maximum value of this item, indicating how much a player can find at once from this trash container.
['water'] = {1, 3}, -- Enter the name + maximum value of this item, indicating how much a player can find at once from this trash container.
}
},
['Money'] = {
['enabled'] = true, -- Do you want money to be found in this dumpster?
['account'] = 'money', -- Enter the account where the player should receive the money.
['amount'] = {1, 100}, -- Enter how much money the player should find here. EXAMPLE = {1, 100} corresponds to a random value between 1 and 100.
},
['Weapons'] = {
['enabled'] = false, -- Do you want weapons to be found in this dumpster?
['List'] = { -- Enter all the weapons that can be found in this dumpster.
'weapon_pistol',
'weapon_ceramicpistol',
'weapon_carbinerifle',
'weapon_assaultrifle',
},
},
},
},
},
}
-- [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]
UNIQUE.Commands = {
['NearestProp'] = { -- With this command, the name of the nearest prop will be displayed in the F8 console.
['enabled'] = true, -- Would you like to activate this command?
['command'] = 'nearestprop', -- Example = "/nearestprop".
['Ranks'] = { -- Which ranks are allowed to use this command?
'superadmin',
'admin',
},
}
}
-- [COMMANDS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [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_dumpsters", -- 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'] = "https://unique-studio.de/Embeds/Thanks.png", -- 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