From df0def702dac8f7ba9bf7107734ac30b4db54e96 Mon Sep 17 00:00:00 2001 From: Mr-X-GTA <110748953+Mr-X-GTA@users.noreply.github.com> Date: Fri, 10 May 2024 20:15:39 +0200 Subject: [PATCH] Fix CNetGamePlayerDataMsg (#170) * fix(network): update CNetGamePlayerDataMsg --- network/CNetGamePlayerDataMsg.hpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/network/CNetGamePlayerDataMsg.hpp b/network/CNetGamePlayerDataMsg.hpp index 18179ed..fa01b8c 100644 --- a/network/CNetGamePlayerDataMsg.hpp +++ b/network/CNetGamePlayerDataMsg.hpp @@ -24,15 +24,16 @@ namespace rage { class CNetGamePlayerDataMsg : public rage::playerDataMsg { public: - uint32_t m_player_type; //0x0010 - uint32_t m_matchmaking_group; //0x0014 - uint32_t m_flags; //0x0018 - uint32_t m_team; //0x001C - uint64_t m_crew_id; //0x0020 - uint32_t m_aim_preference; //0x0028 - uint16_t m_rank; //0x002C - uint16_t unk_002E; //0x002E - uint16_t unk_0030; //0x0030 -}; //Size: 0x0038 -static_assert(sizeof(CNetGamePlayerDataMsg) == 0x38); + int32_t m_account_id; //0x0010 + uint32_t m_player_type; //0x0014 + uint32_t m_matchmaking_group; //0x0018 + uint32_t m_flags; //0x001C + int32_t m_team; //0x0020 + int64_t m_crew_id; //0x0028 + int32_t m_aim_preference; //0x0030 + uint16_t m_rank; //0x0034 + uint16_t m_rating; //0x0036 + uint32_t m_region; //0x0038 +}; //Size: 0x0040 +static_assert(sizeof(CNetGamePlayerDataMsg) == 0x40); #pragma pack(pop) \ No newline at end of file