benwilkins Posted February 19, 2012 Share Posted February 19, 2012 I am trying to make a taser mod, Is it possible to set the silenced pistol to only have 2 bullets, then have to reload? Link to comment
Kenix Posted February 19, 2012 Share Posted February 19, 2012 2 bullets in clip you mean? https://wiki.multitheftauto.com/wiki/SetWeaponProperty Link to comment
benwilkins Posted February 19, 2012 Author Share Posted February 19, 2012 function doammo() setWeaponProperty(23, "pro", "maximum_clip_ammo", 2) setWeaponProperty(23, "std", "maximum_clip_ammo", 2) setWeaponProperty(23, "poor", "maximum_clip_ammo", 2) end addEventHandler("onClientResourceStart", getResourceRootElement(), doammo) What am I doing wrong? Link to comment
Kenix Posted February 19, 2012 Share Posted February 19, 2012 setWeaponProperty is server side function. https://wiki.multitheftauto.com/wiki/Scr ... troduction 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