BB Store
Discord
  • Discord
  • 📦BB V2 Paket
    • 📖Dokümantasyon
      • 👨‍🔧Meslekler
        • 👨‍🍳Legal Meslekler
          • Çöpçülük
          • Balıkçılık
          • Kamyonculuk
          • Çiftçilik
          • Odunculuk
          • Pizzacılık
          • Otobüsçülük
          • Taksicilik
        • 🦹İllegal Meslekler
          • Köşetut
          • İllegal Teslimat İşi
          • Extasy
          • Meth
          • Kokain
          • Esrar
      • 🔫Soygunlar
        • Market Soygunu
        • Atm Soygunu
        • Ev Soygunu
        • Vezne Soygunu
        • Kuyumcu Soygunu
        • Sanat Galerisi Soygunu
        • Tren Soygunu
        • Humane Labs Soygunu
        • Casino Soygunu
        • Pasifik Bankası Soygunu
      • 🗺️Haritalar
        • Cayo Perico Gang Savaşı
        • Sanat Galerisi
        • Bean Machine
        • Motel
        • Burgershot
        • Kumarhane
        • Uwu Cat Cafe
        • Cayo Perico Köprüsü
        • Dövüş Kulübü
        • Galeri
        • Antika Bar
        • Warzone
        • Sheriff Departmanı
        • Hapishane
        • Hastane
        • Kilise
        • Göl Evleri
        • OX
        • Petshop
        • Redzone
        • Özel Çete Hoodları
        • State Police Departmanı
        • Taco
        • Tekila Bar
        • Tiki Bar
        • Belediye Binası
        • Tunershop
        • Polis Departmanı
        • Legion Meydanı
        • Pop's Diner
        • Mekanikler
      • ℹ️Sistemler
        • Multikarakter Menüsü
        • Motel
        • Airdrop
        • Redzone
        • Metalı Çanta
        • Satın Alma / Satma
        • Galericilik
        • DJ Sistemi
        • FPS Menü
        • Legal Birim GPS
        • Rehber Kitaplar
        • Kasa Açma
        • İllegal Doktor NPC
        • Özel Plaka
        • Plaka, Model Okuyucu
        • Megafon
        • OX Event
        • Araç Kiralama
        • Kişisel ve Şifreli Depo
        • Oluşum Saygınlık
        • Ekip GPS
        • Tunershop İllegal Modifiye
        • Barut (GSR) Testi
        • Nitro
        • İllegal Saygınlık
        • Soygun Secure
        • Warzone
        • Silah Geliştirme
        • Blackmarket
        • Bodycam
        • Oyuncu Report
        • Combatlog
        • Kara Para Aklama
        • Ehliyet
        • Envanter (Meta Kıyafetli)
        • PD/SD/EMS Galeri
        • Crafting
        • Drift Kiti
        • Sırta Silah Asma
        • Özel Crosshair
        • Evrak
        • Asansör
        • Sigara, Elektronik Sigara ve Kafa Yapan Ürünler
        • ESC Pausemenu
        • Biber Gazı
        • Yazıcı
        • Safezone
        • Doktor İlkyardım
        • Kıyafet Kodu Paylaşımı
        • Lovemenu
        • Npc Diyalog
        • Araç Kilometre Sayacı
        • Emote(Animasyon) Menü
        • Ev ve Emlakçılık
        • Tv, Boombox ve Carplay
        • Oto Araç temizliği
        • Kara Para Deposu
        • Kara Tahta
        • Kamera Modu
        • CCTV (Güvenlik Kamerası)
        • Parmak İzi Okuyucu
        • Günlük Tutma
        • Günlük Görevler
        • Bisiklet Kiralama
        • Spawnselector
        • El Radarı
        • Peluş Oyuncak
        • Paten ve Kaykay
        • Kaydedilen Yürüyüş Stili
        • Araç Kontrol Menüsü
        • Ölüm Ekranı
        • Silah Fırlatma
        • Şipşak Fotoğraf
        • PD, EMS, DOJ MDT
        • İhbar (Dispatch)
        • Yumruk Makinesi
        • Bilardo
        • Grafiti
        • Uzaktan Kumandalı Araç
        • Paraşütle Atlama
        • Akıllı Tabelalar
        • Uno Kart Oyunu
        • Gym ve Skill
        • Radial (F3) Menu
        • Ghostpeek Engelleme
        • Kapı Kilit
        • Tekne ve Botta Çapa Atma
        • Çöp Karıştırma
        • Araç Verme Menü
        • Meslek Özel Chat
        • Süreli/Süresiz Araç Bağlama
        • Ağız Bantlama
        • Driveby Bölgesel Aç/Kapa
        • Kucaklama/Sırta alma/Rehin alma
        • Toka
        • Araç Top Speed Limitleme
        • Etkinlik Hazır Silah Setleri
        • PD Hazır Eşya Çantası
        • Hazır Silah Paketleri
        • Araç Vergi & Fatura
        • Kartuşlu Taser
        • Illegal Coin
        • Araba ve Motokros Yarışı
        • DOJ İstek, Şikayet, Öneri
      • ℹ️Yetkili Sistemleri
        • Admin Menü
        • Purelevel Aç/Kapa
        • Silah Dupe Sorgulama
