Weapons: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
ThePiotrek (talk | contribs)
mNo edit summary
Lexr128 (talk | contribs)
Wiki restyling, addition images
Line 1: Line 1:
'''Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.'''
Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.
<br>
{{Note|
*''NOTES:
*Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.
**''Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.''
*GTASA [[Weapon_skill_levels|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.
**''GTASA [[Weapon_skill_levels|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]].
**''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]].
<br>
}}
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;"
{|class="wikitable sortable" style="text-align:center; margin: 1em auto 1em auto; border:1px solid black"
|-
|-
! width="50" style="background:#8f8f8f;"| Slot
! Slot || class="unsortable" | Type || class="unsortable" | Image || Name || ID || class="unsortable" | Model ID || class="unsortable" | Clip || class="unsortable" | Sharing slot ammo
! width="150" style="background:#8f8f8f;"| Type
! width="250" scope="col" style="background:#8f8f8f;"| Weapon
! width="50" scope="col" style="background:#8f8f8f;"| ID
! width="70" scope="col" style="background:#8f8f8f;"| Clip
! width="70" scope="col" style="background:#8f8f8f;"| Model ID
! width="300" scope="col" style="background:#8f8f8f;"| Slot ammo shared?
|-
|-
! rowspan="2" scope="row" style="background:#cfcfcf;"|0
! rowspan="2" | 0
! rowspan="2" scope="row" style="background:#cfcfcf;"|Hand
! rowspan="2" | Hand
|style="background:#cfcfcf;"|Fist
| || align="left" | Fist || 0 || ||
|style="background:#cfcfcf;"|0
| rowspan="2" |
|style="background:#cfcfcf;" align="center" scope="col" |
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;" rowspan="2" |
|-
|-
|style="background:#cfcfcf;"|Brass Knuckles
| [[Image:Knuckle.png]] || align="left" | Brassknuckle || 1 || 331 ||
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|331
|-
|-
! rowspan="8" scope="row" style="background:#efefef;"|1
! rowspan="8" | 1
! rowspan="8" scope="row" style="background:#efefef;"|Melee
! rowspan="8" | Melee
|style="background:#efefef;"|Golf Club
| [[Image:Golfclub.png]] || align="left" | Golfclub || 2 || 333 ||
|style="background:#efefef;"|2
| rowspan="8" |
|style="background:#efefef;"|
|style="background:#efefef;"|333
|rowspan="8" style="background:#efefef;" |
|-
|-
|style="background:#efefef;"|Nightstick
| [[Image:Nitestik.png]] || align="left" | Nightstick || 3 || 334 ||
|style="background:#efefef;"|3
|style="background:#efefef;"|
|style="background:#efefef;"|334
|-
|-
|style="background:#efefef;"|Knife
| [[Image:Knife.png]] || align="left" | Knife || 4 || 335 ||
|style="background:#efefef;"|4
|style="background:#efefef;"|
|style="background:#efefef;"|335
|-
|-
|style="background:#efefef;"|Baseball Bat
| [[Image:Bat.png]] || align="left" | Bat || 5 || 336 ||
|style="background:#efefef;"|5
|style="background:#efefef;"|
|style="background:#efefef;"|336
|-
|-
|style="background:#efefef;"|Shovel  
| [[Image:Shovel.png]] || align="left" | Shovel || 6 || 337 ||
|style="background:#efefef;"|6
|style="background:#efefef;"|
|style="background:#efefef;"|337
|-
|-
|style="background:#efefef;"|Pool Cue
| [[Image:Poolcue.png]] || align="left" | Poolstick || 7 || 338 ||
|style="background:#efefef;"|7
|style="background:#efefef;"|
|style="background:#efefef;"|338
|-
|-
|style="background:#efefef;"|Katana  
| [[Image:Katana.png]] || align="left" | Katana || 8 || 339 ||
|style="background:#efefef;"|8
|style="background:#efefef;"|
|style="background:#efefef;"|339
|-
|-
|style="background:#efefef;"|Chainsaw  
| [[Image:Saw.png]] || align="left" | Chainsaw || 9 || 341 ||
|style="background:#efefef;"|9
|style="background:#efefef;"|
|style="background:#efefef;"|341
|-
|-
! rowspan="3" scope="row" style="background:#cfcfcf;"|2
! rowspan="3" | 2
! rowspan="3" scope="row" style="background:#cfcfcf;"|Handguns
! rowspan="3" | Handguns
|style="background:#cfcfcf;"|Pistol
| [[Image:Colt45.png]] || align="left" | Colt 45 || 22 || 346 || 17 (34)
|style="background:#cfcfcf;"|22
| rowspan="3" | '''No'''<br/>''Replacing handgun resets slot 2 ammo''
|style="background:#cfcfcf;"|17 (34)
|style="background:#cfcfcf;"|346
|rowspan="3" style="background:#cfcfcf;" | '''No'''<br/>''Replacing handgun resets slot 2 ammo''
|-
|-
|style="background:#cfcfcf;"|Silenced Pistol
| [[Image:Silenced.png]] || align="left" | Silenced || 23 || 347 || 17
|style="background:#cfcfcf;"|23
|style="background:#cfcfcf;"|17
|style="background:#cfcfcf;"|347
|-
|-
|style="background:#cfcfcf;"|Desert Eagle
| [[Image:Deagle.png]] || align="left" | Deagle || 24 || 348 || 7
|style="background:#cfcfcf;"|24
|style="background:#cfcfcf;"|7
|style="background:#cfcfcf;"|348
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"|3
! rowspan="3" | 3
! rowspan="3" scope="row" style="background:#efefef;"|Shotguns
! rowspan="3" | Shotguns
|style="background:#efefef;"|Shotgun
| [[Image:Shotgun.png]] || align="left" | Shotgun || 25 || 349 || 1
|style="background:#efefef;"|25
| rowspan="3" | Yes
|style="background:#efefef;"|1
|style="background:#efefef;"|349
|rowspan="3" style="background:#efefef;" | Yes
|-
|-
|style="background:#efefef;"|Sawn-Off Shotgun
| [[Image:Sawnoff.png]] || align="left" | Sawed-off || 26 || 350 || 2 (4)
|style="background:#efefef;"|26
|style="background:#efefef;"|2 (4)
|style="background:#efefef;"|350
|-
|-
|style="background:#efefef;"|SPAZ-12 Combat Shotgun
| [[Image:Spas12.png]] || align="left" | Combat Shotgun || 27 || 351 || 7
|style="background:#efefef;"|27
|style="background:#efefef;"|7
|style="background:#efefef;"|351
|-
|-
! rowspan="3" scope="row" style="background:#cfcfcf;"|4
! rowspan="3" | 4
! rowspan="3" scope="row" style="background:#cfcfcf;"|Sub-Machine Guns
! rowspan="3" | Sub-Machine Guns
|style="background:#cfcfcf;"|Uzi
| [[Image:Mac10.png]] || align="left" | Uzi || 28 || 352 || 50 (100)
|style="background:#cfcfcf;"|28
| rowspan="3" | Yes
|style="background:#cfcfcf;"|50 (100)
|style="background:#cfcfcf;"|352
|rowspan="3" style="background:#cfcfcf;" | Yes
|-
|-
|style="background:#cfcfcf;"|MP5
| [[Image:Mp5.png]] || align="left" | MP5 || 29 || 353 || 30
|style="background:#cfcfcf;"|29
|style="background:#cfcfcf;"|30
|style="background:#cfcfcf;"|353
|-
|-
|style="background:#cfcfcf;"|TEC-9
| [[Image:Tec9.png]] || align="left" | Tec-9 || 32 || 372 || 50 (100)
|style="background:#cfcfcf;"|32
|style="background:#cfcfcf;"|50 (100)
|style="background:#cfcfcf;"|372
|-
|-
! rowspan="2" scope="row" style="background:#efefef;"|5
! rowspan="2" | 5
! rowspan="2" scope="row" style="background:#efefef;"|Assault Rifles
! rowspan="2" | Assault Rifles
|style="background:#efefef;"|AK-47
| [[Image:Ak47.png]] || align="left" | AK-47 || 30 || 355 || 30
|style="background:#efefef;"|30
| rowspan="2" | Yes
|style="background:#efefef;"|30
|style="background:#efefef;"|355
|rowspan="2" style="background:#efefef;" | Yes
|-
|-
|style="background:#efefef;"|M4
| [[Image:M4.png]] || align="left" | M4 || 31 || 356 || 50
|style="background:#efefef;"|31
|style="background:#efefef;"|50
|style="background:#efefef;"|356
|-
|-
! rowspan="2" cope="row" style="background:#cfcfcf;"|6
! rowspan="2" | 6
! rowspan="2" cope="row" style="background:#cfcfcf;"|Rifles
! rowspan="2" | Rifles
|style="background:#cfcfcf;"|Country Rifle
| [[Image:Rifle.png]] || align="left" | Rifle || 33 || 357 || 1
|style="background:#cfcfcf;"|33
| rowspan="2" | '''No'''<br/>''Replacing rifle resets slot 6 ammo''
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|357
|rowspan="2" style="background:#cfcfcf;" | '''No'''<br/>''Replacing rifle resets slot 6 ammo''
|-
|-
|style="background:#cfcfcf;"|Sniper Rifle
| [[Image:Sniper.png]] || align="left" | Sniper || 34 || 358 || 1
|style="background:#cfcfcf;"|34
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|358
|-
|-
! rowspan="4" scope="row" style="background:#efefef;"|7
! rowspan="4" | 7
! rowspan="4" scope="row" style="background:#efefef;"|Heavy Weapons
! rowspan="4" | Heavy Weapons
|style="background:#efefef;"|Rocket Launcher
| [[Image:Rocketla.png]] || align="left" | Rocket Launcher || 35 || 359 || 1
|style="background:#efefef;"|35
| rowspan="4" | '''No'''<br/>''Replacing heavy weapon resets slot 7 ammo''
|style="background:#efefef;"|1
|style="background:#efefef;"|359
|rowspan="4" style="background:#efefef;" | '''No'''<br/>''Replacing heavy weapon resets slot 7 ammo''
|-
|-
|style="background:#efefef;"|Heat-Seeking RPG
| [[Image:Heatseek.png]] || align="left" | Rocket Launcher HS || 36 || 360 || 1
|style="background:#efefef;"|36
|style="background:#efefef;"|1
|style="background:#efefef;"|360
|-
|-
|style="background:#efefef;"|Flamethrower
| [[Image:Flame.png]] || align="left" | Flamethrower || 37 || 361 || 50
|style="background:#efefef;"|37
|style="background:#efefef;"|50
|style="background:#efefef;"|361
|-
|-
|style="background:#efefef;"|Minigun
| [[Image:Minigun.png]] || align="left" | Minigun || 38 || 362 || 500
|style="background:#efefef;"|38
|style="background:#efefef;"|500
|style="background:#efefef;"|362
|-
|-
! rowspan="4" scope="row" style="background:#cfcfcf;"|8
! rowspan="4" | 8
! rowspan="4" scope="row" style="background:#cfcfcf;"|Projectiles
! rowspan="4" | Projectiles
|style="background:#cfcfcf;"|Grenade  
| [[Image:Grenade.png]] || align="left" | Grenade || 16 || 342 || 1
|style="background:#cfcfcf;"|16
| rowspan="4" | '''No'''<br/>''Replacing projectile resets slot 8 ammo''
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|342
|rowspan="4" style="background:#cfcfcf;" | '''No'''<br/>''Replacing projectile resets slot 8 ammo''
|-
|-
|style="background:#cfcfcf;"|Tear Gas
| [[Image:Teargas.png]] || align="left" | Teargas || 17 || 343 || 1
|style="background:#cfcfcf;"|17
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|343
|-
|-
|style="background:#cfcfcf;"|Molotov Cocktails
| [[Image:Molotov.png]] || align="left" | Molotov || 18 || 344 || 1
|style="background:#cfcfcf;"|18
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|344
|-
|-
|style="background:#cfcfcf;"|Satchel Charges
| [[Image:Satchel.png]] || align="left" | Satchel || 39 || 363 || 1
|style="background:#cfcfcf;"|39
|style="background:#cfcfcf;"|1
|style="background:#cfcfcf;"|363
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"|9
! rowspan="3" | 9
! rowspan="3" scope="row" style="background:#efefef;"|Special 1
! rowspan="3" | Special 1
|style="background:#efefef;"|Spraycan  
| [[Image:Spraycan.png]] || align="left" | Spraycan || 41 || 365 || 500
|style="background:#efefef;"|41
| rowspan="3" | '''No'''<br/>''Replacing slot 9 weapon resets slot 9 ammo''
|style="background:#efefef;"|500
|style="background:#efefef;"|365
|rowspan="3" style="background:#efefef;" | '''No'''<br/>''Replacing slot 9 weapon resets slot 9 ammo''
|-
|-
|style="background:#efefef;"|Fire Extinguisher
| [[Image:Fire_ex.png]] || align="left" | Fire Extinguisher || 42 || 366 || 500
|style="background:#efefef;"|42
|style="background:#efefef;"|500
|style="background:#efefef;"|366
|-
|-
|style="background:#efefef;"|Camera
| [[Image:Camera.png]] || align="left" | Camera || 43 || 367 || 36
|style="background:#efefef;"|43
|style="background:#efefef;"|36
|style="background:#efefef;"|367
|-
|-
! rowspan="5" scope="row" style="background:#cfcfcf;"|10
! rowspan="5" | 10
! rowspan="5" scope="row" style="background:#cfcfcf;"|Gifts/Other
! rowspan="5" | Gifts
|style="background:#cfcfcf;"|Long Purple Dildo
| [[Image:Dildo1.png]] || align="left" | Dildo || 10 || 321 ||
|style="background:#cfcfcf;"|10
| rowspan="5" |
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|321
|rowspan="5" style="background:#cfcfcf;" |
|-
|-
|style="background:#cfcfcf;"|Short tan Dildo
| [[Image:Dildo2.png]] || align="left" | Dildo || 11 || 322 ||
|style="background:#cfcfcf;"|11
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|322
|-
|-
|style="background:#cfcfcf;"|Vibrator  
| [[Image:Vibe1.png]] || align="left" | Vibrator || 12 || 323 ||
|style="background:#cfcfcf;"|12
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|323
|-
|-
|style="background:#cfcfcf;"|Flowers
| [[Image:Flowers.png]] || align="left" | Flower || 14 || 325 ||
|style="background:#cfcfcf;"|14
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|325
|-
|-
|style="background:#cfcfcf;"|Cane  
| [[Image:Cane.png]] || align="left" | Cane || 15 || 326 ||
|style="background:#cfcfcf;"|15
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|326
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"|11
! rowspan="3" | 11
! rowspan="3" scope="row" style="background:#efefef;"|Special 2
! rowspan="3" | Special 2
|style="background:#efefef;"|Night-Vision Goggles
| [[Image:Irgoggle.png]] || align="left" | Nightvision || 44 || 368 ||
|style="background:#efefef;"|44
| rowspan="3" |
|style="background:#efefef;"|
|style="background:#efefef;"|368
|rowspan="3" style="background:#efefef;" |
|-
|-
|style="background:#efefef;"|Infrared Goggles
| [[Image:Irgoggle.png]] || align="left" | Infrared || 45 || 369 ||
|style="background:#efefef;"|45
|style="background:#efefef;"|
|style="background:#efefef;"|369
|-
|-
|style="background:#efefef;"|Parachute
| [[Image:Paracute.png]] || align="left" | Parachute || 46 || 371 ||
|style="background:#efefef;"|46
|style="background:#efefef;"|
|style="background:#efefef;"|371
|-
|-
! rowspan="1" scope="row" style="background:#cfcfcf;"|12
! rowspan="1" | 12
! rowspan="1" scope="row" style="background:#cfcfcf;"|Satchel Detonator
! rowspan="1" | Satchel Detonator
|style="background:#cfcfcf;"|Satchel Detonator
| [[Image:Bomb.png]] || align="left" | Bomb || 40 || 364 ||
|style="background:#cfcfcf;"|40
| rowspan="1" |
|style="background:#cfcfcf;"|
|style="background:#cfcfcf;"|364
|rowspan="1" style="background:#cfcfcf;" |
|}
|}



Revision as of 10:00, 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