Weapons
Jump to navigation
Jump to search
Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.
- NOTES:
- Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.
- GTASA weapon stats will affect movement, accuracy, damage, and dual wield capability. See SetPedStat to change these stats. The MTA server comes with a resource called "defaultStats"
that sets GTASA weapon stats to 999. See the weapon stats link for more info.
- For death reasons, especially in event handlers for onPlayerWasted or similar, also have a look at the Death_Reasons.
Weapon | ID | Clip | Model ID | Weapon | ID | Clip | Model ID | ||
---|---|---|---|---|---|---|---|---|---|
Slot 0: No Weapon | Fist | 0 | Slot 6: Rifles | Country Rifle | 33 | 1 | 357 | ||
Brass Knuckles | 1 | 331 | Sniper Rifle | 34 | 1 | 358 | |||
Slot 1: Melee | Golf Club | 2 | 333 | Slot 7: Heavy Weapons | Rocket Launcher | 35 | 1 | 359 | |
Nightstick | 3 | 334 | Heat-Seeking RPG | 36 | 1 | 360 | |||
Knife | 4 | 335 | Flamethrower | 37 | 50 | 361 | |||
Baseball Bat | 5 | 336 | Minigun | 38 | 500 | 362 | |||
Shovel | 6 | 337 | Slot 8: Projectiles | Grenade | 16 | 1 | 342 | ||
Pool Cue | 7 | 338 | Tear Gas | 17 | 1 | 343 | |||
Katana | 8 | 339 | Molotov Cocktails | 18 | 1 | 344 | |||
Chainsaw | 9 | 341 | Satchel Charges | 39 | 1 | 363 | |||
Slot 2: Handguns | Pistol | 22 | 17 (34) | 346 | Slot 9: Special 1 | Spraycan | 41 | 500 | 365 |
Silenced Pistol | 23 | 17 | 347 | Fire Extinguisher | 42 | 500 | 366 | ||
Desert Eagle | 24 | 7 | 348 | Camera | 43 | 36 | 367 | ||
Slot 3: Shotguns | Shotgun | 25 | 1 | 349 | Slot 10: Gifts/Other | Long Purple Dildo | 10 | 321 | |
Sawn-Off Shotgun | 26 | 2 (4) | 350 | Short tan Dildo | 11 | 322 | |||
SPAZ-12 Combat Shotgun | 27 | 7 | 351 | Vibrator | 12 | 323 | |||
Slot 4: Sub-Machine Guns | Uzi | 28 | 50 (100) | 352 | Flowers | 14 | 325 | ||
MP5 | 29 | 30 | 353 | Cane | 15 | 326 | |||
TEC-9 | 32 | 50 (100) | 372 | Slot 11: Special 2 | Night-Vision Goggles | 44 | 368 | ||
Slot 5: Assault Rifles | AK-47 | 30 | 30 | 355 | Infrared Goggles | 45 | 369 | ||
M4 | 31 | 50 | 356 | Parachute | 46 | 371 | |||
Slot 12: Satchel Detonator | Satchel Detonator | 40 | 364 |
Client Functions
- Shared
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty