CAS-Adminmenu VERSION 2

You can find some information about adminmenu.

SCRIPT INSTALLATION

FOR VORP FRAMEWORK

vorp_core/server/sv_whitelist.lua Replace with file in the bottom.

FOR RSG FRAMEWORK

  • RSG-Core/server/events.lua - Replace with file i shared in the bottom

  • rsg-appearance/client/clothes.lua Add this bool to first line local forceAdmin = false

  • And add this code for anywhere in clothes.lua

    RegisterNetEvent("openClothingMenu")
    AddEventHandler("openClothingMenu", function()
        forceAdmin = true
        OpenClothingMenu()
    end)
  • Find this function and replace with i shared in the bottom

    function TeleportAndFade(coords4, resetCoords)
        if not forceAdmin then
            DoScreenFadeOut(500)
            Wait(1000)
            Citizen.InvokeNative(0x203BEFFDBE12E96A, PlayerPedId(), coords4)
            SetEntityCoordsNoOffset(PlayerPedId(), coords4, true, true, true)
            inClothingStore = true
            Wait(1500)
            DoScreenFadeIn(1800)
        else
            forceAdmin = false
        end
        if resetCoords then
            CurentCoords = {}
            TogglePrompts({ "TURN_LR", "CAM_UD", "ZOOM_IO" }, false)
            inClothingStore = false
            TriggerServerEvent('rsg-appearance:SetPlayerBucket', 0)
        end
    end

LOCALES AND CONFIG

Last updated