2022-10-21 22:05:39 +02:00
|
|
|
#include "gui/components/components.hpp"
|
|
|
|
#include "natives.hpp"
|
|
|
|
#include "util/system.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
#include "util/misc.hpp"
|
2022-10-21 22:05:39 +02:00
|
|
|
#include "view_debug.hpp"
|
2022-11-24 21:49:05 +00:00
|
|
|
#include "network/Network.hpp"
|
|
|
|
#include "script.hpp"
|
|
|
|
#include "gta/joaat.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
#include "script_global.hpp"
|
|
|
|
#include "gta_util.hpp"
|
2022-10-21 22:05:39 +02:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void debug::misc()
|
|
|
|
{
|
2023-02-01 19:46:33 +01:00
|
|
|
if (ImGui::BeginTabItem("DEBUG_TAB_MISC"_T.data()))
|
2022-10-21 22:05:39 +02:00
|
|
|
{
|
|
|
|
if (components::button("Dump entrypoints"))
|
|
|
|
{
|
|
|
|
system::dump_entry_points();
|
|
|
|
}
|
|
|
|
|
|
|
|
components::button("Network Bail", []
|
|
|
|
{
|
|
|
|
NETWORK::NETWORK_BAIL(16, 0, 0);
|
|
|
|
});
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
components::button("DEBUG_REMOVE_FROM_BAD_SPORT"_T, []
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
STATS::STAT_SET_FLOAT(RAGE_JOAAT("mpply_overall_badsport"), 0.0f, TRUE);
|
|
|
|
STATS::STAT_SET_BOOL(RAGE_JOAAT("mpply_was_i_bad_sport"), FALSE, TRUE);
|
|
|
|
});
|
|
|
|
|
2023-01-23 05:56:21 -05:00
|
|
|
if (components::button("Load MP Map"))
|
|
|
|
DLC::ON_ENTER_MP();
|
|
|
|
|
|
|
|
ImGui::SameLine();
|
|
|
|
if (components::button("Load SP Map"))
|
|
|
|
|
|
|
|
DLC::ON_ENTER_SP();
|
|
|
|
|
|
|
|
if (components::button("Skip Cutscene"))
|
|
|
|
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
|
|
|
|
|
|
|
|
if (components::button("Refresh Interior"))
|
|
|
|
{
|
|
|
|
Interior interior = INTERIOR::GET_INTERIOR_AT_COORDS(self::pos.x, self::pos.y, self::pos.z);
|
|
|
|
INTERIOR::REFRESH_INTERIOR(interior);
|
|
|
|
}
|
|
|
|
if (ImGui::IsItemHovered())
|
|
|
|
ImGui::SetTooltip("You Will Have To Refresh Again When Exiting Interior.\n SPAMMING WILL CRASH GAME");
|
|
|
|
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::EndTabItem();
|
2022-10-21 22:05:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|