Overrides

While we do not provide support for modified frameworks, certain key values can be overridden to ensure compatibility with the Ultimate Admin Panel (UAP).

Command Names

In some cases, you may encounter conflicts with other scripts that use the same command names as the Ultimate Admin Panel. You can modify these command names by adjusting the variables in your config.lua file. Default values are listed below.

How to Change Command Names

config.lua
Config.Commands = {
    Car = "car",
    Announce = "announce",
    Bring = "bring",
    Bringback = "bringback",
    Goto = "goto",
    Goback = "goback",
    Tptocoords = "tptocoords",
    Tpm = "tpm",
    Setped = "setped",
    Resetped = "resetped",
    Heal = "heal",
    Revive = "revive",
    Kill = "kill",
    Freeze = "freeze",
    Invincible = "invincible",
    Invisible = "invisible",
    Noclip = "noclip",
    Kick = "kick",
    Ban = "ban",
    Admin = "admin",
    Repair = "repair",
    Report = "report",
    Reports = "reports",
    Showcoords = "showcoords",
    Coords = "coords",
    Shownames = "shownames",
    Spectate = "spectate"
}

Example

If you want to change the admin and car commands:

config.lua
Config.Commands = {
    Admin = "uap",
    Car = "uapcar"
}

Event Names

Similarly, you may need to change event names to avoid conflicts with other scripts.

Default Values

ESX

config.lua
Config.Events = {
    Client = {
        PlayerLoaded = "esx:playerLoaded",
        SetAccountMoney = "esx:setAccountMoney",
        Kill = "esx:killPlayer",
        Heal = "red_admin:healPlayer",
        Revive = "esx_ambulancejob:revive"
    },
    Server = {
        PlayerLoaded = "esx:playerLoaded",
        SetJob = "esx:setJob",
        SetJob2 = "esx:setJob2",
        PlayerLogout = "esx:playerLogout",
        AddAccountMoney = "esx:addAccountMoney",
        RemoveAccountMoney = "esx:removeAccountMoney",
        SetAccountMoney = "esx:setAccountMoney"
    }
}

QBCore

config.lua
Config.Events = {
    Client = {
        PlayerLoaded = "QBCore:Client:OnPlayerLoaded",
        Kill = "hospital:client:KillPlayer",
        Heal = "hospital:client:HealInjuries",
        Revive = "hospital:client:Revive"
    },
    Server = {
        PlayerLoaded = "QBCore:Server:PlayerLoaded",
        SetJob = "QBCore:Server:OnJobUpdate",
        SetJob2 = "QBCore:Server:OnGangUpdate",
        PlayerLogout = "QBCore:Server:OnPlayerUnload",
        SetAccountMoney = "QBCore:Server:OnMoneyChange"
    }
}

How to Change Event Names

To change event names, adjust the variables in your config.lua file. For example, if you want to change the player loaded event to myPlayerLoaded:

config.lua
Config.Events = {
    Client = {
        PlayerLoaded = "esx:myPlayerLoaded"
    },
    Server = {
        PlayerLoaded = "esx:myPlayerLoaded"
    }
}

Framework Names

You can customize framework names according to your setup by modifying the Config.FrameworkNames variable.

Default Values

config.lua
Config.FrameworkNames = {
    esx = "es_extended",
    qb = "qb-core"
}

How to Change Framework Names

For instance, if your es_extended framework is named mycustomesx, adjust the variable accordingly:

config.lua
Config.FrameworkNames = {
    esx = "mycustomesx"
}