Jump to content

Small question


Recommended Posts

Posted

What counter? You mean the time between each "throw"? If that's what you mean you may create a cooldowntimer:

cooldown = setTimer(function() end, 3000, 1) -- Timer object which will exist for 3 seconds 

After that you can check the event onClientWeaponFire and cancel it if the timer exist and the weapon is a molotov using

cancelEvent() 

Weapon id's can be found here. Good luck.

Posted
Well that's another thing then, not sure if that's possible but there are some ways to modify the weapon properties using this function: setWeaponProperty, but it won't be easy if it's even possible to do.

Thanks for you help.

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...