ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Weapons

Catalogue

Weapons

Every San Andreas weapon with its ID, name, model and slot. Each weapon rendered straight from the game.

Using the IDs

Pass the weapon ID to giveWeapon, takeWeapon, setWeaponAmmo and anywhere else the API asks for a weapon. getWeaponNameFromID turns an ID into a name and getWeaponIDFromName does the reverse. A player holds one weapon per slot: a new weapon from an occupied slot replaces the old one.

addCommandHandler("ak", function(player)
    giveWeapon(player, 30, 120, true)   -- AK-47, 120 rounds, straight into the hand
end)

Model is the ID of the weapon's world object, used for example in createPickup or createObject. To give a weapon, always use the weapon ID, not the model.

All weapons

Type an ID, name or slot to narrow the list.

Slot 0: Hand 1

  • Brass Knuckles
    1Brass Knucklesmodel 331

Slot 1: Melee 8

  • Golf Club
    2Golf Clubmodel 333
  • Nightstick
    3Nightstickmodel 334
  • Knife
    4Knifemodel 335
  • Baseball Bat
    5Baseball Batmodel 336
  • Shovel
    6Shovelmodel 337
  • Pool Cue
    7Pool Cuemodel 338
  • Katana
    8Katanamodel 339
  • Chainsaw
    9Chainsawmodel 341

Slot 2: Handguns 3

  • Pistol
    22Pistolmodel 346
  • Silenced Pistol
    23Silenced Pistolmodel 347
  • Desert Eagle
    24Desert Eaglemodel 348

Slot 3: Shotguns 3

  • Shotgun
    25Shotgunmodel 349
  • Sawn-off Shotgun
    26Sawn-off Shotgunmodel 350
  • Combat Shotgun
    27Combat Shotgunmodel 351

Slot 4: Sub-machine guns 3

  • Micro SMG
    28Micro SMGmodel 352
  • MP5
    29MP5model 353
  • Tec-9
    32Tec-9model 372

Slot 5: Assault rifles 2

  • AK-47
    30AK-47model 355
  • M4
    31M4model 356

Slot 6: Rifles 2

  • Country Rifle
    33Country Riflemodel 357
  • Sniper Rifle
    34Sniper Riflemodel 358

Slot 7: Heavy weapons 4

  • Rocket Launcher
    35Rocket Launchermodel 359
  • Rocket Launcher HS
    36Rocket Launcher HSmodel 360
  • Flamethrower
    37Flamethrowermodel 361
  • Minigun
    38Minigunmodel 362

Slot 8: Thrown 4

  • Grenade
    16Grenademodel 342
  • Teargas
    17Teargasmodel 343
  • Molotov Cocktail
    18Molotov Cocktailmodel 344
  • Satchel Charge
    39Satchel Chargemodel 363

Slot 9: Special 3

  • Spraycan
    41Spraycanmodel 365
  • Fire Extinguisher
    42Fire Extinguishermodel 366
  • Camera
    43Cameramodel 367

Slot 10: Gifts 5

  • Purple Dildo
    10Purple Dildomodel 321
  • Dildo
    11Dildomodel 322
  • Vibrator
    12Vibratormodel 323
  • Flowers
    14Flowersmodel 325
  • Cane
    15Canemodel 326

Slot 11: Equipment 3

  • Night Vision Goggles
    44Night Vision Gogglesmodel 368
  • Thermal Goggles
    45Thermal Gogglesmodel 369
  • Parachute
    46Parachutemodel 371

Slot 12: Detonator 1

  • Detonator
    40Detonatormodel 364