Parity

Marksman Rifle

WEAPON_MARKSMANRIFLE

Marksman Rifle is a sniper weapon in GTA V. In FiveM scripts it is WEAPON_MARKSMANRIFLE, hash 3342088282.

Display name
Marksman Rifle
Group
Sniper
Damage per hit
65
Magazine
8
Fire rate
200 shots/min (0.3 s between shots)
Range
1000 m
Damage type
Bullet
Hash
3342088282
Signed hash
-952879014
Hex
0xC734385A
Marksman Rifle (WEAPON_MARKSMANRIFLE) 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_marksmanrifle` and 3342088282 are the same value.

lua
-- give the Marksman Rifle with 250 rounds
GiveWeaponToPed(PlayerPedId(), `weapon_marksmanrifle`, 250, false, true)

-- server side (OneSync), for player id src
GiveWeaponToPed(GetPlayerPed(src), `weapon_marksmanrifle`, 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.