Weapons: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Removed ugly new line in the middle of a sentence)
No edit summary
Line 8: Line 8:
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;"
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;"
|-
|-
| width="230" style="background:#8f8f8f;"|
! width="50" style="background:#8f8f8f;"| Slot
! width="150" scope="col" style="background:#8f8f8f;"| Weapon
! width="150" style="background:#8f8f8f;"| Type
! width="250" scope="col" style="background:#8f8f8f;"| Weapon
! width="50" scope="col" style="background:#8f8f8f;"| ID
! width="50" scope="col" style="background:#8f8f8f;"| ID
! width="70" scope="col" style="background:#8f8f8f;"| Clip
! width="70" scope="col" style="background:#8f8f8f;"| Clip
Line 15: Line 16:
! width="300" scope="col" style="background:#8f8f8f;"| Slot ammo shared?
! width="300" scope="col" style="background:#8f8f8f;"| Slot ammo shared?
|-
|-
! rowspan="2" scope="row" style="background:#cfcfcf;"| Slot 0: No Weapon
! rowspan="2" scope="row" style="background:#cfcfcf;"|0
! rowspan="2" scope="row" style="background:#cfcfcf;"|Hand
|style="background:#cfcfcf;"|Fist
|style="background:#cfcfcf;"|Fist
|style="background:#cfcfcf;"|0
|style="background:#cfcfcf;"|0
Line 27: Line 29:
|style="background:#cfcfcf;"|331
|style="background:#cfcfcf;"|331
|-
|-
! rowspan="8" scope="row" style="background:#efefef;"| Slot 1: Melee
! rowspan="8" scope="row" style="background:#efefef;"|1
! rowspan="8" scope="row" style="background:#efefef;"|Melee
|style="background:#efefef;"|Golf Club
|style="background:#efefef;"|Golf Club
|style="background:#efefef;"|2
|style="background:#efefef;"|2
Line 69: Line 72:
|style="background:#efefef;"|341
|style="background:#efefef;"|341
|-
|-
! rowspan="3" scope="row" style="background:#cfcfcf;"| Slot 2: Handguns
! rowspan="3" scope="row" style="background:#cfcfcf;"|2
! rowspan="3" scope="row" style="background:#cfcfcf;"|Handguns
|style="background:#cfcfcf;"|Pistol  
|style="background:#cfcfcf;"|Pistol  
|style="background:#cfcfcf;"|22
|style="background:#cfcfcf;"|22
Line 86: Line 90:
|style="background:#cfcfcf;"|348
|style="background:#cfcfcf;"|348
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"| Slot 3: Shotguns
! rowspan="3" scope="row" style="background:#efefef;"|3
! rowspan="3" scope="row" style="background:#efefef;"|Shotguns
|style="background:#efefef;"|Shotgun
|style="background:#efefef;"|Shotgun
|style="background:#efefef;"|25
|style="background:#efefef;"|25
Line 103: Line 108:
|style="background:#efefef;"|351
|style="background:#efefef;"|351
|-
|-
! rowspan="3" scope="row" style="background:#cfcfcf;"| Slot 4: Sub-Machine Guns
! rowspan="3" scope="row" style="background:#cfcfcf;"|4
! rowspan="3" scope="row" style="background:#cfcfcf;"|Sub-Machine Guns
|style="background:#cfcfcf;"|Uzi
|style="background:#cfcfcf;"|Uzi
|style="background:#cfcfcf;"|28
|style="background:#cfcfcf;"|28
Line 120: Line 126:
|style="background:#cfcfcf;"|372
|style="background:#cfcfcf;"|372
|-
|-
! rowspan="2" scope="row" style="background:#efefef;"| Slot 5: Assault Rifles
! rowspan="2" scope="row" style="background:#efefef;"|5
! rowspan="2" scope="row" style="background:#efefef;"|Assault Rifles
|style="background:#efefef;"|AK-47
|style="background:#efefef;"|AK-47
|style="background:#efefef;"|30
|style="background:#efefef;"|30
Line 132: Line 139:
|style="background:#efefef;"|356
|style="background:#efefef;"|356
|-
|-
! rowspan="2" cope="row" style="background:#cfcfcf;"| Slot 6: Rifles
! rowspan="2" cope="row" style="background:#cfcfcf;"|6
! rowspan="2" cope="row" style="background:#cfcfcf;"|Rifles
|style="background:#cfcfcf;"|Country Rifle
|style="background:#cfcfcf;"|Country Rifle
|style="background:#cfcfcf;"|33
|style="background:#cfcfcf;"|33
Line 144: Line 152:
|style="background:#cfcfcf;"|358
|style="background:#cfcfcf;"|358
|-
|-
! rowspan="4" scope="row" style="background:#efefef;"| Slot 7: Heavy Weapons
! rowspan="4" scope="row" style="background:#efefef;"|7
! rowspan="4" scope="row" style="background:#efefef;"|Heavy Weapons
|style="background:#efefef;"|Rocket Launcher
|style="background:#efefef;"|Rocket Launcher
|style="background:#efefef;"|35
|style="background:#efefef;"|35
Line 166: Line 175:
|style="background:#efefef;"|362
|style="background:#efefef;"|362
|-
|-
! rowspan="4" scope="row" style="background:#cfcfcf;"| Slot 8: Projectiles
! rowspan="4" scope="row" style="background:#cfcfcf;"|8
! rowspan="4" scope="row" style="background:#cfcfcf;"|Projectiles
|style="background:#cfcfcf;"|Grenade  
|style="background:#cfcfcf;"|Grenade  
|style="background:#cfcfcf;"|16
|style="background:#cfcfcf;"|16
Line 188: Line 198:
|style="background:#cfcfcf;"|363
|style="background:#cfcfcf;"|363
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"| Slot 9: Special 1
! rowspan="3" scope="row" style="background:#efefef;"|9
! rowspan="3" scope="row" style="background:#efefef;"|Special 1
|style="background:#efefef;"|Spraycan  
|style="background:#efefef;"|Spraycan  
|style="background:#efefef;"|41
|style="background:#efefef;"|41
Line 205: Line 216:
|style="background:#efefef;"|367
|style="background:#efefef;"|367
|-
|-
! rowspan="5" scope="row" style="background:#cfcfcf;"| Slot 10: Gifts/Other
! rowspan="5" scope="row" style="background:#cfcfcf;"|10
! rowspan="5" scope="row" style="background:#cfcfcf;"|Gifts/Other
|style="background:#cfcfcf;"|Long Purple Dildo
|style="background:#cfcfcf;"|Long Purple Dildo
|style="background:#cfcfcf;"|10
|style="background:#cfcfcf;"|10
Line 232: Line 244:
|style="background:#cfcfcf;"|326
|style="background:#cfcfcf;"|326
|-
|-
! rowspan="3" scope="row" style="background:#efefef;"| Slot 11: Special 2
! rowspan="3" scope="row" style="background:#efefef;"|11
! rowspan="3" scope="row" style="background:#efefef;"|Special 2
|style="background:#efefef;"|Night-Vision Goggles
|style="background:#efefef;"|Night-Vision Goggles
|style="background:#efefef;"|44
|style="background:#efefef;"|44
Line 249: Line 262:
|style="background:#efefef;"|371
|style="background:#efefef;"|371
|-
|-
! rowspan="1" scope="row" style="background:#cfcfcf;"| Slot 12: Satchel Detonator
! rowspan="1" scope="row" style="background:#cfcfcf;"|12
! rowspan="1" scope="row" style="background:#cfcfcf;"|Satchel Detonator
|style="background:#cfcfcf;"|Satchel Detonator
|style="background:#cfcfcf;"|Satchel Detonator
|style="background:#cfcfcf;"|40
|style="background:#cfcfcf;"|40

