Parity

Sniper Rifle

WEAPON_SNIPERRIFLE

Sniper Rifle is a sniper weapon in GTA V. In FiveM scripts it is WEAPON_SNIPERRIFLE, hash 100416529.

Display name
Sniper Rifle
Group
Sniper
Damage per hit
101
Magazine
10
Fire rate
38 shots/min (1.567 s between shots)
Range
1500 m
Damage type
Bullet
Hash
100416529
Signed hash
100416529
Hex
0x05FC3C11
Sniper Rifle (WEAPON_SNIPERRIFLE) 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_sniperrifle` and 100416529 are the same value.

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

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