Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script [Release] Okokchat QBCore

miisan

Bronze Elite
Joined
Oct 18, 2023
Messages
5
Reaction score
4
Points
146
Location
Berlin
For QBUsers, after add on server and commands:
local QBCore = exports['qb-core']:GetCoreObject()

TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end)


Change the functions on commands.lua in the end for these:

Code:
function isAdmin(xPlayer)
    local perms = QBCore.Functions.GetPermission(xPlayer)
    for _, v in ipairs(Config.StaffGroups) do
        if perms[v] then
            return true
        end
    end
    return false
end
function showOnlyForAdmins(admins)
    local players = QBCore.Functions.GetPlayers()
    for _, v in ipairs(players) do
        local perms = QBCore.Functions.GetPermission(v)
        for _, x in ipairs(Config.StaffGroups) do
            if perms[x] then
                admins(v)
                break
            end
        end
    end
end
 
Top