28WL Posted November 1, 2015 Share Posted November 1, 2015 Hi guys. Can someone tell me how I could make the current weapon disappear from hands right now if the clip is bigger than rockets for example in the inventory? I use client side. Can someone share the script? function checkWeaponAmmo() a = getPedWeapon( getLocalPlayer() ) c = getPedAmmoInClip ( getLocalPlayer() ) if ( a==35 ) then if c > getElementData(getLocalPlayer(),"rocket1") then setWeaponAmmo ( getLocalPlayer(), 35, 0, 0) -- Here is the problem. How I can resolve it? end end if ( a==36 ) then if c > getElementData(getLocalPlayer(),"rocket2") then setWeaponAmmo ( getLocalPlayer(), 36, 0, 0 ) -- Here is the problem. How I can resolve it? end end end setTimer(checkWeaponAmmo, 100, 0) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now