Configuration

The configuration options are listed below, with no additional explanations provided on this page as the code comments thoroughly explain each option.

config.lua

return {
    debug = false,

    -- Global jam settings
    global = {
        enabled = true,
        defaultChance = 20.0,             -- Default jam chance percentage (0-100)
        checkInterval = 0,                -- Milliseconds between jam checks (0 = every shot)
        jamDuration = 1000,              -- How long before you can clear the jam (ms)
        clearJamKey = 51,                 -- Key to clear jam (https://docs.fivem.net/docs/game-references/controls/)
    },

    -- Notification settings
    notifications = {
        onJam = true,                     -- Show notification when weapon jams
        onClear = true,                   -- Show notification when jam is cleared
        type = 'error',                   -- Notification type for jam
        position = 'top-right',           -- Notification position
    },

    -- Visual/Audio effects when jammed
    effects = {
        screenShake = true,               -- Screen shake on jam
        shakeIntensity = 0.5,             -- Shake intensity (0.0-1.0)
        sound = true,                     -- Play sound on jam
        soundName = 'WEAPON_PURCHASE',    -- Sound name
        soundSet = 'HUD_AMMO_SHOP_SOUNDSET', -- Sound set
    },

    -- Clearing jam settings
    clearJam = {
        successChance = 25,               -- Chance to successfully clear jam per attempt (0-100)
        cooldown = 500,                   -- Cooldown between clear attempts (ms)
        anim = {
            dict = 'anim@weapons@first_person@aim_rng@generic@pistol@singleshot@str',
            clip = 'reload_aim',
            duration = 750,
            blendIn = 2.0,
            blendOut = 2.0,
            flag = 51,
        },
    },
}

config_whitelisted.lua

config_weapons.lua

config_weapongroups.lua

Last updated