mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
37 lines
758 B
C++
37 lines
758 B
C++
![]() |
#pragma once
|
||
|
#include "file_manager/file.hpp"
|
||
|
|
||
|
namespace big
|
||
|
{
|
||
|
class model_preview_service
|
||
|
{
|
||
|
std::condition_variable m_cond;
|
||
|
std::mutex m_mutex;
|
||
|
|
||
|
Entity m_current_ent = 0;
|
||
|
|
||
|
Hash m_veh_model_hash = 0;
|
||
|
std::map<int, int32_t> m_veh_owned_mods;
|
||
|
bool m_veh_spawn_max = false;
|
||
|
|
||
|
Hash m_ped_model_hash = 0;
|
||
|
|
||
|
bool m_new_model = false;
|
||
|
float m_heading = 0.f;
|
||
|
bool m_loop_running = false;
|
||
|
bool m_running = false;
|
||
|
public:
|
||
|
model_preview_service();
|
||
|
~model_preview_service();
|
||
|
|
||
|
void show_ped(Hash hash);
|
||
|
|
||
|
void show_vehicle(Hash hash, bool spawn_max);
|
||
|
void show_vehicle(const std::map<int, int32_t>& owned_mods, bool spawn_max);
|
||
|
|
||
|
void preview_loop();
|
||
|
void stop_preview();
|
||
|
};
|
||
|
|
||
|
inline model_preview_service* g_model_preview_service{};
|
||
|
}
|