WeaponHudStats refer1: https://github.com/citizenfx/fivem/blob/master/code/client/clrcore/External/Game.cs#L900 refer2: https://docs.fivem.net/natives/?_0xD92C739EE34C9EBA // 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 };
Generated using TypeDoc
WeaponHudStats refer1: https://github.com/citizenfx/fivem/blob/master/code/client/clrcore/External/Game.cs#L900 refer2: https://docs.fivem.net/natives/?_0xD92C739EE34C9EBA // 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 };