πŸ”‘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

Last updated