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 = {}
-----------------------------------------------------------------------
-- [POSITIONS]
UNIQUE.Position = {
['coords'] = vector3(-657.54, -854.78, 24.51), -- At which coordinates should the numberchange be accessible?
['Blip'] = {
['enabled'] = true, -- Would you like to activate the blip?
['name'] = "Numberchange", -- 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'] = true, -- 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'] = 120, -- 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?
['coords'] = {-657.54, -854.78, 23.51, 0.00, "a_m_y_bevhills_01"}, -- (1=X, 2=Y, 3=Z, 4=Heading, 5=Model)
['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/]
},
}
}
-- [POSITIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [NOTIFICATIONS]
UNIQUE.Locale = 'en' -- Select your language. ('en' or 'de')
UNIQUE.CustomNotify = true -- 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 = true -- Do you want to use a helpnotify?
function HelpNotify() -- Do you want to use a helpnotify?
exports['unique_helpnotify']:TriggerHelpNotify("PRESS E TO INTERACT.") -- EXAMPLE!
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
------------------------------------------------------------------------
-- [FUNCTIONS]
function OpenUI() -- This function is executed when the UI is opened.
-- TriggerEvent('unique_hud:ToggleUI', false)
-- ESX.UI.Menu.CloseAll()
end
function CloseUI() -- This function is executed when the UI is closed.
-- TriggerEvent('unique_hud:ToggleUI', true)
end
-- [FUNCTIONS]
-----------------------------------------------------------------------
------------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Blacklisted_Numbers = { -- Here, you can prohibit specific numbers if desired.
"911",
"912",
-- "110",
-- "112",
}
UNIQUE.Settings = {
['sql_table'] = 'users', -- Name of your SQL table where the numbers are stored.
['sql_column'] = 'phone_number', -- Name of your SQL column in the SQL table where the numbers are stored.
['sql_identifier'] = 'identifier', -- Name of your SQL column in the SQL table where the identifier of the player are stored.
['min_length'] = 3, -- Minimum length of the numbers in the input field.
['max_length'] = 9, -- Maximum length of the numbers in the input field.
['Prefix'] = {
['enabled'] = false, -- Do you want to add a prefix to each number?
['prefix'] = "323", -- Automatically added at the beginning of each number.
},
['price'] = 5000, -- Price for changing the number at the specified position.
['Simcard'] = {
['enabled'] = false, -- Enable Item. Disables changing the number via NPC / Marker + Blip. (Item usage requires a server restart to take effect.)
['item'] = "simcard", -- Item functioning as a SIM card.
},
['drop_player'] = false, -- Enable player kick after changing their number.
['cooldown'] = 500, -- Cooldown for all notifications.
}
-- [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!
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = '#F1A502', -- Embed color. [HEX-Code]
['header'] = "unique_numberchange", -- 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