> For the complete documentation index, see [llms.txt](https://shift-studios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shift-studios.gitbook.io/docs/old-free/editor.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# TX

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2FU8mpcP76Au7wEPkpcn9f%2Ftx.png?alt=media&amp;token=bbc4e630-574f-43c5-bbe4-843cbf1dd59c" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### TX

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

```
Required: txAdmin

Notification Support: ox_lib, QBCore, Qbox, ESX, okokNotify, mythic_notify, Standalone & Custom

Notification Detection Is Automatic And Can Also Be Manually Configured.
```

{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-tx In Your Server CFG.
{% endstep %}

{% step %}

### Configure The Resource

{% code expandable="true" %}

```lua
-- 💠 ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ 💠
-- 🔷 ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ 🔷
-- 🌀 ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ 🌀
-- 🔹 ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ 🔹
-- 💎 ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ 💎
-- 🔵 ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ 🔵

Config = {}

Config.Notifications = {
    -- Supported: 'auto', 'ox_lib', 'qbox', 'qb', 'esx', 'okok', 'mythic', 'standalone', 'custom'
    System = 'ox_lib',

    -- Used only when System = 'auto'. The first started resource in this list is used.
    AutoDetectOrder = {
        'ox_lib',
        'qbox',
        'qb',
        'esx',
        'okok',
        'mythic'
    },

    -- Notification defaults.
    Position = 'center-left',
    DefaultDuration = 8000,
    ShowDuration = true,
    PlaySound = true,

    -- Resource names can be changed here if your server uses renamed resources.
    Resources = {
        ox_lib = 'ox_lib',
        qbox = 'qbx_core',
        qb = 'qb-core',
        esx = 'es_extended',
        okok = 'okokNotify',
        mythic = 'mythic_notify',
        chat = 'chat'
    },

    -- Map Shift notification types to the type names expected by each notification system.
    TypeMap = {
        ox_lib = {
            inform = 'inform',
            success = 'success',
            warning = 'warning',
            error = 'error'
        },
        qbox = {
            inform = 'inform',
            success = 'success',
            warning = 'warning',
            error = 'error'
        },
        qb = {
            inform = 'primary',
            success = 'success',
            warning = 'primary',
            error = 'error'
        },
        okok = {
            inform = 'info',
            success = 'success',
            warning = 'warning',
            error = 'error'
        },
        mythic = {
            inform = 'inform',
            success = 'success',
            warning = 'inform',
            error = 'error'
        }
    },

    -- Extra ox_lib options. Leave nil to use the notification resource defaults.
    OxLib = {
        Icon = nil,
        IconColor = nil,
        IconAnimation = nil,
        AlignIcon = 'center',
        Style = nil,
        Sound = nil
    },

    -- Extra Qbox options.
    Qbox = {
        SubTitle = nil,
        Style = nil,
        Icon = nil,
        IconColor = nil
    },

    -- Optional mythic_notify style table.
    Mythic = {
        Style = nil
    },

    -- Any notification system not built in can be added here.
    -- Set System = 'custom' and replace the function contents with your notification call.
    Custom = function(data)
        -- Example:
        -- exports['your_notify']:Notify(data.title, data.description, data.duration, data.type)
        print(('[shift-tx] %s: %s'):format(data.title or 'Server', data.description or ''))
    end
}

-- Fully configurable txAdmin event notifications.
Config.Events = {
    Announcement = {
        Enabled = true,
        Title = 'Announcement',
        UseAuthorAsTitle = true,
        Type = 'inform',
        Duration = 8000
    },

    ScheduledRestart = {
        Enabled = true,
        Title = 'Scheduled Restart',
        Type = 'warning',
        Duration = 10000,
        FallbackMessage = 'Server restarting soon.'
    },

    DirectMessage = {
        Enabled = true,
        Title = 'Staff Message',
        UseAuthorAsTitle = true,
        Type = 'inform',
        Duration = 8000
    },

    PlayerWarned = {
        Enabled = true,
        Title = 'Warning',
        Type = 'error',
        Duration = 10000,
        FallbackMessage = 'You have been warned.'
    }
}

```

{% endcode %}
{% endstep %}

{% step %}

### Set CFG Information

{% code expandable="true" %}

```
# TXAdmin Noti Settings
# -------------------------
setr txAdmin-hideDefaultAnnouncement true
setr txAdmin-hideDefaultDirectMessage true
setr txAdmin-hideDefaultWarning true
setr txAdmin-hideDefaultScheduledRestartWarning true
```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
