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 = {}
UNIQUE.Framework = exports['es_extended']:getSharedObject()
-----------------------------------------------------------------------
-- [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_hud:Notify', "REVIVESTATION", msg, 'success', 5000) -- EXAMPLE.
end
if type == 'error' then
TriggerEvent('unique_hud:Notify', "REVIVESTATION", msg, 'error', 5000) -- EXAMPLE.
end
end
UNIQUE.HelpNotify = false -- Do you want to use a helpnotify? [The Helpnotify trigger/export can be found in the cl_config.lua file of the unique_lib script!]
function HelpNotify() -- Your Helpnotify Trigger / Export.
-- exports['unique_helpnotify']:TriggerHelpNotify("PRESS E TO INTERACT.") -- EXAMPLE.
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [FUNCTIONS]
function CheckDeath(TargetPed) -- This function checks and returns the death status of the player.
-- If you use visn_are, please enable the respective code for it.
-- [ESX_AMBULANCEJOB]
local IsDead = IsEntityDead(TargetPed)
return IsDead
-- [ESX_AMBULANCEJOB]
-- [VISN_ARE]
-- local PlayerID = NetworkGetPlayerIndexFromPed(TargetPed)
-- if PlayerID then
-- local ServerID = GetPlayerServerId(PlayerID)
-- local IsDead = Player(ServerID).state.healthBuffer.unconscious
-- return IsDead
-- else
-- return false
-- end
-- [VISN_ARE]
end
function RevivePlayer(TargetPed)
-- If you use visn_are, please enable the respective code for it.
-- [ESX_AMBULANCEJOB]
TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)
-- [ESX_AMBULANCEJOB]
-- [VISN_ARE]
-- TriggerEvent('visn_are:resetHealthBuffer')
-- [VISN_ARE]
end
function OpenUI() -- This function is executed when the UI is opened.
-- TriggerEvent('unique_hud:ToggleUI', false) -- EXAMPLE!
-- ESX.UI.Menu.CloseAll()
end
function CloseUI() -- This function is executed when the UI is closed.
-- TriggerEvent('unique_hud:ToggleUI', true) -- EXAMPLE!
end
-- [FUNCTIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Settings = {
['interaction_key'] = 38, -- Enter the interaction key here to search through dumpsters. [https://docs.fivem.net/docs/game-references/controls/#controls]
['radius_check'] = 10.0, -- What radius should the Revive Stations search for dead players?
['MedicJobs'] = { -- Enter all medic jobs here.
'ambulance',
-- 'police',
},
['WeaponDeaths'] = { -- Enter here all causes of death caused by weapons.
['MeeleWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Laceration", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
'weapon_bat', 'weapon_crowbar', 'weapon_flashlight', 'weapon_golfclub', 'weapon_hammer',
'weapon_knuckle', 'weapon_nightstick', 'weapon_wrench', 'weapon_poolcue',
}
},
['KnifeWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Stab wound", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
'weapon_dagger', 'weapon_bottle', 'weapon_hatchet', 'weapon_knife',
'weapon_machete', 'weapon_switchblade', 'weapon_battleaxe', 'weapon_stone_hatchet',
}
},
['FirearmWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Gunshot wound", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
-- [PISTOLS]
'weapon_pistol', 'weapon_pistol_mk2', 'weapon_pistol50', 'weapon_combatpistol',
'weapon_appistol', 'weapon_snspistol', 'weapon_snspistol_mk2', 'weapon_heavypistol',
'weapon_vintagepistol', 'weapon_marksmanpistol', 'weapon_revolver', 'weapon_revolver_mk2',
'weapon_doubleaction', 'weapon_ceramicpistol', 'weapon_navyrevolver', 'weapon_gadgetpistol',
'weapon_pistolxm3',
-- [PISTOLS]
-- [AUTOMATIC PISTOLS]
'weapon_machinepistol', 'weapon_minismg', 'weapon_tecpistol',
-- [AUTOMATIC PISTOLS]
-- [SMGS]
'weapon_microsmg', 'weapon_smg', 'weapon_smg_mk2', 'weapon_assaultsmg', 'weapon_combatpdw',
-- [SMGS]
-- [SHOTGUNS]
'weapon_pumpshotgun', 'weapon_pumpshotgun_mk2', 'weapon_sawnoffshotgun', 'weapon_assaultshotgun',
'weapon_bullpupshotgun', 'weapon_heavyshotgun', 'weapon_dbshotgun','weapon_autoshotgun',
'weapon_combatshotgun', 'weapon_musket',
-- [SHOTGUNS]
-- [RIFLES]
'weapon_assaultrifle', 'weapon_assaultrifle_mk2', 'weapon_crabinerifle', 'weapon_carbinerifle_mk2',
'weapon_advancedrifle', 'weapon_specialcarbine', 'weapon_specialcarbine_mk2', 'weapon_bullpuprifle',
'weapon_bullpuprifle_mk2', 'weapon_compactrifle', 'weapon_militaryrifle', 'weapon_heavyrifle',
'weapon_tacticalrifle',
-- [RIFLES]
-- [LMGS]
'weapon_mg', 'weapon_combatmg', 'weapon_combatmg_mk2', 'weapon_gusenberg',
-- [LMGS]
-- [SNIPERS]
'weapon_sniperrifle', 'weapon_heavysniper', 'weapon_heavysniper_mk2', 'weapon_marksmanrifle',
'weapon_marksmanrifle_mk2', 'weapon_precisionrifle', 'weapon_musket',
-- [SNIPERS]
}
},
['FireWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Burns", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
-- [FIREARMS]
'weapon_flaregun',
-- [FIREARMS]
-- [THROWABLES]
'weapon_molotov', 'weapon_flare',
-- [THROWABLES]
}
},
['GasWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Breathing problems", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
-- [THROWABLES]
'weapon_bzgas',
-- [THROWABLES]
}
},
['ExplosionWeapon'] = { -- This identifier must have a different name for each category!
['label'] = "Severe burns", -- Enter here the display name of this cause of death.
['Weapons'] = { -- Enter here all weapons that cause this cause of death.
-- [FIREARMS]
'weapon_rpg', 'weapon_grenadelauncher', 'weapon_minigun', 'weapon_firework',
'weapon_railgun', 'weapon_hominglauncher', 'weapon_compactlauncher',
-- [FIREARMS]
-- [THROWABLES]
'weapon_grenade', 'weapon_stickybomb', 'weapon_proxmine', 'weapon_pipebomb',
-- [THROWABLES]
}
},
},
['Blip'] = {
['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'] = {
['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, -- Marker interaction radius.
['drawdistance'] = 10.0, -- Marker viewdistance. [Higher value = Higher usage.]
},
['NPC'] = {
['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/)
}
},
}
-- [MAIN SETTINGS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [REVIVESTATIONS]
UNIQUE.Revivestations = {
-- To create a new revivestation, simply copy the code between the separators and customize it to your needs.
-----------------------------------------------------------------------------------
-- [REVIVESTATION PRESET]
['Pillbox'] = { -- This identifier must have a different name for each revivestation!
['coords'] = vector3(299.55, -571.30, 43.26), -- At which coordinates should this Revivestation be accessible?
['duration'] = 10, -- Enter here in seconds how long it takes to revive a person.
['MedicSettings'] = {
['enabled'] = false, -- Do you want a specific number of medics to be required to use this revive station?
['count'] = 1, -- Enter the number of medics required to use the revive station. [EXAMPLE = '1', there must be at least 0-1 medical staff on duty.]
},
['LicenseRequired'] = { -- This feature requires 'esx_license'!
['enabled'] = false, -- Do you want to require a license for players to receive treatment?
['license'] = 'revivestation', -- Which license is required?
},
['Costs'] = {
['amount'] = 5000, -- Enter the standard treatment price here. [Only applies if 'depending_on_reason' = false.]
['account'] = 'money', -- Specify from which account the money should be deducted.
['MedicFee'] = { -- Here you can set a fee for each active medic. [Intended because players refuse RP with medics if they are online.]
['enabled'] = true, -- Do you want to charge a fee for each active medic?
['fee_for_each_medic'] = 500, -- How much should this fee be?
},
['depending_on_reason'] = true, -- Do you want to make the treatment price dependent on the injury?
['DeathReasons'] = { -- Enter all costs for your specified categories above.
-- ['IDENTIFIER'] = PRICE,
['MeeleWeapon'] = 500,
['KnifeWeapon'] = 1000,
['FirearmWeapon'] = 2500,
['FireWeapon'] = 800,
['BreathWeapon'] = 350,
['ExplosionWeapon'] = 2100,
['Accident'] = 500, -- Fixed cause of death. [DONT REMOVE!]
['Drowned'] = 750, -- Fixed cause of death. [DONT REMOVE!]
['Fire'] = 750, -- Fixed cause of death. [DONT REMOVE!]
['Explosion'] = 1250, -- Fixed cause of death. [DONT REMOVE!]
['Unknown'] = 250, -- Fixed cause of death. [DONT REMOVE!]
},
},
['Blip'] = {
['enabled'] = true, -- Would you like to activate the blip?
['name'] = "Revivestation", -- Blip name.
},
['Marker'] = {
['enabled'] = false, -- Would you like to use a marker?
},
['NPC'] = {
['enabled'] = true, -- Would you like to activate the NPC?
['model'] = 's_m_m_paramedic_01', -- Ped model. [https://docs.fivem.net/docs/game-references/ped-models/]
['heading'] = 116.99, -- Ped heading.
},
},
-- [REVIVESTATION PRESET]
-----------------------------------------------------------------------------------
}
-- [REVIVESTATIONS]
-----------------------------------------------------------------------
-- 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!
------------------------------------------------------------------------
-- [APPEARANCE SETTINGS]
UNIQUE.Appearance = {
['avatar_type'] = 'static', -- Choose between 'static' and 'discord'.
['static_male_avatar'] = "/html/img/male.svg", -- Fixed male avatar for 'static'.
['static_female_avatar'] = "/html/img/female.svg", -- Fixed female avatar for 'static'.
['discord_bot_token'] = '', -- Bot token of a bot on your Discord server. [Required for Discord Avatars!]
}
-- [APPEARANCE SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [SQL SETTINGS]
UNIQUE.SQL = {
-- [USERS TABLE]
['users_table'] = 'users', -- Table where all players are stored.
['identifier_column'] = 'identifier', -- Identifier.
['firstname_column'] = 'firstname', -- Firstname.
['lastname_column'] = 'lastname', -- Lastname.
['gender_column'] = 'sex', -- Gender column.
['male_gender'] = 'm', -- Male gender.
['female_gender'] = 'f', -- Female gender.
-- [USERS TABLE]
-- [ESX_LICENSE TABLE]
['license_table'] = 'user_licenses',
['license_column'] = 'type',
['license_identifier'] = 'owner',
-- [ESX_LICENSE TABLE]
}
-- [SQL LOGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = '#F1A502', -- Embed color. [HEX-Code]
['header'] = "unique_revivestations", -- 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