WeaponClient

getWeaponDamageType

GET_WEAPON_DAMAGE_TYPE0x3BE0BB12D25FB305

The 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.

SignatureJavaScript
getWeaponDamageType(weaponHash: Hash): number
SignatureLua
getWeaponDamageType(weaponHash: Hash): integer

Usage

JavaScript
const result = getWeaponDamageType(weaponHash);
Lua
local result = getWeaponDamageType(weaponHash)

Parameters

ParameterTypeJavaScriptLua
weaponHashHashnumberinteger

Returns

int JavaScript number, Lua integer

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
int GET_WEAPON_DAMAGE_TYPE(Hash weaponHash)
Hash
0x3BE0BB12D25FB305

Open in the interactive natives reference