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) Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
Castillo Posted May 11, 2015 Posted May 11, 2015 I don't think there's anything you can do to change that. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
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 Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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. Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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! Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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! Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
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