Home / Forums / Modders Corner / Mafia Editing / Mod Help / Weapons script?

Weapons script?

Home / Forums / Modders Corner / Mafia Editing / Mod Help / Weapons script?

4 replies
13 years, 7 months ago
#6766

I’m looking for a script that will give you every weapon in the game along with ammo.

13 years, 7 months ago
#13792

Kleeth

See various topics before everyday to create new would like help with lua codes for weapons

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?

13 years, 7 months ago
#13794

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)

13 years, 7 months ago
#13795

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)

Ah, I see. Thanks.

  • You must be logged in to reply to this topic.