Military Guy Posted April 3, 2020 Share Posted April 3, 2020 SetWeaponProperty does not work help please local cFunc = {} local cSetting = {} setWeaponProperty("sawed-off", "pro", "maximum_clip_ammo", 4) setWeaponProperty("sawed-off", "std", "maximum_clip_ammo", 4) setWeaponProperty("sawed-off", "poor", "maximum_clip_ammo", 4) Link to comment
Haxardous Posted April 3, 2020 Share Posted April 3, 2020 why you're applying 3 different properties at the same time? Lua runs from up to down also use: Link to comment
Military Guy Posted April 4, 2020 Author Share Posted April 4, 2020 16 hours ago, Haxardous said: why you're applying 3 different properties at the same time? Lua runs from up to down also use: THX MAN!!! Link to comment
Zorgman Posted April 5, 2020 Share Posted April 5, 2020 On 04/04/2020 at 00:24, Haxardous said: why you're applying 3 different properties at the same time? You do need to set the property separately for each of the three skill levels, so what he is doing is correct afaik... this being said I don't know why it wouldn't work, I never tried to increase ammo for sawed-off Link to comment
Moony Posted April 5, 2020 Share Posted April 5, 2020 Shouldn't the script use the weapon ID? Link to comment
jakson Posted April 5, 2020 Share Posted April 5, 2020 (edited) On 03/04/2020 at 22:15, Military Guy said: SetWeaponProperty does not work help please local cFunc = {} local cSetting = {} setWeaponProperty("sawed-off", "pro", "maximum_clip_ammo", 4) setWeaponProperty("sawed-off", "std", "maximum_clip_ammo", 4) setWeaponProperty("sawed-off", "poor", "maximum_clip_ammo", 4) --serverside addEventHandler ( "onResourceStart", root, function ( ) for _,skill in ipairs({"poor","std","pro"}) do setWeaponProperty("sawed-off", skill, "maximum_clip_ammo", 4) end end) heres a better way and please next time read wiki Edited April 5, 2020 by jakson 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