Weapon IDs in SAMP
This table provides complete information about the weapons existing in SA:MP.
* The values (in brackets) for clip sizes denote clip size when the player has dual wielded weapon. The values outside brackets denote clip size for one-handed version.
Weapon | #define | ID | Slot | Model | Clip size | Interchangeable ammo in slot | Notes |
---|---|---|---|---|---|---|---|
![]() Fist | - | 0 | 0 | - | - | - | |
![]() Brass Knuckles | WEAPON_BRASSKNUCKLE | 1 | 0 | 331 | - | - | |
![]() Golf Club | WEAPON_GOLFCLUB | 2 | 1 | 333 | - | - | |
![]() Nite Stick | WEAPON_NITESTICK | 3 | 1 | 334 | - | - | |
![]() Knife | WEAPON_KNIFE | 4 | 1 | 335 | - | - | Can de-sync players when their throat is cut (they appear dead to other players). Also, knife death may not sync for players killed in AFK |
![]() Baseball Bat | WEAPON_BAT | 5 | 1 | 336 | - | - | |
![]() Shovel | WEAPON_SHOVEL | 6 | 1 | 337 | - | - | |
![]() Pool Cue | WEAPON_POOLSTICK | 7 | 1 | 338 | - | - | |
![]() Katana | WEAPON_KATANA | 8 | 1 | 339 | - | - | Can not decapitate players (like in single-player) |
![]() Chainsaw | WEAPON_CHAINSAW | 9 | 1 | 341 | - | - | |
![]() Dildo | WEAPON_DILDO | 10 | 10 | 321 | - | - | |
![]() Dildo | WEAPON_DILDO2 | 11 | 10 | 322 | - | - | |
![]() Vibrator | WEAPON_VIBRATOR | 12 | 10 | 323 | - | - | |
![]() Vibrator | WEAPON_VIBRATOR2 | 13 | 10 | 324 | - | - | |
![]() Flowers | WEAPON_FLOWER | 14 | 10 | 325 | - | - | |
![]() Cane | WEAPON_CANE | 15 | 10 | 326 | - | - | |
![]() Grenade | WEAPON_GRENADE | 16 | 8 | 342 | 1 | No | Does not produce fire. Only synced for players that were streamed-in when a grenade was thrown |
![]() Teargas | WEAPON_TEARGAS | 17 | 8 | 343 | 1 | No | The coughing effect is disabled in SA-MP. Only synced for players that were streamed-in when a tear gas grenade was thrown |
![]() Molotov Cocktail | WEAPON_MOLTOV | 18 | 8 | 344 | 1 | No | Produces fire. Only synced for players that were streamed-in when a molotov cocktail was thrown |
![]() Colt 45 | WEAPON_COLT45 | 22 | 2 | 346 | 17 (34) | No | Skill can be set with SetPlayerSkillLevel |
![]() Silenced Pistol | WEAPON_SILENCED | 23 | 2 | 347 | 17 | No | Skill can be set with SetPlayerSkillLevel |
![]() Desert Eagle | WEAPON_DEAGLE | 24 | 2 | 348 | 7 | No | Skill can be set with SetPlayerSkillLevel |
![]() Shotgun | WEAPON_SHOTGUN | 25 | 3 | 349 | 1 | Yes | Skill can be set with SetPlayerSkillLevel |
![]() Sawn-off Shotgun | WEAPON_SAWEDOFF | 26 | 3 | 350 | 2 (4) | Yes | Skill can be set with SetPlayerSkillLevel |
![]() Combat Shotgun | WEAPON_SHOTGSPA | 27 | 3 | 351 | 7 | Yes | Skill can be set with SetPlayerSkillLevel |
![]() UZI | WEAPON_UZI | 28 | 4 | 352 | 50 (100) | Yes | Skill can be set with SetPlayerSkillLevel |
![]() MP5 | WEAPON_MP5 | 29 | 4 | 353 | 30 | Yes | Skill can be set with SetPlayerSkillLevel |
![]() AK-47 | WEAPON_AK47 | 30 | 5 | 355 | 30 | Yes | Skill can be set with SetPlayerSkillLevel |
![]() M4 | WEAPON_M4 | 31 | 5 | 356 | 50 | Yes | Skill can be set with SetPlayerSkillLevel |
![]() TEC9 | WEAPON_TEC9 | 32 | 4 | 372 | 50 (100) | Yes | Skill can be set with SetPlayerSkillLevel |
![]() Rifle | WEAPON_RIFLE | 33 | 6 | 357 | 1 | No | Skill can be set with SetPlayerSkillLevel, but it won't have any effect |
![]() Sniper Rifle | WEAPON_SNIPER | 34 | 6 | 358 | 1 | No | Skill can be set with SetPlayerSkillLevel, but it won't have any effect |
![]() Rocket Launcher | WEAPON_ROCKETLAUNCHER | 35 | 7 | 359 | 1 | No | Only synced for players that were streamed-in when the projectile was launched |
![]() Heat Seeker | WEAPON_HEATSEEKER | 36 | 7 | 360 | 1 | No | Lock-on is not synced. Only synced for players that were streamed-in when the projectile was launched |
![]() Flamethrower | WEAPON_FLAMETHROWER | 37 | 7 | 361 | 500 shown in the game as 50 | No | This is used by a damage by fire, even when the fire is created by a rocket explosion or a molotov. Produced fire does not sync between players |
![]() Minigun | WEAPON_MINIGUN | 38 | 7 | 362 | 500 | No | |
![]() Satchel Explosives | WEAPON_SATCHEL | 39 | 8 | 363 | 1 | No | Only synced for players that were streamed-in when the satchels were thrown |
![]() Bomb | WEAPON_BOMB | 40 | 12 | 364 | - | - | Given automatically when players throw a satchel charge (see ID 39) (omit from anti-cheat checks). It also detonates bombs thrown by other players |
![]() Spray Can | WEAPON_SPRAYCAN | 41 | 9 | 365 | 500 | No | Players that are sprayed choke |
![]() Fire Extinguisher | WEAPON_FIREEXTINGUISHER | 42 | 9 | 366 | 500 | No | Players that are sprayed choke |
![]() Camera | WEAPON_CAMERA | 43 | 9 | 367 | 36 | No | Saves photos to player's gallery if enabled via pause menu (My Documents\GTA San Andreas User Files\Gallery) |
![]() Night Vision | - | 44 | 11 | 368 | - | - | Visual effects show for all players (fix available) |
![]() Thermal Goggles | - | 45 | 11 | 369 | - | - | Visual effects show for all players (fix available) |
![]() Parachute | WEAPON_PARACHUTE | 46 | 11 | 371 | - | - | Players will die if teleported while diving with a parachute (can be fixed using ResetPlayerWeapons). Parachutes are given when bailing out of aircraft (omit from anti-cheat checks) |
![]() Vehicle | WEAPON_VEHICLE | 49 | N/A | N/A | - | - | Only a damage/death reason, can not be used in GivePlayerWeapon etc. |
![]() Helicopter Blades | - | 50 | N/A | N/A | - | - | Only a damage/death reason, can not be used in GivePlayerWeapon etc. |
![]() Explosion | - | 51 | N/A | N/A | - | - | Only a damage/death reason, can not be used in GivePlayerWeapon etc. But this may sometimes be used at an indirect damage through an exploding rocket or grenade |
![]() Drowned | WEAPON_DROWN | 53 | N/A | N/A | - | - | Only a damage/death reason, can not be used in GivePlayerWeapon etc. |
![]() Splat | WEAPON_COLLISION | 54 | N/A | N/A | - | - | Only a damage/death reason, can not be used in GivePlayerWeapon etc. |
![]() Connect | - | 200 | N/A | N/A | - | - | Only usable in SendDeathMessage and SendDeathMessageToPlayer |
![]() Disconnect | - | 201 | N/A | N/A | - | - | Only usable in SendDeathMessage and SendDeathMessageToPlayer |
![]() Suicide | - | 255 | N/A | N/A | - | - | The kill icon. Cannot be used in GivePlayerWeapon, etc. Used when a player gets 0 HP by SetPlayerHealth, exploding in a vehicle etc. |
Weapon | ID |
---|---|
![]() Fist | 0 |
![]() Brass Knuckles | 1 |
![]() Golf Club | 2 |
![]() Nite Stick | 3 |
![]() Knife | 4 |
![]() Baseball Bat | 5 |
![]() Shovel | 6 |
![]() Pool Cue | 7 |
![]() Katana | 8 |
![]() Chainsaw | 9 |
![]() Dildo | 10 |
![]() Dildo | 11 |
![]() Vibrator | 12 |
![]() Vibrator | 13 |
![]() Flowers | 14 |
![]() Cane | 15 |
![]() Grenade | 16 |
![]() Teargas | 17 |
![]() Molotov Cocktail | 18 |
![]() Colt 45 | 22 |
![]() Silenced Pistol | 23 |
![]() Desert Eagle | 24 |
![]() Shotgun | 25 |
![]() Sawn-off Shotgun | 26 |
![]() Combat Shotgun | 27 |
![]() UZI | 28 |
![]() MP5 | 29 |
![]() AK-47 | 30 |
![]() M4 | 31 |
![]() TEC9 | 32 |
![]() Rifle | 33 |
![]() Sniper Rifle | 34 |
![]() Rocket Launcher | 35 |
![]() Heat Seeker | 36 |
![]() Flamethrower | 37 |
![]() Minigun | 38 |
![]() Satchel Explosives | 39 |
![]() Bomb | 40 |
![]() Spray Can | 41 |
![]() Fire Extinguisher | 42 |
![]() Camera | 43 |
![]() Night Vision | 44 |
![]() Thermal Goggles | 45 |
![]() Parachute | 46 |
![]() Vehicle | 49 |
![]() Helicopter Blades | 50 |
![]() Explosion | 51 |
![]() Drowned | 53 |
![]() Splat | 54 |
![]() Connect | 200 |
![]() Disconnect | 201 |
![]() Suicide | 255 |