DRW Posted May 11, 2015 Posted May 11, 2015 So I'm making a simple script that sets a weapon dual wielded when a player is "pro". The problem is that anims don't work well, the weapons like AK47, Spaz12 and others keep their arms up and look like they aren't shooting in front of them. I want to make the weapons shoot like a Tec9 or a Uzi (Being able to run with the dual-wielded guns and having the same shooting and movin anims) addEventHandler ("onPlayerWeaponSwitch", getResourceRootElement(getThisResource()), function () setWeaponProperty(23,"pro","flags",0x000800) setWeaponProperty(24,"pro","flags",0x000800) setWeaponProperty(25,"pro","flags",0x000800) setWeaponProperty(26,"pro","flags",0x000800) setWeaponProperty(27,"pro","flags",0x000800) setWeaponProperty(28,"pro","flags",0x000800) setWeaponProperty(29,"pro","flags",0x000800) setWeaponProperty(30,"pro","flags",0x000800) setWeaponProperty(31,"pro","flags",0x000800) setWeaponProperty(33,"pro","flags",0x000800) setWeaponProperty(34,"pro","flags",0x000800) end)
Castillo Posted May 11, 2015 Posted May 11, 2015 I don't think there's anything you can do to change that.
DRW Posted May 11, 2015 Author Posted May 11, 2015 I don't think there's anything you can do to change that. Actually there is a resource that does that perfectly, but it's buggy and compiled, so the weapons sometimes stop being dual-wielded and things like that: https://community.multitheftauto.com/index.php?p= ... ls&id=5840
Walid Posted May 11, 2015 Posted May 11, 2015 try to use sth like that -- Example AK-47 setWeaponProperty(30, "pro", "flags", 2048) setWeaponProperty(30, "pro", "flags", 2)
DRW Posted May 11, 2015 Author Posted May 11, 2015 try to use sth like that -- Example AK-47 setWeaponProperty(30, "pro", "flags", 2048) setWeaponProperty(30, "pro", "flags", 2) Not working
Mr.unpredictable. Posted May 12, 2015 Posted May 12, 2015 try this untested setWeaponProperty(30, "pro", "flags", 0x000020) setWeaponProperty(30, "pro", "flags", 0x000800) setWeaponProperty(30, "pro", "flags", 0x000002) setWeaponProperty(30, "pro", "anim_group",13) setWeaponProperty(30, "pro", "accuracy",2000) ' I created something similar long back in mta 1.3, It allowed me to duel wield ak,m4 and olther weapon but it had a crash when i use 2 rocket. i'll look into resource folder when i'm free and send it to you.
DRW Posted May 12, 2015 Author Posted May 12, 2015 try this untested setWeaponProperty(30, "pro", "flags", 0x000020) setWeaponProperty(30, "pro", "flags", 0x000800) setWeaponProperty(30, "pro", "flags", 0x000002) setWeaponProperty(30, "pro", "anim_group",13) setWeaponProperty(30, "pro", "accuracy",2000) ' I created something similar long back in mta 1.3, It allowed me to duel wield ak,m4 and olther weapon but it had a crash when i use 2 rocket. i'll look into resource folder when i'm free and send it to you. It's not working very well, actually it does the same as before but now shows up only one weapon.
Mr.unpredictable. Posted May 12, 2015 Posted May 12, 2015 try this setWeaponProperty(30, "pro", "flags", 0x000020) setWeaponProperty(30, "pro", "flags", 0x000800) setWeaponProperty(30, "pro", "flags", 0x000002) setWeaponProperty(30, "pro", "flag_type_dual", true) setWeaponProperty(30, "pro", "accuracy",2000) It will make your ak duel wield and also let to run with that weapon. Edit: It is also working with Rpg's but you can't run with them.
DRW Posted May 12, 2015 Author Posted May 12, 2015 It seems to not work to me. It may be a problem of my server or something. Anyways thanks!
Mr.unpredictable. Posted May 12, 2015 Posted May 12, 2015 (edited) It seems to not work to me. It may be a problem of my server or something what error you are getting? also post your full code. Edited May 12, 2015 by Guest
ALw7sH Posted May 12, 2015 Posted May 12, 2015 the porblem may be from another script, so you should check your other scripts
Mr.unpredictable. Posted May 12, 2015 Posted May 12, 2015 the porblem may be from another script, so you should check your other scripts Or maybe he didn't change the ak stats to 1000 while testing it.
DRW Posted May 12, 2015 Author Posted May 12, 2015 Oh I got it, the problem is that I didn't put the min mta version because of the dual weapons flag. Thanks all!
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