WeaponClient

getWeaponTimeBetweenShots

GET_WEAPON_TIME_BETWEEN_SHOTS0x065D2AACAD8CF7A4

The GTA V native GET_WEAPON_TIME_BETWEEN_SHOTS of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeaponTimeBetweenShots, in JavaScript and in Lua.

SignatureJavaScript
getWeaponTimeBetweenShots(weaponHash: Hash): number
SignatureLua
getWeaponTimeBetweenShots(weaponHash: Hash): number

Usage

JavaScript
const value = getWeaponTimeBetweenShots(weaponHash);
Lua
local value = getWeaponTimeBetweenShots(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Reference

Namespace
Weapon WEAPON
In the game
float GET_WEAPON_TIME_BETWEEN_SHOTS(Hash weaponHash)
Hash
0x065D2AACAD8CF7A4
Introduced
Game build 1290 legacy numbering
Formerly
_GET_WEAPON_TIME_BETWEEN_SHOTS

Open in the interactive natives reference