Configuration
REVOLUTION = {}
REVOLUTION.Framework = {
["Export"] = {
["UseExport"] = true,
["ResourceName"] = "es_extended"
},
["Event"] = {
["EventName"] = "esx:getSharedObject"
}
}
REVOLUTION.Settings = {
["Debug"] = {
Enabled = 'true' -- Debug.
},
["Open"] = {
Command = 'a', -- Command to open the Admin-Menu, make sure there is nothing else on this command ( may causes issues/errors ).
Permissions = { 'projektleitung' } -- Allow groups to open the Admin-Menu.
},
["Actions"] = {
-- Player Actions
open_skin_menu = { 'projektleitung' },
give_weapon = { 'projektleitung' },
give_money = { 'projektleitung' },
give_item = { 'projektleitung' },
set_job = { 'projektleitung' },
heal = { 'projektleitung' },
kick = { 'projektleitung' },
freeze = { 'projektleitung' },
-- Troll Actions
jumpscareban = { 'projektleitung' }, -- Let a player bark, be jumpscared and banned.
jumpscare = { 'projektleitung' }, -- Let a player bark and be jumpscared.
strip = { 'projektleitung' },
bark = { 'projektleitung' },
-- Vehicle Actions
full_tune_vehicle = { 'projektleitung' },
repair_vehicle = { 'projektleitung' },
spawn_vehicle = { 'projektleitung' },
-- Self
full_armor = { 'projektleitung' },
godmode = { 'projektleitung' }
-- Heal uses the same permission as 'heal' under Player Actions.
},
["Ban"] = { -- IMPORTANT: This setting is just for the manual ban system with jumpscare integrated. The usual ban system is locally and seperately saved. ( Mostly used for cheaters, just to troll them )
Reason = 'You have been permanently banned from this server.', -- The reason which is in use while banning the user ( Configurable ).
BanPlayer = function(player, reason)
exports["anticheat name, script name, or remove this line and add your own triggers"]:Ban(id, reason) -- Triggers, Exports, etc. everything works, but we prefer exports due to security reasons.
end
},
["Skin"] = {
Trigger = function(player)
TriggerClientEvent('esx_skin:openMenu', player) -- Thats completely fine, do not touch if you use esx and never touched esx_skin or have a custom one.
end
},
["Jumpscare"] = {
Image = 'https://i.ytimg.com/vi/RNoHcWE8tbQ/maxresdefault.jpg', -- Change it to your own picture if you like to, but it has to be a raw image.
Trigger = function(player, state)
TriggerClientEvent("REVOLUTION:Jumpscare", player, state) -- Completely fine, just change if you know what you're doing.
end
}
}
REVOLUTION.Notification = function(message, type, source)
if IsDuplicityVersion() then
TriggerClientEvent("rs_notifypack:notify", source, message, 'Admin-System', type, 5000)
else
TriggerEvent("rs_notifypack:notify", message, 'Admin-System', type, 5000)
end
end
RegisterKeyMapping(REVOLUTION.Settings.Open.Command, 'Öffne Admin-Menü', 'keyboard', 'F4')
-- https://discord.gg/revolution-services
LOGS = {}
LOGS.General = {
color = 255,
authorName = "rs_adminmenu",
avatarUrl = "https://media.discordapp.net/attachments/1239662320859353168/1239895626762813520/Logo_neu.png?ex=667800c9&is=6676af49&hm=26a7b2c494c5dbda0bec3576cfe7ee71e344d7c817cc601a76bb8f6fd6129b2d&=&format=webp&quality=lossless&width=350&height=350",
thumbnailUrl = "https://media.discordapp.net/attachments/1239662320859353168/1239895626762813520/Logo_neu.png?ex=667800c9&is=6676af49&hm=26a7b2c494c5dbda0bec3576cfe7ee71e344d7c817cc601a76bb8f6fd6129b2d&=&format=webp&quality=lossless&width=350&height=350"
}
LOGS.Urls = {
generalWebhook = "https://discord.com/api/webhooks/your-webhook-url",
give_money = "https://discord.com/api/webhooks/your-webhook-url",
kick = "https://discord.com/api/webhooks/your-webhook-url",
heal = "https://discord.com/api/webhooks/your-webhook-url",
freeze = "https://discord.com/api/webhooks/your-webhook-url",
open_skin_menu = "https://discord.com/api/webhooks/your-webhook-url",
strip = "https://discord.com/api/webhooks/your-webhook-url",
bark = "https://discord.com/api/webhooks/your-webhook-url",
repair_vehicle = "https://discord.com/api/webhooks/your-webhook-url",
full_tune_vehicle = "https://discord.com/api/webhooks/your-webhook-url",
jumpscare = "https://discord.com/api/webhooks/your-webhook-url",
jumpscareban = "https://discord.com/api/webhooks/your-webhook-url",
give_weapon = "https://discord.com/api/webhooks/your-webhook-url",
give_item = "https://discord.com/api/webhooks/your-webhook-url",
setjob = "https://discord.com/api/webhooks/your-webhook-url",
}
LOGS.push = function(webhookUrl, title, description)
local payload = {
username = LOGS.General.authorName,
avatar_url = LOGS.General.avatarUrl,
embeds = {
{
title = title,
description = description,
color = LOGS.General.color,
author = {
name = LOGS.General.authorName,
icon_url = LOGS.General.avatarUrl
},
footer = {
text = "Revolution Services | rs_adminmenu",
icon_url = LOGS.General.avatarUrl,
},
timestamp = os.date('!%Y-%m-%dT%H:%M:%S'),
thumbnail = {
url = LOGS.General.thumbnailUrl
}
}
}
}
PerformHttpRequest(webhookUrl, function(err, text, headers)
print("[REVOLUTION]:", err, text)
end, 'POST', json.encode(payload), {["Content-Type"] = "application/json"})
end
LOCALE = {}
LOCALE.Translation = {
give_money = {
notification = {
de = "Geld erfolgreich überwiesen!"
},
log = {
de = "Spieler %s hat %s Geld an Spieler %s gegeben."
}
},
kick = {
notification = {
de = "Spieler erfolgreich gekickt!"
},
log = {
de = "Spieler %s hat Spieler %s aus folgendem Grund gekickt: %s"
}
},
heal = {
notification = {
de = "Spieler erfolgreich geheilt!"
},
log = {
de = "Spieler %s hat Spieler %s geheilt."
}
},
freeze = {
notification = {
de = "Spieler %s wurde erfolgreich %s eingefroren!"
},
log = {
de = "Spieler %s hat Spieler %s %s eingefroren."
}
},
open_skin_menu = {
notification = {
de = "Skin-Menü geöffnet!"
},
log = {
de = "Spieler %s hat das Skin-Menü für Spieler %s geöffnet."
}
},
strip = {
notification = {
de = "Spieler entkleidet!"
},
log = {
de = "Spieler %s hat Spieler %s entkleidet."
}
},
bark = {
notification = {
de = "Spieler hat erfolgreich gebellt!"
},
log = {
de = "Spieler %s hat Spieler %s bellen lassen."
}
},
repair_vehicle = {
notification = {
de = "Fahrzeug erfolgreich repariert!"
},
log = {
de = "Spieler %s hat das Fahrzeug von Spieler %s repariert."
}
},
full_tune_vehicle = {
notification = {
de = "Fahrzeug vollständig getunt!"
},
log = {
de = "Spieler %s hat das Fahrzeug von Spieler %s vollständig getunt."
}
},
jumpscare = {
notification = {
de = "Jumpscare ausgelöst!"
},
log = {
de = "Spieler %s hat einen Jumpscare für Spieler %s ausgelöst."
}
},
jumpscareban = {
notification = {
de = "Jumpscare ausgelöst und Spieler gebannt!"
},
log = {
de = "Spieler %s hat einen Jumpscare für Spieler %s ausgelöst und sie gebannt."
}
},
give_weapon = {
notification = {
de = "Waffe erfolgreich gegeben!"
},
log = {
de = "Spieler %s hat Spieler %s die Waffe %s gegeben."
}
},
give_item = {
notification = {
de = "Item erfolgreich gegeben!"
},
log = {
de = "Spieler %s hat Spieler %s das Item %s x%d gegeben."
}
},
setjob = {
notification = {
de = "Job erfolgreich geändert!"
},
log = {
de = "Spieler %s hat den Job von Spieler %s auf %s mit Rang %d geändert."
}
}
}
Last updated