Weapons: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m Removed ugly underscore from "Death_Reasons"
m Added - in blank spaces of the table, so it looks a bit nicer
Line 12: Line 12:
! rowspan="2" | 0
! rowspan="2" | 0
! rowspan="2" | Hand
! rowspan="2" | Hand
| [[Image:Fist.png]] || align="left" | Fist || 0 || ||
| [[Image:Fist.png]] || align="left" | Fist || 0 || - || -
| rowspan="2" |
| rowspan="2" | -
|-
|-
| [[Image:Knuckle.png]] || align="left" | Brassknuckle || 1 || 331 ||
| [[Image:Knuckle.png]] || align="left" | Brassknuckle || 1 || 331 || -
|-
|-
! rowspan="8" | 1
! rowspan="8" | 1
! rowspan="8" | Melee
! rowspan="8" | Melee
| [[Image:Golfclub.png]] || align="left" | Golfclub || 2 || 333 ||
| [[Image:Golfclub.png]] || align="left" | Golfclub || 2 || 333 || -
| rowspan="8" |
| rowspan="8" | -
|-
|-
| [[Image:Nitestik.png]] || align="left" | Nightstick || 3 || 334 ||
| [[Image:Nitestik.png]] || align="left" | Nightstick || 3 || 334 || -
|-
|-
| [[Image:Knife.png]] || align="left" | Knife || 4 || 335 ||
| [[Image:Knife.png]] || align="left" | Knife || 4 || 335 || -
|-
|-
| [[Image:Bat.png]] || align="left" | Bat || 5 || 336 ||
| [[Image:Bat.png]] || align="left" | Bat || 5 || 336 || -
|-
|-
| [[Image:Shovel.png]] || align="left" | Shovel || 6 || 337 ||
| [[Image:Shovel.png]] || align="left" | Shovel || 6 || 337 || -
|-
|-
| [[Image:Poolcue.png]] || align="left" | Poolstick || 7 || 338 ||
| [[Image:Poolcue.png]] || align="left" | Poolstick || 7 || 338 || -
|-
|-
| [[Image:Katana.png]] || align="left" | Katana || 8 || 339 ||
| [[Image:Katana.png]] || align="left" | Katana || 8 || 339 || -
|-
|-
| [[Image:Saw.png]] || align="left" | Chainsaw || 9 || 341 ||
| [[Image:Saw.png]] || align="left" | Chainsaw || 9 || 341 || -
|-
|-
! rowspan="3" | 2
! rowspan="3" | 2
Line 110: Line 110:
! rowspan="5" | 10
! rowspan="5" | 10
! rowspan="5" | Gifts
! rowspan="5" | Gifts
| [[Image:Dildo1.png]] || align="left" | Dildo || 10 || 321 ||
| [[Image:Dildo1.png]] || align="left" | Dildo || 10 || 321 || -
| rowspan="5" |
| rowspan="5" | -
|-
|-
| [[Image:Dildo2.png]] || align="left" | Dildo || 11 || 322 ||
| [[Image:Dildo2.png]] || align="left" | Dildo || 11 || 322 || -
|-
|-
| [[Image:Vibe1.png]] || align="left" | Vibrator || 12 || 323 ||
| [[Image:Vibe1.png]] || align="left" | Vibrator || 12 || 323 || -
|-
|-
| [[Image:Flowers.png]] || align="left" | Flower || 14 || 325 ||
| [[Image:Flowers.png]] || align="left" | Flower || 14 || 325 || -
|-
|-
| [[Image:Cane.png]] || align="left" | Cane || 15 || 326 ||
| [[Image:Cane.png]] || align="left" | Cane || 15 || 326 || -
|-
|-
! rowspan="3" | 11
! rowspan="3" | 11
! rowspan="3" | Special 2
! rowspan="3" | Special 2
| [[Image:Irgoggle.png]] || align="left" | Nightvision || 44 || 368 ||
| [[Image:Irgoggle.png]] || align="left" | Nightvision || 44 || 368 || -
| rowspan="3" |
| rowspan="3" | -
|-
|-
| [[Image:Irgoggle.png]] || align="left" | Infrared || 45 || 369 ||
| [[Image:Irgoggle.png]] || align="left" | Infrared || 45 || 369 || -
|-
|-
| [[Image:Paracute.png]] || align="left" | Parachute || 46 || 371 ||
| [[Image:Paracute.png]] || align="left" | Parachute || 46 || 371 || -
|-
|-
! rowspan="1" | 12
! rowspan="1" | 12
! rowspan="1" | Satchel Detonator
! rowspan="1" | Satchel Detonator
| [[Image:Bomb.png]] || align="left" | Bomb || 40 || 364 ||
| [[Image:Bomb.png]] || align="left" | Bomb || 40 || 364 || -
| rowspan="1" |
| rowspan="1" | -
|}
|}



Revision as of 13:12, 23 July 2016

Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.

[[{{{image}}}|link=|]] Note:
  • 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 default MTA server package 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.
  • Name is compatible with functions getWeaponNameFromID, getWeaponIDFromName.
Slot Type Image Name ID Model ID Clip Sharing slot ammo
0 Hand Fist 0 - - -
Brassknuckle 1 331 -
1 Melee Golfclub 2 333 - -
Nightstick 3 334 -
Knife 4 335 -
Bat 5 336 -
Shovel 6 337 -
Poolstick 7 338 -
Katana 8 339 -
Chainsaw 9 341 -
2 Handguns Colt 45 22 346 17 (34) No
Replacing handgun resets slot 2 ammo
Silenced 23 347 17
Deagle 24 348 7
3 Shotguns Shotgun 25 349 1 Yes
Sawed-off 26 350 2 (4)
Combat Shotgun 27 351 7
4 Sub-Machine Guns Uzi 28 352 50 (100) Yes
MP5 29 353 30
Tec-9 32 372 50 (100)
5 Assault Rifles AK-47 30 355 30 Yes
M4 31 356 50
6 Rifles Rifle 33 357 1 No
Replacing rifle resets slot 6 ammo
Sniper 34 358 1
7 Heavy Weapons Rocket Launcher 35 359 1 No
Replacing heavy weapon resets slot 7 ammo
Rocket Launcher HS 36 360 1
Flamethrower 37 361 50
Minigun 38 362 500
8 Projectiles Grenade 16 342 1 No
Replacing projectile resets slot 8 ammo
Teargas 17 343 1
Molotov 18 344 1
Satchel 39 363 1
9 Special 1 Spraycan 41 365 500 No
Replacing slot 9 weapon resets slot 9 ammo
Fire Extinguisher 42 366 500
Camera 43 367 36
10 Gifts Dildo 10 321 - -
Dildo 11 322 -
Vibrator 12 323 -
Flower 14 325 -
Cane 15 326 -
11 Special 2 Nightvision 44 368 - -
Infrared 45 369 -
Parachute 46 371 -
12 Satchel Detonator Bomb 40 364 - -

Client Functions



Server Function