Powered by GitBook
On this page
  1. BB V2 Paket
  2. Dokümantasyon
  3. Yetkili Sistemleri

Admin Menü

PreviousYetkili SistemleriNextPurelevel Aç/Kapa

Last updated 8 months ago

Bilgilendirme

Admin menüye erişmek için 0 veya /adminpanel, noclip için 9 veya DELETE, oyuncu isimlerini açmak için 8 tuşunu kullanabilirsiniz.


qb-admin
Config = {}
Config.DB = {}

-------             CONFIGURATION          --------           
---------------------------------------------------

Config.EnableDebug                          = false                 -- Whether to enable debug prints or not

Config.ESXSkin                              = "AK"                  -- AK for ak47 or Default for esx_skin

Config.DefaultDarkMode                      = 1                     -- Whether dark mode should be enabled by default. 1 is on by default, 0 is off

Config.ServerName                           = "Sunucu Adı"
Config.ServerDiscord                        = "discord.gg/discord-linki" -- For kick/ban messages
Config.ScreenshotWebhook                    = ""
Config.LogsWebhook                          = ""

Config.NoClipKey                            = "9"
Config.AdminPanelKey                        = "0"
Config.ShowNamesKey                         = "8"

Config.EnableAdminPanelCommand              = true                  -- Whether to enable the admin panel command (/a by default)
Config.AdminPanelCommand                    = "adminpanel"

Config.NoClipType                           = 1                     -- 1 (default) NEW txAdmin-like NoClip system, or 2 for old style NoClip system, or 3 for default qbcore NoClip system

Config.ShowIPInIdentifiers                  = true                 -- Whether to show player's IPs in the identifiers box in player info view

Config.EnableReportCommand                  = "new"                  -- "new" or "old" // New yeni sistem panelli, old eski tip /report ve /reportr şeklinde
Config.ReportCommand                        = "report"              -- The command to use for reports (default /report)
Config.MaxReportsPerPlayer                  = 2                     -- The maximum amount of reports a player can place
Config.SaveTOJSON                           = true                  -- Whether to save reports and admichat to JSON onResourceStopped (server restarts etc) and load from JSON on resource start

Config.DB.VehiclesTable                     = "player_vehicles"     -- Standards: player_vehicles   for QBCore  | user_vehicle   for ESX
Config.DB.CharactersTable                   = "players"             -- Standards: players           for QBCore  | users          for ESX
Config.DB.BansTable                         = "bans"

Config.AnnounceBan                          = true                  -- Whether to announce bans in chat or not
Config.TagEveryone                          = true                 -- Enable to tag everyone in the discord log on ban

Config.EnableNames                          = true                  -- Whether or not to enable the names overhead
Config.AllPlayersUseNames                   = false                 -- Wheter or not all players can use the overhead names
Config.NamesOverSelfHead                    = true                  -- Whether or not your name and id should be over your own head or not

Config.FuelScript                           = 'cdn-fuel'

