Temp-Classes/player/CPlayerInfo.hpp
2024-07-04 18:39:38 +02:00

62 lines
1.5 KiB
C++

#pragma once
#include "../rage/rlGamerInfo.hpp"
#include <cstdint>
enum class eGameState : int32_t
{
Invalid = -1,
Playing,
Died,
Arrested,
FailedMission,
LeftGame,
Respawn,
InMPCutscene
};
#pragma pack(push, 4)
class CPlayerInfo
{
public:
char pad_0000[32]; //0x0000
class rage::rlGamerInfo m_net_player_data; //0x0020
char pad_0110[184]; //0x0110
float m_swim_speed; //0x01C8
char pad_01CC[20]; //0x01CC
uint32_t m_water_proof; //0x01E0
char pad_01E4[76]; //0x01E4
eGameState m_game_state; //0x0230
char pad_0234[12]; //0x0234
class CPed* m_ped; //0x0240
char pad_0248[40]; //0x0248
uint32_t m_frame_flags; //0x0270
char pad_0274[52]; //0x0274
uint32_t m_player_controls; //0x02A8
char pad_02AC[1264]; //0x02AC
float m_wanted_can_change; //0x079C
char pad_07A0[304]; //0x07A0
uint32_t m_npc_ignore; //0x08D0
char pad_08D4[12]; //0x08D4
bool m_is_wanted; //0x08E0
char pad_08E1[7]; //0x08E1
uint32_t m_wanted_level; //0x08E8
uint32_t m_wanted_level_display; //0x08EC
char pad_08F0[1120]; //0x08F0
float m_run_speed; //0x0D50
float m_stamina; //0x0D54
float m_stamina_regen; //0x0D58
char pad_0D5C[16]; //0x0D5C
float m_weapon_damage_mult; //0x0D6C
float m_weapon_defence_mult; //0x0D70
char pad_0D74[4]; //0x0D74
float m_melee_weapon_damage_mult; //0x0D78
float m_melee_damage_mult; //0x0D7C
float m_melee_defence_mult; //0x0D80
char pad_0D84[8]; //0x0D84
float m_melee_weapon_defence_mult; //0x0D8C
}; //Size: 0x0D90
static_assert(sizeof(CPlayerInfo) == 0xD90);
#pragma pack(pop)