getWeaponDamageType
GET_WEAPON_DAMAGE_TYPE0x3BE0BB12D25FB305The GTA V native GET_WEAPON_DAMAGE_TYPE of the WEAPON namespace, as LS:MP client scripts call it: the global function getWeaponDamageType, in JavaScript and in Lua.
getWeaponDamageType(weaponHash: Hash): numbergetWeaponDamageType(weaponHash: Hash): integerUsage
JavaScript
const result = getWeaponDamageType(weaponHash);Lua
local result = getWeaponDamageType(weaponHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
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
int GET_WEAPON_DAMAGE_TYPE(Hash weaponHash)- Hash
0x3BE0BB12D25FB305