Config.Permissions = {
    ["god"] = {
        AllowedActions = {
            -- "resourcepage", -- Access the Resource control page
            "kickall", -- Kick all players
            "reviveall", -- Revive all players
            "messageall", -- Message all players
            "massdeleteentities", -- Permission to delete ALL vehicles, peds, or objects for all players
            "setViewDistance", -- Set view distance
            "copyEntityInfo", -- Copy entity information
            "freeaimMode", -- Enable free aim mode
            "displayVehicles", -- Display vehicle dev mode
            "displayPeds", -- Display peds dev mode
            "displayObjects", -- Display objects dev mode
            "deleteclosestped", -- Delete closest ped
            "deleteclosestobject", -- Delete closest object
            "clearreports", --Clear reports ADVISE TO KEEP TO GOD ONLY!
            "clearadminchat", --Clear adminchat ADVISE TO KEEP TO GOD ONLY!
            "clearlogs", --Clear logslist ADVISE TO KEEP TO GOD ONLY!
            "leaderboardinfo", --Check the leaderboards
            "serverlogs", -- Access the server logs page
            "servermetrics", -- Access the server metrics page
            "savedata", -- Save player data
            "setpedmodel", -- Set a player's ped model
            "clearinventory", -- Clear inventory
            "randomvisualparts", -- Random visual parts (vehicle)
            "setlivery", -- Set liver (vehicle)
            "setcolor", -- Set color (vehicle)
            "forceradar", -- Force minimap on
            "infinitestam", -- Toggle infinite stamina
            "skinmenu", -- Give a player the skin menu
        },
    },
    ["admin"] = {
        AllowedActions = {
            "characterspage", -- Access the All Characters page
            -- "deletecharacter", -- Delete a character
            "messageall", -- Message all players
            "leaderboardinfo", --Check the leaderboards
            "vehiclesinfo", -- Access the vehicle spawn code list page
            "itemsinfo", -- Access the item spawn code list page
            "noclip", -- Noclip
            "teleport", -- Teleport yourself, others, to location
            "kill", -- Kill yourself, others
            "freeze", -- Freeze a player
            "ban", -- Ban a player from the server
            "unban", -- Unban a player
            "weather", -- Change the server weather
            "time", -- Change the server time
            "givetakemoney", -- Give or take money from a player
            "warn", -- Warn a player
            "revive", -- Revive a player
            "foodandwater", -- Feed a player
            "relievestress", -- Relieve stress of a player
            "savecar", -- Save a car to a player's garage
            "spawncar", -- Spawn a vehicle
            "openinventory",
            "setjob", -- Set job of a player
            "setgang", -- Set gang of a player
            "firejob", -- Fire a player from their job
            "firegang", -- Fire a player from their gang
            "giveitem", -- Give a player an item, or several thousand
            "setmedriver", -- Teleport into nearest vehicle as driver
            "setmepassenger", -- Teleport into nearest vehicle as passenger
            "deleteclosestvehicle", -- Delete closest vehicle
            "repairvehicle", -- Repair a vehicle
            "washvehicle", -- Wash a vehicle
            "lockvehicle", -- Lock a vehicle
            "unlockvehicle", -- Unlock a vehicle
            "maxperformanceupgrades", -- Max performance upgrades (vehicle)
            "fillgastank", -- Fill gas tank (vehicle)
            "clearblood", -- Clear blood from clothes
            "wetclothes", -- Wet clothes
            "dryclothes", -- Dry clothes
            "playerblips", -- Toggle player location blips
            "playernames", -- Toggle player location blips
            "invisibility", -- Toggle invisibility
            "godmode", -- Toggle god mode
            "fastrun", -- Toggle fast run
            "superjump", -- Toggle super jump
            "noragdoll", -- Toggle no ragdoll
            "uncuffSelf", -- Uncuff yourself
            "cuff", -- Cuff yourself
            "jobpage", -- Access the jobs page
            "gangpage", -- Access the gangs page
            "banspage", -- Access the bans page
            "adminmenu", -- Open the admin menu
            "viewreports", -- Access the reports list
            "claimreport", -- Claim a report
            "deletereport", -- Delete a report
            "adminchat", -- Access the admin chat
            "kick", -- Kick a player from the server
            "checkwarns", -- Check the warnings of a player
            "spectate", -- Spectate a player
            "screenshot", -- Screenshot a player
            "benny", -- Mekanik
        },
    },
    ["mod"] = {
        Power = 0,
        AllowedActions = {
            -- "adminmenu", -- Open the admin menu
            -- "viewreports", -- Access the reports list
            -- "claimreport", -- Claim a report
            -- "deletereport", -- Delete a report
            -- "adminchat", -- Access the admin chat
            -- "kick", -- Kick a player from the server
            -- "checkwarns", -- Check the warnings of a player
            -- "spectate", -- Spectate a player
            -- "screenshot", -- Screenshot a player
        },
    }
}


-------                  KEYS              --------           
---------------------------------------------------


