Skip to Content

Client

SetWeaponPitchReduction

Sets the weapon pitch reduction value.

exports["sd_weaponsystem"]:SetWeaponPitchReduction(pitchReduction)

Parameters:

ParameterTypeDescription
pitchReductionnumberPitch reduction value

Returns: boolean - true if successfully set


SetWeaponShakeReduction

Sets the weapon shake reduction value.

exports["sd_weaponsystem"]:SetWeaponShakeReduction(shakeReduction)

Parameters:

ParameterTypeDescription
shakeReductionnumberShake reduction value

Returns: boolean - true if successfully set


SetWeaponJitterReduction

Sets the weapon jitter reduction value.

exports["sd_weaponsystem"]:SetWeaponJitterReduction(jitterReduction)

Parameters:

ParameterTypeDescription
jitterReductionnumberJitter reduction value

Returns: boolean - true if successfully set


GetWeaponPitchReduction

Gets the current weapon pitch reduction value.

exports["sd_weaponsystem"]:GetWeaponPitchReduction()

Returns: number - Current pitch reduction value


GetWeaponShakeReduction

Gets the current weapon shake reduction value.

exports["sd_weaponsystem"]:GetWeaponShakeReduction()

Returns: number - Current shake reduction value


GetWeaponJitterReduction

Gets the current weapon jitter reduction value.

exports["sd_weaponsystem"]:GetWeaponJitterReduction()

Returns: number - Current jitter reduction value


GetWeaponRecoil

Gets the weapon recoil data.

exports["sd_weaponsystem"]:GetWeaponRecoil()

Returns: table - Weapon recoil data


GetWeaponFireMode

Gets the fire mode of a weapon.

exports["sd_weaponsystem"]:GetWeaponFireMode(slot)

Parameters:

ParameterTypeDescription
slotnumberWeapon slot (optional, uses current weapon if not provided)

Returns: number|nil, string|nil - Fire mode value and localized fire mode name, or nil if weapon not found


GetWeaponMaxDurability

Gets the maximum durability of a weapon.

exports["sd_weaponsystem"]:GetWeaponMaxDurability(slot)

Parameters:

ParameterTypeDescription
slotnumberWeapon slot (optional, uses current weapon if not provided)

Returns: number|nil - Maximum durability or nil if weapon not found


IsWeaponJammed

Checks if a weapon is jammed.

exports["sd_weaponsystem"]:IsWeaponJammed(slot)

Parameters:

ParameterTypeDescription
slotnumberWeapon slot (optional, uses current weapon if not provided)

Returns: boolean|nil - true if jammed, false if not, nil if weapon not found


HasAdvantagePeek

Checks if the player has advantage peek active.

exports["sd_weaponsystem"]:HasAdvantagePeek()

Returns: boolean - true if advantage peek is active


HasSwitchedPeek

Checks if the player has switched peek shoulder.

exports["sd_weaponsystem"]:HasSwitchedPeek()

Returns: boolean - true if peek shoulder is switched


IsSlingHidden

Checks if the weapon sling is hidden.

exports["sd_weaponsystem"]:IsSlingHidden()

Returns: boolean - true if sling is hidden


ToggleSling

Toggles the weapon sling visibility.

exports["sd_weaponsystem"]:ToggleSling(value)

Parameters:

ParameterTypeDescription
valuebooleanSet sling visibility (true to hide, false to show)

Returns: boolean - true if successfully toggled


SetGlobalDamageModifier

Sets a global damage modifier for a damage type.

exports["sd_weaponsystem"]:SetGlobalDamageModifier(globalType, damageModifier)

Parameters:

ParameterTypeDescription
globalTypestringDamage type: "melee", "weapon", or "vehicle"
damageModifiernumberDamage modifier value

Returns: boolean - true if successfully set


SetWeaponDamageModifier

Sets a damage modifier for a specific weapon.

exports["sd_weaponsystem"]:SetWeaponDamageModifier(weaponHash, damageModifier)

Parameters:

ParameterTypeDescription
weaponHashstring|numberWeapon hash or weapon name
damageModifiernumberDamage modifier value

Returns: boolean - true if successfully set

Last updated on