GetRecoilStep

Return the current recoil step of the specified weapon (every time the weapon is fired, the recoil step is increased), the recoil step can be setted in Config.Patterns

Argument
Data Type
Nedeed
Default
Description

weapon

number

-

The weapon hash

Returns
Type
Description

number

The recoil step of the weapon

Example
local retval, weapon = GetCurrentPedWeapon(PlayerPedId())

local recoilStep = exports["utility_weapons"]:GetRecoilStep(weapon)

Last updated

Was this helpful?