2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-08-06 11:53:18 -04:00
|
|
|
#include "pch.h"
|
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
class Player
|
|
|
|
{
|
|
|
|
private:
|
2022-01-13 08:57:08 -05:00
|
|
|
static inline bool m_bHealthRegen;
|
2022-01-07 03:18:00 -05:00
|
|
|
static inline bool m_bGodMode;
|
|
|
|
static inline bool m_bModloaderInstalled;
|
|
|
|
struct m_KeepPosition
|
|
|
|
{
|
|
|
|
static inline bool m_bEnabled = false;
|
|
|
|
static inline CVector m_fPos;
|
|
|
|
};
|
2021-08-06 11:53:18 -04:00
|
|
|
|
2021-08-07 12:01:44 -04:00
|
|
|
#ifdef GTASA
|
2022-01-07 03:18:00 -05:00
|
|
|
static inline bool m_bAimSkinChanger;
|
|
|
|
static inline bool m_bDrunkEffect;
|
|
|
|
static inline bool m_bFastSprint;
|
|
|
|
static inline int m_nUiBodyState;
|
|
|
|
static inline ResourceStore m_ClothData { "clothes", eResourceType::TYPE_IMAGE, ImVec2(70, 100)};
|
|
|
|
struct m_CustomSkins
|
|
|
|
{
|
|
|
|
static inline ImGuiTextFilter m_Filter;
|
|
|
|
static inline std::vector<std::string> m_List;
|
|
|
|
};
|
2021-08-25 06:06:21 -04:00
|
|
|
|
2022-01-07 03:18:00 -05:00
|
|
|
struct m_TopDownCamera
|
|
|
|
{
|
|
|
|
static inline bool m_bEnabled = false;
|
|
|
|
static inline float m_fOffset = 40.0f;
|
|
|
|
};
|
2022-01-13 08:57:08 -05:00
|
|
|
|
|
|
|
static inline const char* clothNameList[18] =
|
|
|
|
{
|
|
|
|
"Shirts", "Heads", "Trousers", "Shoes", "Tattoos left lower arm", "Tattoos left upper arm",
|
|
|
|
"Tattoos right upper arm", "Tattoos right lower arm", "Tattoos back", "Tattoos left chest",
|
|
|
|
"Tattoos right chest", "Tattoos stomach", "Tattoos lower back", "Necklaces", "Watches",
|
|
|
|
"Glasses", "Hats", "Extras"
|
|
|
|
};
|
2022-01-07 03:18:00 -05:00
|
|
|
#else
|
|
|
|
static inline ResourceStore skinData { BY_GAME(NULL, "skin", "ped"), eResourceType::TYPE_TEXT };
|
2021-08-07 12:01:44 -04:00
|
|
|
#endif
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-08-06 11:53:18 -04:00
|
|
|
#ifdef GTASA
|
2022-01-07 03:18:00 -05:00
|
|
|
static void ChangePlayerModel(std::string& model);
|
|
|
|
static void ChangePlayerCloth(std::string& model);
|
|
|
|
static void TopDownCameraView();
|
|
|
|
#else
|
|
|
|
static void ChangePlayerModel(std::string& cat, std::string& name, std::string& id);
|
2021-08-06 11:53:18 -04:00
|
|
|
#endif
|
2022-01-13 08:57:08 -05:00
|
|
|
|
|
|
|
public:
|
2022-02-21 03:33:57 -05:00
|
|
|
Player() = delete;
|
|
|
|
Player(const Player&) = delete;
|
|
|
|
|
|
|
|
static void Init();
|
2022-01-20 02:04:45 -05:00
|
|
|
static void ShowPage();
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|