Client Functions
SetWeaponPitchReduction
Sets the pitch reduction value for weapon recoil.
exports["sd_weaponsystem"]:SetWeaponPitchReduction(pitchReduction)
pitchReduction
:number
- Pitch reduction percentage
SetWeaponShakeReduction
Sets the shake reduction value for weapon recoil.
exports["sd_weaponsystem"]:SetWeaponShakeReduction(shakeReduction)
shakeReduction
:number
- Shake reduction percentage
GetWeaponPitchReduction
Gets the current pitch reduction value.
exports["sd_weaponsystem"]:GetWeaponPitchReduction()
Return: number
- Current pitch reduction percentage
GetWeaponShakeReduction
Gets the current shake reduction value.
exports["sd_weaponsystem"]:GetWeaponShakeReduction()
Return: number
- Current shake reduction percentage
GetCurrentWeaponRecoil
Gets the current weapon's recoil data.
exports["sd_weaponsystem"]:GetCurrentWeaponRecoil()
Return: table|nil
- Recoil data table or nil if no weapon
GetCurrentFireMode
Gets the current fire mode of the weapon.
exports["sd_weaponsystem"]:GetCurrentFireMode()
Return: number|nil
- Fire mode (0=safety, 1=single, 2=burst, 3=fullauto) or nil