Revision as of 18:06, 29 June 2016

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 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.


Slot Type Weapon ID Clip Model ID Slot ammo shared?
0 Hand Fist 0
Brass Knuckles 1 331
1 Melee Golf Club 2 333
Nightstick 3 334
Knife 4 335
Baseball Bat 5 336
Shovel 6 337
Pool Cue 7 338
Katana 8 339
Chainsaw 9 341
2 Handguns Pistol 22 17 (34) 346 No
Replacing handgun resets slot 2 ammo
Silenced Pistol 23 17 347
Desert Eagle 24 7 348
3 Shotguns Shotgun 25 1 349 Yes
Sawn-Off Shotgun 26 2 (4) 350
SPAZ-12 Combat Shotgun 27 7 351
4 Sub-Machine Guns Uzi 28 50 (100) 352 Yes
MP5 29 30 353
TEC-9 32 50 (100) 372
5 Assault Rifles AK-47 30 30 355 Yes
M4 31 50 356
6 Rifles Country Rifle 33 1 357 No
Replacing rifle resets slot 6 ammo
Sniper Rifle 34 1 358
7 Heavy Weapons Rocket Launcher 35 1 359 No
Replacing heavy weapon resets slot 7 ammo
Heat-Seeking RPG 36 1 360
Flamethrower 37 50 361
Minigun 38 500 362
8 Projectiles Grenade 16 1 342 No
Replacing projectile resets slot 8 ammo
Tear Gas 17 1 343
Molotov Cocktails 18 1 344
Satchel Charges 39 1 363
9 Special 1 Spraycan 41 500 365 No
Replacing slot 9 weapon resets slot 9 ammo
Fire Extinguisher 42 500 366
Camera 43 36 367
10 Gifts/Other Long Purple Dildo 10 321
Short tan Dildo 11 322
Vibrator 12 323
Flowers 14 325
Cane 15 326
11 Special 2 Night-Vision Goggles 44 368
Infrared Goggles 45 369
Parachute 46 371
12 Satchel Detonator Satchel Detonator 40 364

Client Functions



Server Function