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.
exports['unique_helpnotify']:TriggerHelpNotify("PRESS E TO INTERACT.") -- EXAMPLE.
end
UNIQUE.Progressbar = false -- Do you want to use a progressbar?
function Progressbar(ItemName, Time)
local ItemMSG = ItemName .. " is being crafted..."
TriggerEvent('unique_progressbar', ItemMSG, Time) -- EXAMPLE.
end
UNIQUE.CancelProgressbar = true -- Do you want the progress bar to be canceled when leaving the craftradius?
function CancelProgressbar() -- Your Progressbar Cancel Trigger / Event.
TriggerEvent('unique_progressbar:Stop') -- 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]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [INVENTORY]
UNIQUE.Inventory = 'esx' -- Choose between 'esx' & 'ox_inventory'.
-- [INVENTORY]
------------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Settings = {
['Blip'] = {
['scale'] = 1.0, -- Blip scale. [0.1 - ∞]
},
['Marker'] = {
['rotate'] = true, -- Would you like the marker to rotate?
['bounce'] = true, -- Would you like the marker to bounce?
['scale'] = {x = 1.0, y = 1.0, z = 1.0}, -- Marker scale.
['opacity'] = 120, -- Marker opacity. [0 - 255]
['drawdistance'] = 10.0, -- Marker viewdistance. [Higher value = Higher usage.]
['actiondistance'] = 1.0, -- Marker interaction radius.
},
['CraftingStations'] = {
['interaction_hotkey'] = 38, -- Interaction key. [https://docs.fivem.net/docs/game-references/controls/#controls]
['zone_size'] = 8.0, -- The person must be within this radius around the respective crafting station during the crafting process. If the person leaves the radius, the crafting process will be canceled.
['input_max_length'] = 20, -- Maximum input capacity in the input field for the quantity of the selected item.
['Animation'] = {
['enabled'] = false, -- Do you want to play an animation while crafting?
['animdict'] = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", -- Animation dictionary. [https://forge.plebmasters.de/animations/]
['animname'] = "machinic_loop_mechandplayer", -- Animation name. [https://forge.plebmasters.de/animations/]
},
}
}
UNIQUE.CraftingStations = { -- Here you can create your crafting stations.
-- [CRAFTINGSTATION PRESET, to create a new one, copy the existing one and modify the new one as desired.]
['TestStation'] = { -- This identifier must be unique for each crafting station!
['coords'] = vector3(583.54, -3112.07, 6.06), -- Position of this crafting station.
['title'] = "CRAFTINGSTATION", -- Title.
['subtitle'] = "LOS SANTOS", -- Subtitle.
['description'] = "Here you can craft a variety of items, whether it's weapons, armor, or food, to support your adventures. <br> Dive into the art of crafting and create custom items that will give you the decisive advantage in your adventure.", -- Description.
['Blip'] = {
['enabled'] = true, -- Would you like to activate the blip?
['name'] = "Test Station", -- 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]
},
['Marker'] = {
['enabled'] = false, -- Would you like to use a marker?
['type'] = 21, -- Marker sprite. [https://docs.fivem.net/docs/game-references/markers/]
['color'] = '#F1A502', -- Marker color. [HEX-Code]
},
['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'] = 90.70, -- 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/)
}
},
['BlacklistOrWhitelist'] = { -- Here you can activate a blacklist or whitelist.
['enabled'] = false, -- Do you want to activate a blacklist or whitelist?
['type'] = 'blacklist', -- 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',
}
},
['CraftableItems'] = {
['LeftSide'] = { -- All images must be named exactly as the specified item and must be stored in /html/img/items. [ONLY PNGS!]
-- Enter all items for the left side of this crafting station here. To create a new entry, simply copy the existing one and modify it as desired.
['burger'] = { -- Enter the name of the item / weapon the player can craft here. Weapons must start with weapon_ as usual! EXAMPLE = 'weapon_pistol'
['title'] = "Hamburger", -- Display name of the item.
['subtitle'] = "FASTFOOD", -- Any text that serves as the item category. [Leave blank if not desired.]
['time'] = 5, -- How many seconds should crafting this item take?
['Needed'] = { -- Here you can set all the required components for this item.
['Item_1'] = {
['item'] = 'water', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_2'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem2', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_3'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem3', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_4'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem4', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_5'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem5', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
}
},
-- Enter all items for the left side of this crafting station here. To create a new entry, simply copy the existing one and modify it as desired.
},
['RightSide'] = {
-- Enter all items for the right side of this crafting station here. To create a new entry, simply copy the existing one and modify it as desired.
['weapon_combatpistol'] = { -- Enter the name of the item / weapon the player can craft here. Weapons must start with weapon_ as usual! EXAMPLE = 'weapon_pistol'
['title'] = "Combatpistol", -- Display name of the item.
['subtitle'] = "FIREARM", -- Any text that serves as the item category. [Leave blank if not desired.]
['time'] = 5, -- How many seconds should crafting this item take?
['Needed'] = { -- Here you can set all the required components for this item.
['Item_1'] = {
['item'] = 'water', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_2'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem2', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_3'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem3', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_4'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem4', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
['Item_5'] = {
['enabled'] = false, -- Do you want to activate this required item?
['item'] = 'testitem5', -- Enter the required item here. [The display name will be automatically taken from your item database.]
['amount'] = 1, -- How many times is this item needed?
},
}
},
-- Enter all items for the right side of this crafting station here. To create a new entry, simply copy the existing one and modify it as desired.
},
}
},
-- [CRAFTINGSTATION 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]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['color'] = '#F1A502', -- Embed color. [HEX-Code]
['Webhooks'] = { -- Enter all webhooks for each crafting station here. [The webhook must match the identifier of the crafting station!]
['TestStation'] = "", -- Webhook URL.
},
['header'] = "unique_craftingstations", -- 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