Jump to content

How to put Limit?


TheRock254

Recommended Posts

As the two guys above me said, use setWeaponProperty with the max_ammo property.

There is no such property listed on the wiki, so that wouldn't work.

The most basic way would be to check for the ammo of the player using getPedTotalAmmo and if that's bigger than 250 then set it to 250 using setWeaponAmmo. This should be done client-sided using timer maybe? As there is no suitable event really.

Edit: You actually can't set the ammo client-sided, well that's stupid.. you gotta do it server-sided.

Edited by Guest
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...