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 = {}
UNIQUE.Framework = exports['es_extended']:getSharedObject()
-----------------------------------------------------------------------
-- [POSITION]
UNIQUE.Position = {
['coords'] = vector3(-1083.15, -245.87, 37.76), -- At which coordinates should the lifeinvader be accessible?
['Blip'] = {
['enabled'] = true, -- Would you like to activate the blip?
['name'] = "Lifeinvader", -- 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'] = {r = 241, g = 165, b = 2, a = 120}, -- Marker color. [RGB-Code]
['scale'] = {x = 1.0, y = 1.0, z = 1.0}, -- Marker scale.
['actiondistance'] = 2.4, -- Marker interaction radius.
['drawdistance'] = 10.0, -- Marker viewdistance. [Higher value = Higher usage.]
},
['NPC'] = {
['enabled'] = true, -- Would you like to activate the NPC?
['coords'] = {-1083.15, -245.87, 36.76, 206.14, "ig_fbisuit_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/)
}
}
}
-- [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
-- exports['unique_notify']:SendAlert('success', msg, 5000) -- EXAMPLE!
end
if type == 'info' then
-- exports['unique_notify']:SendAlert('error', msg, 5000) -- EXAMPLE!
end
if type == 'error' then
-- exports['unique_notify']:SendAlert('error', msg, 5000) -- EXAMPLE!
end
end
UNIQUE.Helpnotify = false -- Do you want to use a helpnotify?
function HelpNotify() -- Your Helpnotify Trigger.
-- ESX.ShowHelpNotification("PRESS E TO INTERACT.") -- EXAMPLE!
end
UNIQUE.Custommessage = false -- Would you like to use a different notification system for the posted advertisements?
function Public_Message(name, msg, number, time) -- Your Custom Message Trigger.
-- exports['unique_notify']:SendAlert('success', name .. " " .. msg .. " " .. number, time) -- EXAMPLE!
end
function Anonymous_Message(msg, number, time) -- Your Custom Message Trigger.
-- exports['unique_notify']:SendAlert('success', msg .. " " .. number, time) -- EXAMPLE!
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
------------------------------------------------------------------------
-- [COMMANDS]
UNIQUE.ToggleLifeinvaderAdvertisements = 'lifeinvader' -- This command enables/disables the activated advertisement for the respective player.
-- [COMMANDS]
------------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Blacklisted_Words = { -- Enter all the words here that are not allowed to be used.
"badword",
-- "badword",
-- "badword",
}
UNIQUE.Settings = {
['UI'] = {
['Rule_1'] = true, -- Would you like to display rule number 1?
['Rule_2'] = true, -- Would you like to display rule number 2?
['Rule_3'] = true, -- Would you like to display rule number 3?
['Rule_4'] = true, -- Would you like to display rule number 4?
['Rule_5'] = true, -- Would you like to display rule number 5?
},
['Lifeinvader'] = {
['max_length'] = 400, -- Maximum length of characters in the input field.
['timer'] = 10, -- Normal display duration of the advertisement in seconds.
['anonymous'] = "Anonym", -- This text is displayed when the player posts an anonymous advertisement.
['costs'] = 20000, -- Price the player pays for an advertisement without activated features.
['bank'] = false, -- Enable/disable the deduction of money from the player's account.
['timeout'] = 300, -- After posting an advertisement, the player receives a ban for the specified number of seconds.
['timeout_label'] = "Seconds remaining.",
['history_limit'] = 15, -- How many messages should be displayed in the advertising history? (Currently, only the last 15 advertisements are shown.)
['date_format'] = "%d.%m.%Y / %H:%M", -- Date format. (%d = day, %m = month, %Y = year, %H = hour, %M = minute, %S = second.) <- Pay attention to the case sensitivity!
['Features'] = {
['lastname'] = "Specify lastname. (Free)",
['number'] = "Specify number. (Free)",
['no_number'] = "Not specified.",
['timer'] = "Change display duration.",
['Timer_Settings'] = {
['choose_text'] = "Choose a display duration.",
[1] = {
['label'] = "20 Seconds / + 500$", -- Display of the selectable function in the UI.
['msg_time'] = 20, -- Number of seconds for which the message should be displayed.
['costs'] = 500, -- Additional charge the player pays for this display duration.
},
[2] = {
['label'] = "30 Seconds / + 1.000$", -- Display of the selectable function in the UI.
['msg_time'] = 30, -- Number of seconds for which the message should be displayed.
['costs'] = 1000, -- Additional charge the player pays for this display duration.
},
[3] = {
['label'] = "45 Seconds / + 2.000$", -- Display of the selectable function in the UI.
['msg_time'] = 45, -- Number of seconds for which the message should be displayed.
['costs'] = 2000, -- Additional charge the player pays for this display duration.
},
[4] = {
['label'] = "1 Minutes / + 5.000$", -- Display of the selectable function in the UI.
['msg_time'] = 60, -- Number of seconds for which the message should be displayed.
['costs'] = 5000, -- Additional charge the player pays for this display duration.
},
[5] = {
['label'] = "2 Minutes / + 10.000$", -- Display of the selectable function in the UI.
['msg_time'] = 120, -- Number of seconds for which the message should be displayed.
['costs'] = 10000, -- Additional charge the player pays for this display duration.
},
},
},
},
['Blacklist'] = {
['enabled'] = false, -- Do you want to forbid specific jobs from posting advertisements?
['Jobs'] = { -- All jobs listed here won't be able to post ads. (e.g., 'police')
'police',
-- 'police',
-- 'police',
}
},
['Sound'] = {
['enabled'] = true, -- Do you want to activate a sound effect for advertisements?
['audioname'] = "ATM_WINDOW", -- This sound effect plays in-game if enabled.
['audioref'] = "HUD_FRONTEND_DEFAULT_SOUNDSET", -- Here you find all soundeffects: https://altv.stuyk.com/docs/articles/tables/frontend-sounds.html
},
['cooldown'] = 500, -- Milliseconds before the advertisement and notify are sent.
}
-- [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)
-- DO NOT TOUCH THE KEYS BEFORE THE "=" CHARACTER TO PREVENT ERRORS!
-- YOU CAN ONLY EDIT THE VALUES BEHIND THE "=" CHARACTER!
------------------------------------------------------------------------
-- [SQL SETTINGS]
UNIQUE.SQL = {
['auto_clearup'] = false, -- Do you want to automatically delete old advertisements from the database that exceed the display value of advertisements in the advertising history? (Calculated as your set display value + 5.)
['auto_clearup_timer'] = 30, -- At what interval in minutes should the unnecessary entries be gradually deleted?
['users_table'] = 'users', -- Name of the table where all users are stored.
['users_identifier'] = 'identifier', -- Name of the column where the identifiers of the players are stored.
['firstname_column'] = 'firstname', -- Name of the colum where the firstnames of the players are stored.
['lastname_column'] = 'lastname', -- Name of the colum where the lastnames of the players are stored.
['phone_table'] = 'users', -- Name of the table where the phone numbers are stored.
['phone_identifier'] = 'identifier', -- Name of the column where the identifiers of the players are stored.
['phone_numbers'] = 'phone_number', -- Name of the column where the phone numbers are stored.
}
-- [SQL SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL for Anonymous Logs.
['ad_webhook'] = "", -- Webhook URL for Lifeinvader Advertisements.
['color'] = "#FF0000", -- Embed color. [HEX-Code]
['header_link'] = "https://discord.gg/invite/unique", -- Author link.
['header_image'] = "https://i.imgur.com/oiFwFKi.png", -- Author image.
['seperator'] = "—————————————————————————————————————————",
['thumbnail'] = "", -- Thumbnail image.
['image'] = "", -- image.
['footer_image'] = "https://i.imgur.com/oiFwFKi.png",
['footer'] = "Lifeinvader - Los Santos",
}
-- [DISCORD LOGS]
------------------------------------------------------------------------
-- https://discord.gg/unique
-- If you have any questions or issues, feel free to open a ticket on our Discord.
---------------------------------------------------------------------------------------------------------------
Last updated