#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 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& owned_mods, bool spawn_max); void preview_loop(); void stop_preview(); }; inline model_preview_service* g_model_preview_service{}; }