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 everywhere)
UNIQUE = {}
UNIQUE.getSharedObject = exports['es_extended']:getSharedObject()
-----------------------------------------------------------------------
-- [NOTIFICATIONS]
UNIQUE.Locale = 'en' -- Select your language. ('en' or 'de')
UNIQUE.Welcomemessage = true -- Would you like every new player to receive a welcome message?
UNIQUE.Customnotify = false -- Do you want to use your own notify?
function Notify(type, msg) -- Your Notify Trigger. ('msg' must be retained.)
if type == 'info' then
exports['unique_notify']:SendAlert('information', msg, 5000)
end
if type == 'success' then
exports['unique_notify']:SendAlert('success', msg, 5000)
end
if type == 'error' then
exports['unique_notify']:SendAlert('error', msg, 5000)
end
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [FUNCTIONS]
function SendToSkinchanger(data)
TriggerEvent('esx_skin:playerRegistered')
end
-- [FUNCTIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Blacklisted_Words = { -- Enter here all words that may not be used as first or last names.
"badword",
-- "badword",
-- "badword",
}
UNIQUE.Settings = {
['Firstname'] = {
['min_length'] = 3, -- Minimum Length of Firstname.
['max_length'] = 30, -- Maximum Length of Firstname.
},
['Lastname'] = {
['min_length'] = 3, -- Minimum Length of Lastname.
['max_length'] = 30, -- Maximum Length of Lastname.
},
['Height'] = {
['start_height'] = 170, -- Default Size.
['min_height'] = 140, -- Minimum Height.
['max_height'] = 200, -- Maximum Height.
},
['DOB'] = {
['min_age'] = 18, -- Minimum Age for every player.
['max_age'] = 80, -- Maximum Age for every player.
['format'] = "DD-MM-YYYY", -- Date of Birth Format. ("DD-MM-YYYY", "MM-DD-YYYY" or "YYYY-MM-DD")
['seperator'] = ".", -- Date of Birth Separator.
},
['Command'] = {
['name'] = 'deletechar', -- Command to delete the current character from a specific ID. (/deletechar ID)
['Authorized'] = { -- Allowed groups that can execute this eommand.
'superadmin',
'admin',
-- 'supporter',
-- 'supporter',
-- 'supporter',
},
},
['Items'] = {
['Time_between'] = true, -- Enable spacing between items.
['Time'] = 500, -- Milliseconds for each item.
[1] = {
['enabled'] = true, -- Do you want to enable this item?
['item'] = 'phone', -- Item to be received by the player.
['amount'] = 1, -- Fixed amount of this item the player receives if the randomizer is disabled.
['Randomizer'] = {
['enabled'] = false, -- Would you like to generate the quantity for this item randomly?
['min_amount'] = 1, -- Minimum amount received by the player.
['max_amount'] = 5, -- Maximum amount received by the player.
},
},
[2] = {
['enabled'] = true, -- Do you want to enable this item?
['item'] = 'water', -- Item to be received by the player.
['amount'] = 1, -- Fixed amount of item the player receives if the randomizer is disabled
['Randomizer'] = {
['enabled'] = true, -- Would you like to generate the quantity for this item randomly?
['min_amount'] = 1, -- Minimum amount received by the player.
['max_amount'] = 5, -- Maximum amount received by the player.
},
},
[3] = {
['enabled'] = true, -- Do you want to enable this item?
['item'] = 'bread', -- Item to be received by the player.
['amount'] = 1, -- Fixed amount of item the player receives if the randomizer is disabled
['Randomizer'] = {
['enabled'] = true, -- Would you like to generate the quantity for this item randomly?
['min_amount'] = 1, -- Minimum amount received by the player.
['max_amount'] = 5, -- Maximum amount received by the player.
},
},
[4] = {
['enabled'] = false, -- Do you want to enable this item?
['item'] = 'bread', -- Item to be received by the player.
['amount'] = 1, -- Fixed amount of item the player receives if the randomizer is disabled
['Randomizer'] = {
['enabled'] = false, -- Would you like to generate the quantity for this item randomly?
['min_amount'] = 1, -- Minimum amount received by the player.
['max_amount'] = 5, -- Maximum amount received by the player.
},
},
[5] = {
['enabled'] = false, -- Do you want to enable this item?
['item'] = 'bread', -- Item to be received by the player.
['amount'] = 1, -- Fixed amount of item the player receives if the randomizer is disabled
['Randomizer'] = {
['enabled'] = false, -- Would you like to generate the quantity for this item randomly?
['min_amount'] = 1, -- Minimum amount received by the player.
['max_amount'] = 5, -- Maximum amount received by the player.
},
},
},
['Audio'] = {
['enabled'] = true, -- Do you want to play a sound when the player receives a notification in the UI?
['file'] = "/html/sound/notify.mp3", -- File name of the sound effect. (mp3)
['volume'] = 0.3, -- Volume of the sound effect (0.1 - 1.0)
},
}
-- [MAIN SETTINGS]
-----------------------------------------------------------------------
-- https://discord.gg/unique
-- If you have any questions or issues, feel free to open a ticket on our Discord.
---------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = 15836418, -- Enter your desired color code on [https://www.spycolor.com/], copy the "decimal index" color code, and replace the current one with your new code.
['header'] = "unique_identity", -- 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.
['footer'] = "📅",
}
-- [DISCORD LOGS]
----------------------------------------------------------------------
Last updated