Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: storm4710 on February 27, 2012, 10:51:18 PM

Title: Re: would like help with lua codes for weapons
Post by: storm4710 on February 27, 2012, 10:51:18 PM
hey guys




i am looking for somebody that can tell me the number codes for the weapons in lua codes




example


 




#lua game.game:GetActivePlayer():InventoryAddWeapon(10 ,200)




the weapon number is 10 its a mp40


 




would like to get as many weapon numbers as possible


 




regards Martin from Denmark
Title: Re: would like help with lua codes for weapons
Post by: crazypreacher on February 27, 2012, 11:01:21 PM
There is 22 pages of discution on melee weapons and you can find some videos




http]


 




[align=center:2p97y8jc]




<div></div> [/align:2p97y8jc] (//forum/14-mafia-mod-request/1035-mafia-ii-melee-weapons)
Title: Re: would like help with lua codes for weapons
Post by: storm4710 on February 28, 2012, 06:51:39 AM
thanks Crazypreacher




the weapon codes i am looking for has nothing to do with melee weapons


 




but i will look it through


 




#lua game.game:GetActivePlayer():InventoryAddWeapon(10
 ,200)




the weapon number is 10
 its a mp40


 




the Red
 is what i am looking after for all weapons
Title: Re: would like help with lua codes for weapons
Post by: zahar999 on February 28, 2012, 07:51:19 AM
storm4710


 




..:InventoryAddWeapon(2,42) -  ??? ?????? .38




..:InventoryAddWeapon(3,60) -  ??? ????? 96




..:InventoryAddWeapon(4,56) - Colt 1911




..:InventoryAddWeapon(5,96) - Colt 1911 (??????????)




..:InventoryAddWeapon(6,42) - Magnum .357




..:InventoryAddWeapon(8,56) -  ??? ?????




..:InventoryAddWeapon(9,120) - M3 Grease Gun




..:InventoryAddWeapon(10,128) - MP40




..:InventoryAddWeapon(11,150) - ??  ??? ?????  ??? ???? 1928




..:InventoryAddWeapon(12,120) - ??  ??? ????? ?1?1




..:InventoryAddWeapon(13,120) - ?? .38




..:InventoryAddWeapon(15,40) - ?1 Garand




..:InventoryAddWeapon(17,35) - K98




..:InventoryAddWeapon(20,6) -  ??? ????




..:InventoryAddWeapon(21,6) -  ??? ?????  ??? ?????
Title: Re: would like help with lua codes for weapons
Post by: storm4710 on February 28, 2012, 01:50:00 PM
..: InventoryAddWeapon (2,42) - .38 Revolver




..: InventoryAddWeapon (3,60) - 96 Handgun




..: InventoryAddWeapon (4,56) - Colt 1911




..: InventoryAddWeapon (5,96) - Colt 1911 (enhanced)




..: InventoryAddWeapon (6,42) - Magnum .357




..: InventoryAddWeapon (8,56) - Shotgun




..: InventoryAddWeapon (9,120) - M3 Grease Gun




..: InventoryAddWeapon (10,128) - MP40




..: InventoryAddWeapon (11,150) - PP Thompson model 1928




..: InventoryAddWeapon (12,120) - PP Thompson M1A1




..: InventoryAddWeapon (13,120) - PP .38




..: InventoryAddWeapon (15,40) - M1 Garand




..: InventoryAddWeapon (17,35) - K98




..: InventoryAddWeapon (20,6) - Grenades




..: InventoryAddWeapon (21,6) - Molotov Cocktail


 




just what i needed




thanks Zahar999