Jump to content

how to change change fires per seconds of weapons


Recommended Posts

On 08/05/2023 at 19:58, Topperx said:

Is there any way to change fires per seconds of weapons ?

use getWeaponProperty
 

function setWeaponFireRate(weaponID, fireRate)
    local weapon = getWeaponProperty(weaponID, "poor", "maximum_clip_ammo")
    setWeaponProperty(weaponID, "pro", "maximum_clip_ammo", weapon/fireRate)
end

setWeaponFireRate(22, 3) -- Changes the fire rate of the pistol to shoot 3 rounds per second.

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...