Add max sex appeal toggle
This commit is contained in:
parent
3f6d6b9320
commit
0083ad86cd
@ -409,6 +409,7 @@ void Player::Draw()
|
|||||||
{
|
{
|
||||||
pPlayer->m_nPedFlags.bDontRender = (pPlayer->m_nPedFlags.bDontRender == 1) ? 0 : 1;
|
pPlayer->m_nPedFlags.bDontRender = (pPlayer->m_nPedFlags.bDontRender == 1) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
Ui::CheckboxAddress("Infinite sprint", 0xB7CEE4);
|
||||||
#elif GTAVC
|
#elif GTAVC
|
||||||
Ui::CheckboxAddress("Infinite sprint", (int)&pInfo->m_bNeverGetsTired);
|
Ui::CheckboxAddress("Infinite sprint", (int)&pInfo->m_bNeverGetsTired);
|
||||||
#endif
|
#endif
|
||||||
@ -416,11 +417,11 @@ void Player::Draw()
|
|||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
Ui::CheckboxAddress("Infinite sprint", 0xB7CEE4);
|
|
||||||
if (Ui::CheckboxBitFlag("Lock control", pad->bPlayerSafe))
|
if (Ui::CheckboxBitFlag("Lock control", pad->bPlayerSafe))
|
||||||
{
|
{
|
||||||
pad->bPlayerSafe = (pad->bPlayerSafe == 1) ? 0 : 1;
|
pad->bPlayerSafe = (pad->bPlayerSafe == 1) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
Ui::CheckboxAddressEx("Max sex appeal", 0x969180, 1, 0);
|
||||||
Ui::CheckboxAddress("Mega jump", 0x96916C);
|
Ui::CheckboxAddress("Mega jump", 0x96916C);
|
||||||
Ui::CheckboxAddress("Mega punch", 0x969173);
|
Ui::CheckboxAddress("Mega punch", 0x969173);
|
||||||
Ui::CheckboxAddress("Never get hungry", 0x969174);
|
Ui::CheckboxAddress("Never get hungry", 0x969174);
|
||||||
|
@ -19,7 +19,7 @@ void Teleport::FetchRadarSpriteData()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
tp_data.m_pJson->m_Data.erase("Radar");
|
m_tpData.m_pJson->m_Data.erase("Radar");
|
||||||
|
|
||||||
// 175 is the max number of sprites, FLA can increase this limit, might need to update this
|
// 175 is the max number of sprites, FLA can increase this limit, might need to update this
|
||||||
for (int i = 0; i != 175; ++i)
|
for (int i = 0; i != 175; ++i)
|
||||||
@ -29,7 +29,7 @@ void Teleport::FetchRadarSpriteData()
|
|||||||
auto sprite_name = m_SpriteJson.m_Data[std::to_string(sprite)].get<std::string>();
|
auto sprite_name = m_SpriteJson.m_Data[std::to_string(sprite)].get<std::string>();
|
||||||
std::string key_name = sprite_name + ", " + Util::GetLocationName(&pos);
|
std::string key_name = sprite_name + ", " + Util::GetLocationName(&pos);
|
||||||
|
|
||||||
tp_data.m_pJson->m_Data["Radar"][key_name] = "0, " + std::to_string(pos.x) + ", " + std::to_string(pos.y) + ", " +
|
m_tpData.m_pJson->m_Data["Radar"][key_name] = "0, " + std::to_string(pos.x) + ", " + std::to_string(pos.y) + ", " +
|
||||||
std::to_string(pos.z);
|
std::to_string(pos.z);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -170,9 +170,9 @@ void Teleport::RemoveTeleportEntry(std::string& category, std::string& key, std:
|
|||||||
{
|
{
|
||||||
if (category == "Custom")
|
if (category == "Custom")
|
||||||
{
|
{
|
||||||
tp_data.m_pJson->m_Data["Custom"].erase(key);
|
m_tpData.m_pJson->m_Data["Custom"].erase(key);
|
||||||
SetHelpMessage("Location removed", false, false, false);
|
SetHelpMessage("Location removed", false, false, false);
|
||||||
tp_data.m_pJson->WriteToDisk();
|
m_tpData.m_pJson->WriteToDisk();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -256,7 +256,7 @@ void Teleport::Draw()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
Ui::DrawJSON(tp_data, TeleportToLocation,RemoveTeleportEntry);
|
Ui::DrawJSON(m_tpData, TeleportToLocation,RemoveTeleportEntry);
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,15 +268,15 @@ void Teleport::Draw()
|
|||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
if (ImGui::Button("Add location", Ui::GetSize()))
|
if (ImGui::Button("Add location", Ui::GetSize()))
|
||||||
{
|
{
|
||||||
tp_data.m_pJson->m_Data["Custom"][m_nLocationBuffer] = ("0, " + std::string(m_nInputBuffer));
|
m_tpData.m_pJson->m_Data["Custom"][m_nLocationBuffer] = ("0, " + std::string(m_nInputBuffer));
|
||||||
|
|
||||||
#ifdef GTASA
|
#ifdef GTASA
|
||||||
// Clear the Radar coordinates
|
// Clear the Radar coordinates
|
||||||
tp_data.m_pJson->m_Data.erase("Radar");
|
m_tpData.m_pJson->m_Data.erase("Radar");
|
||||||
tp_data.m_pJson->m_Data["Radar"] = {};
|
m_tpData.m_pJson->m_Data["Radar"] = {};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tp_data.m_pJson->WriteToDisk();
|
m_tpData.m_pJson->WriteToDisk();
|
||||||
}
|
}
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ private:
|
|||||||
inline static bool m_bInsertCoord;
|
inline static bool m_bInsertCoord;
|
||||||
inline static bool m_bQuickTeleport;
|
inline static bool m_bQuickTeleport;
|
||||||
inline static char m_nInputBuffer[INPUT_BUFFER_SIZE];
|
inline static char m_nInputBuffer[INPUT_BUFFER_SIZE];
|
||||||
inline static ResourceStore tp_data{ "teleport", eResourceType::TYPE_TEXT };
|
inline static ResourceStore m_tpData{ "teleport", eResourceType::TYPE_TEXT };
|
||||||
inline static char m_nLocationBuffer[INPUT_BUFFER_SIZE];
|
inline static char m_nLocationBuffer[INPUT_BUFFER_SIZE];
|
||||||
inline static uint m_nQuickTeleportTimer;
|
inline static uint m_nQuickTeleportTimer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user