For the complete documentation index, see llms.txt. This page is also available as Markdown.

configGsr.lua

config.gsr = {
    active = true,
    gsrTime = 1800,             -- seconds (How long GSR stays active)
    autoRemoveInterval = 60000, -- milliseconds (Interval for auto-removing expired GSR records)
    reCheckCooldown = 300000,   -- milliseconds (Cooldown before GSR can be re-applied after firing)
    removeOnWater = false,      -- If true, GSR is removed when player enters water. (Continuously checked on client, may affect performance)
    removeItem = {
        active = true,
        itemName = "alchol",
        chance = 100,
        showRemoveStatus = true, -- When true, player is notified about GSR removal status after using the item
        progressBar = {
            active = true,
            time = 30000,
            canCancel = true,
            animation = {
                animDict = "missheist_agency3aig_23",
                anim = "urinal_sink_loop",
            },
        },
    },
    ignoredWeapons = { -- Add weapons here that should not trigger GSR
        `WEAPON_STUNGUN`,
        `WEAPON_FIREEXTINGUISHER`,
        `WEAPON_PETROLCAN`,
        `WEAPON_HAZARDCAN`,
        `WEAPON_SNOWBALL`,
        `WEAPON_BALL`,
        `WEAPON_FLARE`,
        `WEAPON_SMOKEGRENADE`,
    },
    controlGsr = {
        active = true,
        dist = 2.5,           -- Maximum distance between players when performing a GSR check
        commands = { "gsr" }, -- GSR check command (for police)
        askToTarget = true,   -- If true, target player receives a confirmation prompt before GSR check
        progressBar = {
            active = true,
            time = 5000,
            canCancel = true,
            animation = {
                animDict = "amb@world_human_tourist_map@male@base",
                anim = "base",
            },
            prop = {
                model    = 'prop_cs_tablet',
                bone     = 28422,
                coords   = { 0.0, -0.03, 0.0 },
                rotation = { 20.0, -90.0, 0.0 },
            }
        },
    }
}

Last updated