sheenidgs Posted September 3, 2013 Share Posted September 3, 2013 Hi.... I wanna ask how to make one-handed weapon to two-handed. Btw, I have found something on weapon.dat. Is is possible to set it ? Sorry for my bad English Link to comment
Baseplate Posted September 3, 2013 Share Posted September 3, 2013 setWeaponProperty and use flags. Link to comment
sheenidgs Posted September 3, 2013 Author Share Posted September 3, 2013 setWeaponProperty and use flags. It's doesn't work because I've already tried it before. Link to comment
sheenidgs Posted September 4, 2013 Author Share Posted September 4, 2013 Post what you've tried, I've tried a few methods. First, i tried to change the stats to 5000 because colt_cop's skill level is at 5000. addEventHandler('onPlayerSpawn', root, function() if not setPedStat(source,22,5000) then outputChatBox ( "Failed to set stats number: 22 with value: 5000", player, 255, 0, 0, false ) end end ) But the function return false. Second, i tried to change the flags from colt_cop to colt45. Link -> http://i.imgur.com/YiLhNfE.png Then, i convert it to hex number with calc and place this code. addEventHandler('onPlayerSpawn', root, function() setWeaponProperty ( 22,"std","flags", 0x001B77 ) end ) But, the anim was going to be weird. Link to comment
Moderators IIYAMA Posted September 4, 2013 Moderators Share Posted September 4, 2013 try 999 Link to comment
sheenidgs Posted September 4, 2013 Author Share Posted September 4, 2013 try 999 It makes the colt to dual wield. Link to comment
Moderators IIYAMA Posted September 4, 2013 Moderators Share Posted September 4, 2013 nvm, I will help you soon after dinner. Postby abxf on Tue Sep 03, 2013 10:07 am setWeaponProperty and use flags. I created it just like he said, but it will not look nice. (the shoot animation) setWeaponProperty (22,"poor","flags",0x000002) --setPedStat(source,22,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