Config.Keys = {
    ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
    ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
    ["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
    ["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
    ["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
    ["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
    ["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
    ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
}


-------               FUNCTIONS            --------           
---------------------------------------------------

function DebugTrace(message)
    if Config.EnableDebug then
        print("^3[ADMINMENU Admin ("..GetCurrentResourceName()..")]^7 "..message)
    end
end

function print_table(node)
    local cache, stack, output = {},{},{}
    local depth = 1
    local output_str = "{\n"

    while true do
        local size = 0
        for k,v in pairs(node) do
            size = size + 1
        end

        local cur_index = 1
        for k,v in pairs(node) do
            if (cache[node] == nil) or (cur_index >= cache[node]) then

                if (string.find(output_str,"}",output_str:len())) then
                    output_str = output_str .. ",\n"
                elseif not (string.find(output_str,"\n",output_str:len())) then
                    output_str = output_str .. "\n"
                end

                -- This is necessary for working with HUGE tables otherwise we run out of memory using concat on huge strings
                table.insert(output,output_str)
                output_str = ""

                local key
                if (type(k) == "number" or type(k) == "boolean") then
                    key = "["..tostring(k).."]"
                else
                    key = "['"..tostring(k).."']"
                end

                if (type(v) == "number" or type(v) == "boolean") then
                    output_str = output_str .. string.rep('\t',depth) .. key .. " = "..tostring(v)
                elseif (type(v) == "table") then
                    output_str = output_str .. string.rep('\t',depth) .. key .. " = {\n"
                    table.insert(stack,node)
                    table.insert(stack,v)
                    cache[node] = cur_index+1
                    break
                else
                    output_str = output_str .. string.rep('\t',depth) .. key .. " = '"..tostring(v).."'"
                end

                if (cur_index == size) then
                    output_str = output_str .. "\n" .. string.rep('\t',depth-1) .. "}"
                else
                    output_str = output_str .. ","
                end
            else
                -- close the table
                if (cur_index == size) then
                    output_str = output_str .. "\n" .. string.rep('\t',depth-1) .. "}"
                end
            end

            cur_index = cur_index + 1
        end

        if (size == 0) then
            output_str = output_str .. "\n" .. string.rep('\t',depth-1) .. "}"
        end

        if (#stack > 0) then
            node = stack[#stack]
            stack[#stack] = nil
            depth = cache[node] == nil and depth + 1 or depth - 1
        else
            break
        end
    end

    -- This is necessary for working with HUGE tables otherwise we run out of memory using concat on huge strings
    table.insert(output,output_str)
    output_str = table.concat(output)

    print(output_str)
end

function ExtractIdentifiers(src)
    local identifiers = {
        steam = "",
        ip = "",
        discord = "",
        license = "",
        xbl = "",
        live = ""
    }

    --Loop over all identifiers
    for i = 0, GetNumPlayerIdentifiers(src) - 1 do
        local id = GetPlayerIdentifier(src, i)

        --Convert it to a nice table.
        if string.find(id, "steam") then
            identifiers.steam = id
        elseif string.find(id, "ip") then
            identifiers.ip = id
        elseif string.find(id, "discord") then
            identifiers.discord = id
        elseif string.find(id, "license") then
            identifiers.license = id
        elseif string.find(id, "xbl") then
            identifiers.xbl = id
        elseif string.find(id, "live") then
            identifiers.live = id
        end
    end

    return identifiers
end

local entityEnumerator = {
    __gc = function(enum)
      if enum.destructor and enum.handle then
        enum.destructor(enum.handle)
      end
      enum.destructor = nil
      enum.handle = nil
    end
  }
  
  local function EnumerateEntities(initFunc, moveFunc, disposeFunc)
    return coroutine.wrap(function()
      local iter, id = initFunc()
      if not id or id == 0 then
            disposeFunc(iter)
            return
        end
      
        local enum = {handle = iter, destructor = disposeFunc}
        setmetatable(enum, entityEnumerator)
      
        local next = true
        repeat
            coroutine.yield(id)
            next, id = moveFunc(iter)
        until not next
      
        enum.destructor, enum.handle = nil, nil
        disposeFunc(iter)
    end)
end
  
function EnumerateObjects()
    return EnumerateEntities(FindFirstObject, FindNextObject, EndFindObject)
end
  
function EnumeratePeds()
    return EnumerateEntities(FindFirstPed, FindNextPed, EndFindPed)
end
  
function EnumerateVehicles()
    return EnumerateEntities(FindFirstVehicle, FindNextVehicle, EndFindVehicle)
end
  
function EnumeratePickups()
    return EnumerateEntities(FindFirstPickup, FindNextPickup, EndFindPickup)
end
📦
📖
ℹ️