Parity

Machine Pistol

WEAPON_MACHINEPISTOL

Machine Pistol is a smg weapon in GTA V. In FiveM scripts it is WEAPON_MACHINEPISTOL, hash 3675956304.

Display name
Machine Pistol
Group
Smg
Damage per hit
27
Magazine
12
Fire rate
508 shots/min (0.118 s between shots)
Range
120 m
Damage type
Bullet
Hash
3675956304
Signed hash
-619010992
Hex
0xDB1AA450
Machine Pistol (WEAPON_MACHINEPISTOL) in GTA V

Give it in a FiveM script

FiveM's Lua turns a name in backticks into its hash when the script loads, so `weapon_machinepistol` and 3675956304 are the same value.

lua
-- give the Machine Pistol with 250 rounds
GiveWeaponToPed(PlayerPedId(), `weapon_machinepistol`, 250, false, true)

-- server side (OneSync), for player id src
GiveWeaponToPed(GetPlayerPed(src), `weapon_machinepistol`, 250, false, true)

The data comes from GTA V's own game files. Parity, the FiveM anticheat, shows these names instead of raw hashes in your server logs. Browse all GTA V weapons.