> For the complete documentation index, see [llms.txt](https://5scripts-1.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://5scripts-1.gitbook.io/docs/assets/5s_hitmarker/config.md).

# Config

```lua
Config = {}

-- Font used for hit markers (0-7 available, 4 is recommended)
Config.fontType = 4

-- How long markers stay visible in milliseconds (recommended: 300-600ms)
Config.hitMarkerDuration = 450

Config.hitThresholds = {
    -- Kill confirmation marker
    killed = {
        r = 222, g = 61, b = 29,     -- Red color
        scaleStart = 0.7,             -- Scale: 0.4 = Small / 0.6 = Medium / 0.8 = Large
        scaleEnd = 0.55
    },

    -- Headshot marker (set to 'default', or define a style like 'killed')
    headshot = 'default',

    -- Health-based markers (picks highest threshold that matches the damage dealt)
    health = {
        [100] = {                     -- Full health
            r = 222, g = 61, b = 29,  -- Red
            scaleStart = 0.7,
            scaleEnd = 0.55
        },
        [50] = {                      -- 50-99% health
            r = 245, g = 245, b = 66, -- Yellow
            scaleStart = 0.65,
            scaleEnd = 0.5
        },
        [0] = {                       -- 0-49% health
            r = 255, g = 255, b = 255, -- White
            scaleStart = 0.6,
            scaleEnd = 0.45
        }
    },

    -- Armor-based markers (shows when the target still has armor)
    armor = {
        [50] = {
            r = 54, g = 76, b = 201,   -- Dark blue
            scaleStart = 0.65,
            scaleEnd = 0.5
        },
        [0] = {
            r = 118, g = 130, b = 194, -- Light blue
            scaleStart = 0.6,
            scaleEnd = 0.45
        }
    }
}

Config.showForNPC = true -- Show hit markers for NPCs

-- 2D crosshair marker (used when the 'Crosshair' style is selected)
Config.crosshairMarker = {
    size = 14,        -- arm length in pixels
    thickness = 3,    -- arm thickness in pixels
    gap = 5,          -- gap from center in pixels
    duration = 250    -- visible time in ms
}

Config.soundTypes = {
    rust = {
        label = 'Rust',
        hitSound = 'sounds/hit_rust.mp3',
        headshotSound = 'sounds/hs_rust.mp3'
    },
    casual = {
        label = 'Casual',
        hitSound = 'sounds/hit_casual.mp3'
    },
    cs = {
        label = 'CS2',
        hitSound = 'sounds/hit_rust.mp3',
        headshotSound = {'sounds/hs1_cs.mp3', 'sounds/hs2_cs.mp3'}, -- random one is picked each headshot
        headshotArmorSound = 'sounds/hs_csarmor.mp3'
    },
    minecraft = {
        label = 'Minecraft',
        hitSound = 'sounds/hit_minecraft.mp3'
    }
}
```
