- Documentation
- 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
1Brass Knucklesmodel 331
Slot 1: Melee 8
2Golf Clubmodel 333
3Nightstickmodel 334
4Knifemodel 335
5Baseball Batmodel 336
6Shovelmodel 337
7Pool Cuemodel 338
8Katanamodel 339
9Chainsawmodel 341
Slot 2: Handguns 3
22Pistolmodel 346
23Silenced Pistolmodel 347
24Desert Eaglemodel 348
Slot 3: Shotguns 3
25Shotgunmodel 349
26Sawn-off Shotgunmodel 350
27Combat Shotgunmodel 351
Slot 4: Sub-machine guns 3
28Micro SMGmodel 352
29MP5model 353
32Tec-9model 372
Slot 5: Assault rifles 2
30AK-47model 355
31M4model 356
Slot 6: Rifles 2
33Country Riflemodel 357
34Sniper Riflemodel 358
Slot 7: Heavy weapons 4
35Rocket Launchermodel 359
36Rocket Launcher HSmodel 360
37Flamethrowermodel 361
38Minigunmodel 362
Slot 8: Thrown 4
16Grenademodel 342
17Teargasmodel 343
18Molotov Cocktailmodel 344
39Satchel Chargemodel 363
Slot 9: Special 3
41Spraycanmodel 365
42Fire Extinguishermodel 366
43Cameramodel 367
Slot 10: Gifts 5
10Purple Dildomodel 321
11Dildomodel 322
12Vibratormodel 323
14Flowersmodel 325
15Canemodel 326
Slot 11: Equipment 3
44Night Vision Gogglesmodel 368
45Thermal Gogglesmodel 369
46Parachutemodel 371
Slot 12: Detonator 1
40Detonatormodel 364
Nothing matches the filter.