βš™οΈConfiguration

Config = {}
Config.Framework = "auto"

Config.Announcement = {
    active = true,
    command = "announcement",
    permission = {
        "superadmin",
        "admin",
        "god"
    }
}

-- Enable or disable announcements from txAdmin events
Config.UseTxAdminAnnouncements = true
-- Name to display when txAdmin announcements are triggered
Config.TxAdminName = "RISK CITY"

function getFramework()
    if Config.Framework == "esx" then
        return exports['es_extended']:getSharedObject(), "esx"
    elseif Config.Framework == "qb" then
        return exports["qb-core"]:GetCoreObject(), "qb"
    elseif Config.Framework == "auto" then
        if GetResourceState('qb-core') == 'started' then
            return exports["qb-core"]:GetCoreObject(), "qb"
        elseif GetResourceState('es_extended') == 'started' then
            return exports['es_extended']:getSharedObject(), "esx"
        end
    end
end

Last updated