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)
-- DO NOT TOUCH THE KEYS BEFORE THE "=" CHARACTER TO PREVENT ERRORS!
-- YOU CAN ONLY EDIT THE VALUES BEHIND THE "=" CHARACTER!
UNIQUE = {}
-----------------------------------------------------------------------
-- [POSITION]
UNIQUE.RespawnPosition = vector4(298.53, -584.59, 42.54, 70.86) -- The player will be teleported to these coordinates when bleeding out.
-- [POSITION]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [NOTIFICATIONS]
UNIQUE.Locale = 'en' -- Select your language. ('en' or 'de')
UNIQUE.CustomNotify = false -- Do you want to use your own notify?
function Notify(msg) -- Your Notify Trigger. ('msg' must be retained.)
exports['unique_notify']:SendAlert('error', msg, 5000)
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [FUNCTIONS]
function ShowDeathscreen(KillerName, KillerID, DeathReason) -- This function is executed as soon as the player dies. (Clientside)
-- if not exports['unique_ffa']:InFFA() then
TriggerEvent('unique_deathscreen:OpenUI', KillerName, KillerID, DeathReason)
TriggerServerEvent('esx_ambulancejob:setDeathStatus', true)
SetTimecycleModifier("BlackOut") -- Causes blurry vision during death. (https://wiki.rage.mp/index.php?title=Timecycle_Modifiers)
DisableAllControlActions(0)
ESX.UI.Menu.CloseAll()
-- end
-- ESX.CloseContext()
-- TriggerEvent('unique_hud:Hide')
end
function HideDeathscreen() -- This function is executed as soon as the player is revived. (Clientside)
HideUI()
-- TriggerEvent('unique_hud:Show')
end
function Dispatch(PlayerCoords, msg) -- This function is executed as soon as the player submits a dispatch. (Clientside)
print(PlayerCoords)
print(msg)
TriggerServerEvent('esx_ambulancejob:onPlayerDistress')
end
UNIQUE.BeforeDeathFunction = false -- Would you like to use this function?
function BeforeDeath(src) -- This function is executed before the player bleeds out. (Serverside)
-- Code here...
end
function Bleedout() -- This function is executed as soon as the player bleeds out. (Clientside)
TriggerEvent('esx_basicneeds:resetStatus')
TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)
EnableAllControlActions(0)
end
-- [FUNCTIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Settings = {
['max_time'] = 20, -- Number of minutes until the player automatically bleeds out. (The bleedout button should be below this minute value!)
['Display'] = {
['enabled'] = true, -- Would you like to enable the display of the cause of death in the UI?
['Killer'] = {
['enabled'] = true, -- Do you want to display the person who killed the victim?
['player_id'] = true, -- Do you want to display the player id of the killer?
['player_name'] = true, -- Do you want to display the player firstname of the killer?
['player_lastname'] = true, -- Do you want to display the player lastname of the killer?
},
['Reason'] = {
['enabled'] = true, -- Do you want to display the cause of death? (e.g., the weapon that led to the death.)
},
},
['Bleedout'] = {
['msg'] = true, -- Should a message be displayed after bleeding out? (Can be changed in the respective locale. ['bleedout_after_time_msg'] & ['bleedout_via_button_msg'])
['remove_cash'] = false, -- Do you want the player's cash to be removed when bleeding out?
['remove_blackmoney'] = false, -- Do you want the player's dirty money to be removed when bleeding out?
['remove_weapons'] = false, -- Do you want the player's weapons to be removed when bleeding out?
['remove_items'] = {
['enabled'] = false, -- Do you want the player's items to be removed when bleeding out? [Weapons can also be valued as items, depending on your inventory!]
['inventory'] = 'esx', -- Choose between: 'esx', 'ox_inventory' or 'qs-inventory'.
['DoNotRemove'] = { -- Enter all items here that should not be removed upon bleeding out.
-- 'water',
-- 'bread',
-- 'phone',
},
},
},
['Buttons'] = {
['Dispatch'] = {
['ui_hotkey_display'] = "D", -- This letter will be displayed for this action in the UI. (Should be identical to the hotkey specified below.)
['hotkey'] = 30, -- Enter your desired hotkey for this button here. (Hotkeys = https://docs.fivem.net/docs/game-references/controls/#controls)
['cooldown'] = 6, -- In what intervals (in seconds) is the player allowed to press this button?
},
['Sync'] = {
['ui_hotkey_display'] = "S", -- This letter will be displayed for this action in the UI. (Should be identical to the hotkey specified below.)
['hotkey'] = 31, -- Enter your desired hotkey for this button here. (Hotkeys = https://docs.fivem.net/docs/game-references/controls/#controls)
['cooldown'] = 3, -- In what intervals (in seconds) is the player allowed to press this button?
},
['Bleedout'] = {
['available_after'] = 10, -- Number of minutes after which the player can press the Bleedout Button. (Must be under the specified 'max_time'!)
['Costs'] = {
['enabled'] = false, -- Do you want the player to have money deducted when pressing the button?
['amount'] = 5000, -- How much money should be deducted from the player?
['account'] = 'bank', -- Enter here your desired account from which the amount should be deducted. (Choose between: 'money', 'bank', 'black_money' ...)
},
['ui_hotkey_display'] = "B", -- This letter will be displayed for this action in the UI. (Should be identical to the hotkey specified below.)
['hotkey'] = 29, -- Enter your desired hotkey for this button here. (Hotkeys = https://docs.fivem.net/docs/game-references/controls/#controls)
},
},
}
-- [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 everywhere)
------------------------------------------------------------------------
-- [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.
['is_dead_column'] = 'is_dead', -- Is Dead.
}
-- [SQL SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = 'F1A502', -- Enter here your desired HEX-Code WITHOUT the '#'!
['header'] = "unique_deathscreen", -- 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_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