> 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-18.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Damage Notify

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%2FxUuD04qjo57ppXpdr9ti%2Fdamage.png?alt=media&amp;token=42bc4a3c-ab53-4e40-ba87-71041cddfe92" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Damage Notify

Read Everything Below To Install
{% endstep %}

{% step %}

### Ensure All Dependencies Are Installed

No Dependencies Needed
{% endstep %}

{% step %}

### Drag & Drop

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

{% step %}

### Ensure The Resource

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

{% step %}

### Configure The Resource

{% code expandable="true" %}

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

Config = {}

-- Framework is only used as a compatibility hint. The resource itself is framework independent.
-- Options: 'auto', 'esx', 'qb', 'qbox', 'standalone'
Config.Framework = 'esx'

-- Notification system.
-- Options: 'auto', 'ox_lib', 'qbox', 'qb', 'esx', 'okok', 'wasabi',
-- 'brutal', 'mythic', 'codem', 'sd', 'custom', 'native'
Config.Notify = 'ox_lib'

Config.Notification = {
    duration = 3500,
    position = 'center-left',
    sound = false
}

-- Optional custom notification hook. Set Config.Notify = 'custom' to use it.
-- Return false to fall back to the native GTA notification.
-- Config.CustomNotify = function(data)
--     -- data.title, data.description, data.type, data.duration, data.position, data.icon, data.iconColor
--     return true
-- end

-- How often player health is checked in milliseconds.
Config.CheckInterval = 200

-- Show the exact amount of health lost in the notification.
Config.ShowExactDamage = true

-- Minimum health damage required to trigger a notification.
Config.DamageThreshold = 5

-- Do not show damage notifications after the player is already dead.
Config.DisableWhileDead = true

-- Cooldowns per severity in milliseconds.
Config.Cooldowns = {
    light = 2000,
    medium = 1500,
    heavy = 1000,
    headshot = 750
}

-- Damage severity settings.
Config.Severity = {
    light = {
        min = 5,
        max = 15,
        icon = 'heart-crack',
        color = 'green',
        type = 'inform',
        notify = {
            title = 'Minor Injury',
            description = 'You Took Minor Damage'
        }
    },

    medium = {
        min = 16,
        max = 35,
        icon = 'triangle-exclamation',
        color = 'yellow',
        type = 'warning',
        notify = {
            title = 'Injured',
            description = 'You Took Moderate Damage'
        }
    },

    heavy = {
        min = 36,
        max = 999,
        icon = 'skull',
        color = 'red',
        type = 'error',
        notify = {
            title = 'Critical Hit',
            description = 'You Took Heavy Damage'
        }
    }
}

-- Headshot override.
Config.Headshot = {
    enabled = true,
    icon = 'crosshairs',
    color = 'purple',
    type = 'error',
    title = 'Headshot',
    description = 'You Were Hit In The Head'
}

-- Damage type overrides.
Config.DamageTypes = {
    [`WEAPON_FALL`] = {
        title = 'Fall Damage',
        icon = 'person-falling',
        color = 'orange',
        type = 'warning'
    },

    [`WEAPON_RUN_OVER_BY_CAR`] = {
        title = 'Vehicle Impact',
        icon = 'car-burst',
        color = 'red',
        type = 'error'
    }
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

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