Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mod Help => Topic started by: Kleeth on July 14, 2012, 06:46:31 AM

Title: Weapons script?
Post by: Kleeth on July 14, 2012, 06:46:31 AM
I'm looking for a script that will give you every weapon in the game along with ammo.
Title: Weapons script?
Post by: zahar999 on July 14, 2012, 07:08:32 AM
Kleeth




See various topics before everyday to create new would like help with lua codes for weapons (//207qfv2a)
Title: Weapons script?
Post by: Kleeth on July 14, 2012, 07:10:23 AM
QuoteKleeth

See various topics before everyday to create new would like help with lua codes for weapons (//3t8xfgvd)


It looks like that script is missing a few weapons, and I'm still not sure how to add every weapon at once. Is there a site that features a list of LUA code for scripts?
Title: Weapons script?
Post by: zahar999 on July 14, 2012, 07:32:34 AM
Kleeth




it full list all weapons


 




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


 




that you do not understand




write so




game.game:GetActivePlayer():InventoryAddWeapon(11,150)


 




else team infinite ammo




game.game:GetActivePlayer():InventorySetUnlimitedAmmo(true)
Title: Weapons script?
Post by: Kleeth on July 14, 2012, 08:30:01 AM
QuoteKleeth

it full list all weapons


 




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


 




that you do not understand




write so




game.game:GetActivePlayer():InventoryAddWeapon(11,150)


 




else team infinite ammo




game.game:GetActivePlayer():InventorySetUnlimitedAmmo(true)


Ah, I see. Thanks.