Weapons: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Cane was in the wrong category)
m (test)
Line 1: Line 1:
The weapon argument is an integer that refers to the GTASA weapon id list. The following values are valid:
'''Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.'''
 
''Note: I have also included amounts held in each weapon's ammo clip, to make it easier to determine exact clips.''
 
*'''Slot 0: No Weapon'''
**'''0:''' Fist
**'''1:''' Brass Knuckles - Model ID: 331
<br>
<br>
*'''Slot 1 : Melee'''
*''NOTE: GTASA [[Weapon_skill_levels|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.''
**'''2:''' Golf Club - Model ID: 333
{|border="1" cellpadding="5" cellspacing="0" align="left"
**'''3:''' Nightstick - Model ID: 334
|-
**'''4:''' Knife  - Model ID: 335
|
**'''5:''' Baseball Bat - Model ID: 336
! scope="col" style="background:#efefef;" | Weapon
**'''6:''' Shovel - Model ID: 337
! scope="col" style="background:#efefef;" | ID
**'''7:''' Pool Cue - Model ID: 338
! scope="col" style="background:#efefef;" | Clip Size
**'''8:''' Katana - Model ID: 339
! scope="col" style="background:#efefef;" | Dual?
**'''9:''' Chainsaw - Model ID: 341
! scope="col" style="background:#efefef;" | Model ID
<br>
|-
*'''Slot 2: Handguns'''
! scope="row" style="background:#efefef;" | Slot 0: No Weapon
**'''22:''' Pistol (17, dual 34) - Model ID: 346
|Fist
**'''23:''' Silenced Pistol (17) - Model ID: 347
|0
**'''24:''' Desert Eagle (7) - Model ID: 348
|N/A
<br>
|No
*'''Slot 3: Shotguns'''
|N/A
**'''25:''' Shotgun (1) - Model ID: 349
|-
**'''26:''' Sawn-Off Shotgun (2, dual 4) - Model ID: 350
! scope="row" style="background:#efefef;" |
**'''27:''' SPAZ-12 Combat Shotgun (7) - Model ID: 351
|Brass Knuckles
<br>
|1
*'''Slot 4: Sub-Machine Guns'''
|N/A
**'''28:''' Uzi (50, dual 100) - Model ID: 352
|No
**'''29:''' MP5 (30) - Model ID: 353
|331
**'''32:''' TEC-9 (50, dual 100) - Model ID: 372
|-
<br>
! scope="row" style="background:#efefef;" | Slot 1: Melee
*'''Slot 5: Assault Rifles'''
|Golf Club
**'''30:''' AK-47 (30) - Model ID: 355
|2
**'''31:''' M4 (50) - Model ID: 356
|N/A
<br>
|No
*'''Slot 6: Rifles'''
|333
**'''33:''' Country Rifle (1) - Model ID: 357
|-
**'''34:''' Sniper Rifle (1) - Model ID: 358
! scope="row" style="background:#efefef;" |
<br>
|Nightstick
*'''Slot 7: Heavy Weapons'''
|3
**'''35:''' Rocket Launcher (1) - Model ID: 359
|N/A
**'''36:''' Heat-Seeking RPG (1) - Model ID: 360
|No
**'''37:''' Flamethrower (50) - Model ID: 361
|334
**'''38:''' Minigun (500) - Model ID: 362
|-
<br>
! scope="row" style="background:#efefef;" |
*'''Slot 8: Projectiles'''
|Knife   
**'''16:''' Grenade (1) - Model ID: 342
|4
**'''17:''' Tear Gas (1) - Model ID: 343
|N/A
**'''18:''' Molotov Cocktails (1) - Model ID: 344
|No
**'''39:''' Satchel Charges (1) - Model ID: 363
|335
<br>
|-
*'''Slot 9: Special 1'''
! scope="row" style="background:#efefef;" |
**'''41:''' Spraycan (500) - Model ID: 365
|Baseball Bat
**'''42:''' Fire Extinguisher (500) - Model ID: 366
|5
**'''43:''' Camera (36) - Model ID: 367
|N/A
<br>
|No
*'''Slot 10: Gifts/Other'''
|336
**'''10:''' Long Purple Dildo - Model ID: 321
|-
**'''11:''' Short tan Dildo - Model ID: 322
! scope="row" style="background:#efefef;" |
**'''12:''' Vibrator - Model ID: 323
|Shovel
**'''14:''' Flowers - Model ID: 325
|6
**'''15:''' Cane - Model ID: 326
|N/A
<br>
|No
*'''Slot 11: Special 2'''
|337
**'''44:''' Night-Vision Goggles - Model ID: 368
|-
**'''45:''' Infrared Goggles - Model ID: 369
! scope="row" style="background:#efefef;" |
**'''46:''' Parachute - Model ID: 371
|Pool Cue
<br>
|7
*'''Slot 12: Satchel Detonator'''
|N/A
**'''40''' Satchel Detonator - Model ID: 364
|No
 
|338
==See Also==
|-
[[id|ID Lists]]
! scope="row" style="background:#efefef;" |
 
|Katana
[[it:Armi]]
|8
[[ru:Weapons]]
|N/A
|No
|339
|-
! scope="row" style="background:#efefef;" |
|Chainsaw
|9
|N/A
|No
|341
|-
! scope="row" style="background:#efefef;" | Slot 2: Handguns
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 3: Shotguns
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 4: Sub-Machine Guns
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 5: Assault Rifles
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 6: Rifles
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 7: Heavy Weapons
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 8: Projectiles
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 9: Special 1
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 10: Gifts/Other
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 11: Special 2
|
|
|
|
|
|-
! scope="row" style="background:#efefef;" | Slot 12: Satchel Detonator
|
|
|
|
|
|}

Revision as of 01:42, 12 January 2011

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

  • NOTE: 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.
Weapon ID Clip Size Dual? Model ID
Slot 0: No Weapon Fist 0 N/A No N/A
Brass Knuckles 1 N/A No 331
Slot 1: Melee Golf Club 2 N/A No 333
Nightstick 3 N/A No 334
Knife 4 N/A No 335
Baseball Bat 5 N/A No 336
Shovel 6 N/A No 337
Pool Cue 7 N/A No 338
Katana 8 N/A No 339
Chainsaw 9 N/A No 341
Slot 2: Handguns
Slot 3: Shotguns
Slot 4: Sub-Machine Guns
Slot 5: Assault Rifles
Slot 6: Rifles
Slot 7: Heavy Weapons
Slot 8: Projectiles
Slot 9: Special 1
Slot 10: Gifts/Other
Slot 11: Special 2
Slot 12: Satchel Detonator