Client
SetWeaponPitchReduction
Sets the weapon pitch reduction value.
exports["sd_weaponsystem"]:SetWeaponPitchReduction(pitchReduction)Parameters:
| Parameter | Type | Description |
|---|---|---|
pitchReduction | number | Pitch reduction value |
Returns: boolean - true if successfully set
SetWeaponShakeReduction
Sets the weapon shake reduction value.
exports["sd_weaponsystem"]:SetWeaponShakeReduction(shakeReduction)Parameters:
| Parameter | Type | Description |
|---|---|---|
shakeReduction | number | Shake reduction value |
Returns: boolean - true if successfully set
SetWeaponJitterReduction
Sets the weapon jitter reduction value.
exports["sd_weaponsystem"]:SetWeaponJitterReduction(jitterReduction)Parameters:
| Parameter | Type | Description |
|---|---|---|
jitterReduction | number | Jitter 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:
| Parameter | Type | Description |
|---|---|---|
slot | number | Weapon 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:
| Parameter | Type | Description |
|---|---|---|
slot | number | Weapon 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:
| Parameter | Type | Description |
|---|---|---|
slot | number | Weapon 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:
| Parameter | Type | Description |
|---|---|---|
value | boolean | Set 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:
| Parameter | Type | Description |
|---|---|---|
globalType | string | Damage type: "melee", "weapon", or "vehicle" |
damageModifier | number | Damage modifier value |
Returns: boolean - true if successfully set
SetWeaponDamageModifier
Sets a damage modifier for a specific weapon.
exports["sd_weaponsystem"]:SetWeaponDamageModifier(weaponHash, damageModifier)Parameters:
| Parameter | Type | Description |
|---|---|---|
weaponHash | string|number | Weapon hash or weapon name |
damageModifier | number | Damage modifier value |
Returns: boolean - true if successfully set