Price. Posted March 24, 2015 Share Posted March 24, 2015 I wanted to make a sawed off gun reloading time a bit slower I tried using setWeaponClipAmmo and setWeaponProperty but neither of them working, so what to do? set a timer? if yes how? Link to comment
Mr.unpredictable. Posted March 24, 2015 Share Posted March 24, 2015 setWeaponProperty(<weapon id>, "std", "flag_anim_reload_long", <value>) Link to comment
Price. Posted March 25, 2015 Author Share Posted March 25, 2015 I tried this but doesnt work, sawn off still reloads same as Normal function ReloadWep() for i, player in pairs(getElementsByType("player")) do local weaponSlot0 = getPedWeapon( player ) if weaponSlot0 == 26 then if reloadPedWeapon ( player ) then setWeaponProperty(26, "std", "flag_anim_reload_long", 75) end end end end addEventHandler( "onResourceStart", getRootElement(), ReloadWep) I get bad argument @ 'SetWeaponproperty' expected bool at argument 4, got number '75' again, I'm trying to make sawn off reloading time takes longer time than usual! Link to comment
ahmedo01 Posted March 25, 2015 Share Posted March 25, 2015 "flag_anim_reload_long" - bool - Force a longer reload time It is boolean. It can be true or false. Link to comment
Price. Posted March 25, 2015 Author Share Posted March 25, 2015 yes I just realized now, uhm when I set it to true its the same doesnt take longer reloading but no errors 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