Jump to content

Dual wield flag


DRW

Recommended Posts

Posted

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) 

A648B1E1D710D756404A517C1E6195F7540A628B

tJ5zeFm.gif

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

Posted

I don't think there's anything you can do to change that.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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

tJ5zeFm.gif

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

Posted

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

Posted
try to use sth like that
-- Example AK-47 
setWeaponProperty(30, "pro", "flags", 2048) 
setWeaponProperty(30, "pro", "flags", 2) 

Not working

tJ5zeFm.gif

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

Posted

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.

Posted
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.

tJ5zeFm.gif

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

Posted

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.

0UtgSYI.jpg

Edit: It is also working with Rpg's but you can't run with them.

Posted

It seems to not work to me. It may be a problem of my server or something. Anyways thanks!

tJ5zeFm.gif

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

Posted

Oh I got it, the problem is that I didn't put the min mta version because of the dual weapons flag. Thanks all!

tJ5zeFm.gif

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...