- This topic has 4 replies, 2 voices, and was last updated 13 years, 7 months ago by .
Weapons script?
Kleeth
See various topics before everyday to create new would like help with lua codes for weapons
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?
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)
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.
