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 = {}
-----------------------------------------------------------------------
-- [POSITION]
UNIQUE.Position = {
['coords'] = vector3(-1285.63, -566.95, 31.71), -- At which coordinates should the namechange be accessible?
['Blip'] = {
['enabled'] = true, -- Would you like to activate the blip?
['name'] = "Namechange", -- Blip name.
['sprite'] = 177, -- Blip sprite. [https://docs.fivem.net/docs/game-references/blips/]
['color'] = 47, -- Blip color. [https://docs.fivem.net/docs/game-references/blips/#blip-colors]
['scale'] = 1.0, -- Blip scale. [0.1 - ∞]
},
['Marker'] = {
['enabled'] = false, -- Would you like to use a marker?
['type'] = 21, -- Marker sprite. [https://docs.fivem.net/docs/game-references/markers/]
['rotate'] = true, -- Would you like the marker to rotate?
['bounce'] = true, -- Would you like the marker to bounce?
['color'] = "#F1A502", -- Marker color. [HEX-Code]
['opacity'] = 100, -- Marker opacity. [0 - 255]
['scale'] = {x = 1.0, y = 1.0, z = 1.0}, -- Marker scale.
['actiondistance'] = 1.0, -- Marker interaction radius.
['drawdistance'] = 10.0, -- Marker viewdistance. [Higher value = Higher usage.]
},
['NPC'] = {
['enabled'] = true, -- Would you like to activate the NPC?
['model'] = 's_m_y_ammucity_01', -- Ped Model. [https://docs.fivem.net/docs/game-references/ped-models/]
['heading'] = 311.90, -- Ped Heading.
['Animation'] = {
['enabled'] = true, -- Would you like to assign an animation to the NPC?
['animdict'] = "anim@heists@heist_corona@single_team", -- Animation (https://gtahash.ru/animations/)
['animname'] = "single_team_loop_boss", -- Flag (https://gtahash.ru/animations/)
}
}
}
-- [POSITION]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [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.
ESX.ShowHelpNotification("PRESS ~INPUT_CONTEXT~ TO INTERACT.")
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Settings = {
['Firstname'] = {
['min_length'] = 3, -- Minimum length of the firstname.
['max_length'] = 30, -- Maximum length of the firstname.
},
['Lastname'] = {
['min_length'] = 3, -- Minimum length of the lastname.
['max_length'] = 30, -- Maximum length of the lastname.
},
['Payment'] = {
['price'] = 5000, -- How much should changing the name cost?
['smart_function'] = true, -- Checks cash first, then the bank account.
['account'] = 'money' -- If the smart_function is deactivated, you can specify here the desired account from which the specified price should be deducted.
-- Accounts: 'money', 'bank' or 'black_money'
},
['BlacklistedWords'] = { -- Here, you can prohibit specific names / words if desired.
"badword",
-- "badword",
-- "badword",
}
}
-- [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]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = '#F1A502', -- Embed color. [HEX-Code]
['header'] = "unique_namechange", -- 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