انتقل إلى المحتوى الرئيسي

Weapon IDs

معلومات

This page contains all of the in-game weapons used by OnPlayerDeath, GivePlayerWeapon, SendDeathMessage.


Hud iconDeath reasonDefinitionIDSlotModelClip sizeInterchangeable ammo in slotNotes

Fist
WEAPON_FIST00----

Brass Knuckles
WEAPON_BRASSKNUCKLE10331---

Golf Club
WEAPON_GOLFCLUB21333---

Nite Stick
WEAPON_NITESTICK31334---

Knife
WEAPON_KNIFE41335--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_BAT51336---

Shovel
WEAPON_SHOVEL61337---

Pool Cue
WEAPON_POOLSTICK71338---

Katana
WEAPON_KATANA81339--Can not decapitate players (like in single-player)

Chainsaw
WEAPON_CHAINSAW91341---

Dildo
WEAPON_DILDO1010321---

Dildo
WEAPON_DILDO21110322---

Vibrator
WEAPON_VIBRATOR1210323---

Vibrator
WEAPON_VIBRATOR21310324---

Flowers
WEAPON_FLOWER1410325---

Cane
WEAPON_CANE1510326---

Grenade
WEAPON_GRENADE1683421NoDoes not produce fire. Only synced for players that were streamed-in when a grenade was thrown

Teargas
WEAPON_TEARGAS1783431NoThe 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_MOLTOV1883441NoProduces fire. Only synced for players that were streamed-in when a molotov cocktail was thrown

Colt 45
WEAPON_COLT4522234617 (34 for dual gun)NoSkill can be set with SetPlayerSkillLevel

Silenced Pistol
WEAPON_SILENCED23234717NoSkill can be set with SetPlayerSkillLevel

Desert Eagle
WEAPON_DEAGLE2423487NoSkill can be set with SetPlayerSkillLevel

Shotgun
WEAPON_SHOTGUN2533491YesSkill can be set with SetPlayerSkillLevel

Sawn-off Shotgun
WEAPON_SAWEDOFF2633502 (4 for dual gun)YesSkill can be set with SetPlayerSkillLevel

Combat Shotgun
WEAPON_SHOTGSPA2733517YesSkill can be set with SetPlayerSkillLevel

UZI
WEAPON_UZI28435250 (100 for dual gun)YesSkill can be set with SetPlayerSkillLevel

MP5
WEAPON_MP529435330YesSkill can be set with SetPlayerSkillLevel

AK-47
WEAPON_AK4730535530YesSkill can be set with SetPlayerSkillLevel

M4
WEAPON_M431535650YesSkill can be set with SetPlayerSkillLevel

TEC9
WEAPON_TEC932437250 (100 for dual gun)YesSkill can be set with SetPlayerSkillLevel

Rifle
WEAPON_RIFLE3363571NoSkill can be set with SetPlayerSkillLevel, but it won't have any effect

Sniper Rifle
WEAPON_SNIPER3463581NoSkill can be set with SetPlayerSkillLevel, but it won't have any effect

Rocket Launcher
WEAPON_ROCKETLAUNCHER3573591NoOnly synced for players that were streamed-in when the projectile was launched

Heat Seeker
WEAPON_HEATSEEKER3673601NoLock-on is not synced. Only synced for players that were streamed-in when the projectile was launched

Flamethrower
WEAPON_FLAMETHROWER377361500 (shows in game as 50)NoThis 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_MINIGUN387362500No-

Satchel Explosives
WEAPON_SATCHEL3983631NoOnly synced for players that were streamed-in when the satchels were thrown

Bomb
WEAPON_BOMB4012364--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_SPRAYCAN419365500NoPlayers that are sprayed choke

Fire Extinguisher
WEAPON_FIREEXTINGUISHER429366500NoPlayers that are sprayed choke

Camera
WEAPON_CAMERA43936736NoSaves photos to player's gallery if enabled via pause menu (My Documents\GTA San Andreas User Files\Gallery)

Night Vision
WEAPON_NIGHT_VISION_GOGGLES4411368--Visual effects show for all players (fix available)

Thermal Goggles
WEAPON_THERMAL_GOGGLES4511369--Visual effects show for all players (fix available)

Parachute
WEAPON_PARACHUTE4611371--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)

Cellphone
-------Cut from the game.

Jetpack
----370--Doesn't work as a weapon. See SetPlayerSpecialAction.

Skateboard
-------Cut from the game.
Fake Pistol-47N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc.
VehicleWEAPON_VEHICLE49N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc.
Helicopter BladesREASON_HELICOPTER_BLADES50N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc.
ExplosionREASON_EXPLOSION51N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc. This may sometimes be used at an indirect damage through an exploding rocket or grenade
DrownedWEAPON_DROWN53N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc.
SplatWEAPON_COLLISION54N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc.
ConnectREASON_CONNECT200N/AN/A--Only usable in SendDeathMessage
DisconnectREASON_DISCONNECT201N/AN/A--Only usable in SendDeathMessage
SuicideREASON_SUICIDE255N/AN/A--Only a death icon, can not be used in GivePlayerWeapon etc. Used when a player gets 0 HP by SetPlayerHealth, exploding in a vehicle etc.