getWeaponTimeBetweenShots
GET_WEAPON_TIME_BETWEEN_SHOTS0x065D2AACAD8CF7A4The 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.
getWeaponTimeBetweenShots(weaponHash: Hash): numbergetWeaponTimeBetweenShots(weaponHash: Hash): numberUsage
JavaScript
const value = getWeaponTimeBetweenShots(weaponHash);Lua
local value = getWeaponTimeBetweenShots(weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
Returns
float JavaScript number, Lua numberNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Full list of weapons by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/weapons.json
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