Native referenceFiveM

GET_WEAPON_HUD_STATS

0xD92C739EE34C9EBA WEAPON
FUNCTION SIGNATURE
BOOL GET_WEAPON_HUD_STATS(Hash weaponHash, Any* outData);
Property Value
Native Name GET_WEAPON_HUD_STATS
Hash 0xD92C739EE34C9EBA
Return Type BOOL
Parameters weaponHash (Hash), outData (Any*)

Description: ``` // members should be aligned to 8 bytes by default but it's best to use alignas here, just to be sure
struct WeaponHudStatsData
{
alignas(8) uint8_t hudDamage; // 0x0000
alignas(8) uint8_t hudSpeed; // 0x0008
alignas(8) uint8_t hudCapacity; // 0x0010
alignas(8) uint8_t hudAccuracy; // 0x0018
alignas(8) uint8_t hudRange; // 0x0020
};
Usage:
WeaponHudStatsData data;
if (GET_WEAPON_HUD_STATS(weaponHash, (Any*)&data))
{
// uint8_t damagePercentage = data.hudDamage etc...
}

Back to WEAPON