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 == 'info' then
exports['unique_notify']:SendAlert('information', msg, 5000)
end
if type == 'success' then
exports['unique_notify']:SendAlert('success', msg, 5000)
end
if type == 'error' then
exports['unique_notify']:SendAlert('error', msg, 5000)
end
end
-- [NOTIFICATIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [FUNCTIONS]
function VehiclePrize() -- This function is executed when the player receives a vehicle. [CLIENTSIDE]
-- For example, a server trigger to update the vehicle keys.
end
-- [FUNCTIONS]
-----------------------------------------------------------------------
-----------------------------------------------------------------------
-- [MAIN SETTINGS]
UNIQUE.Settings = {
['notify_cooldown'] = 500, -- Milliseconds between all notifications / functions.
['Commands'] = { -- NOTE -> Give the system about 5 seconds to create the SQL entries for new commands.
-- [COMMAND PRESET]
['unique'] = { -- Command name. (Everyone can use this command only once!)
['Allowed_To_Use'] = { -- Specify all groups that are allowed to use this command.
'superadmin',
'admin',
-- 'dev',
-- 'mod',
'user', -- It is important to add the group for regular players if you want them to be able to use this command!
},
['Expiration_Date'] = {
['enabled'] = false, -- Do you want this command to have an expiration date?
['date'] = "12/24/2030", -- Month/Day/Year. (The code will expire on this exact date and will no longer be usable!)
},
['Limited_Usage'] = {
['enabled'] = false, -- Should this command be limited in usage?
['max_usage'] = 50, -- How many times can this command be used in total?
},
['Rewards'] = {
['Money'] = { -- Money Function.
['enabled'] = true, -- Would you like to activate this function?
['account'] = 'money', -- Choose between 'money' = cash, 'bank' = bank account, or 'black_money' = black money.
['amount'] = 5000, -- How much money should the player receive?
['Randomizer'] = {
['enabled'] = false, -- Do you want to randomly generate the amount?
['min_amount'] = 5000, -- Minimum amount.
['max_amount'] = 20000, -- Maximum amount.
}
},
['Items'] = { -- Item Function.
['enabled'] = true, -- Would you like to activate this function?
['Item_List'] = { -- Enter all items along with their quantities here, which the player should receive.
['bread'] = 3, -- itemname = 'bread', amount = 3.
['water'] = 3,
},
},
['Vehicle'] = { -- Vehicle Function.
['enabled'] = true, -- Would you like to activate this function?
['model'] = 'zentorno', -- Vehicle Model.
['type'] = 'car', -- Vehicle Type.
['color'] = 38, -- Vehicle Color. (Here you find all available colors: https://wiki.rage.mp/index.php?title=Vehicle_Colors)
['plate_prefix'] = "UNIQ", -- Maximum 4 digits. (The prefix is added before a randomly generated 4-digit number to prevent duplicates.)
}
}
},
-- [COMMAND PRESET]
-- To create new commands, simply copy the code between the separators and customize it to your needs.
-- [COMMAND PRESET]
-- ['testpromo'] = { -- Command name. (Everyone can use this command only once!)
-- ['Allowed_To_Use'] = { -- Specify all groups that are allowed to use this command.
-- 'superadmin',
-- 'admin',
-- -- 'dev',
-- -- 'mod',
-- 'user', -- It is important to add the group for regular players if you want them to be able to use this command!
-- },
-- ['Expiration_Date'] = {
-- ['enabled'] = false, -- Do you want this command to have an expiration date?
-- ['date'] = "12/24/2030", -- Month/Day/Year. (The code will expire on this exact date and will no longer be usable!)
-- },
-- ['Limited_Usage'] = {
-- ['enabled'] = false, -- Should this command be limited in usage?
-- ['max_usage'] = 50, -- How many times can this command be used in total?
-- },
-- ['Rewards'] = {
-- ['Money'] = { -- Money Function.
-- ['enabled'] = true, -- Would you like to activate this function?
-- ['account'] = 'money', -- Choose between 'money' = cash, 'bank' = bank account, or 'black_money' = black money.
-- ['amount'] = 5000, -- How much money should the player receive?
-- ['Randomizer'] = {
-- ['enabled'] = false, -- Do you want to randomly generate the amount?
-- ['min_amount'] = 5000, -- Minimum amount.
-- ['max_amount'] = 20000, -- Maximum amount.
-- }
-- },
-- ['Items'] = { -- Item Function.
-- ['enabled'] = true, -- Would you like to activate this function?
-- ['Item_List'] = { -- Enter all items along with their quantities here, which the player should receive.
-- ['bread'] = 3, -- itemname = 'bread', amount = 3.
-- ['water'] = 3,
-- },
-- },
-- ['Vehicle'] = { -- Vehicle Function.
-- ['enabled'] = false, -- Would you like to activate this function?
-- ['model'] = 'zentorno', -- Vehicle Model.
-- ['type'] = 'car', -- Vehicle Type.
-- ['color'] = 38, -- Vehicle Color. (Here you find all available colors: https://wiki.rage.mp/index.php?title=Vehicle_Colors)
-- ['plate_prefix'] = "UNIQ", -- Maximum 4 digits. (The prefix is added before a randomly generated 4-digit number to prevent duplicates.)
-- }
-- }
-- },
-- [COMMAND PRESET]
}
}
-- [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 = {
['vehicles_table'] = 'owned_vehicles', -- Table where all player vehicles are stored.
['owner_column'] = 'owner', -- Owner.
['plate_column'] = 'plate', -- License plate.
['vehicle_column'] = 'vehicle', -- Vehicle information.
['type_column'] = 'type', -- Vehicle type.
['stored_column'] = 'stored', -- Stored. (Parked or Unparked.)
['stored_value'] = 1, -- Stored Value.
['garage_column'] = 'parking', -- Garage name.
['garage_value'] = "VespucciBoulevard", -- Garage Value.
}
-- [SQL SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [COMMAND SETTINGS]
UNIQUE.Commands = {
['Command_View_Uses'] = { -- This command displays the value of the current uses for the specified command.
['command'] = 'view_promo', -- What should be the name of the command?
['Allowed_To_Use'] = { -- Which ranks are allowed to use this command?
'superadmin',
'admin',
-- 'dev',
-- 'mod',
}
},
['Command_Reset'] = { -- This command resets the value of the current uses and all uses for every player.
['command'] = 'reset_promo', -- What should be the name of the command?
['Allowed_To_Use'] = { -- Which ranks are allowed to use this command?
'superadmin',
'admin',
-- 'dev',
-- 'mod',
}
}
}
-- [COMMAND SETTINGS]
------------------------------------------------------------------------
------------------------------------------------------------------------
-- [DISCORD LOGS]
UNIQUE.Logs = {
['enabled'] = false, -- Do you want to enable Discord logs?
['webhook'] = "", -- Webhook URL.
['color'] = "#F1A502", -- Enter your desired color code on [https://www.spycolor.com/], copy the "decimal index" color code, and replace the current one with your new code.
['header'] = "unique_promotion", -- 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