feat(Spoofing) disable player control

This commit is contained in:
karifeld 2021-12-25 19:41:25 +08:00 committed by GitHub
parent 317d121a04
commit dd92e6af0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,11 @@ namespace big
if (ImGui::TreeNode("Username")) if (ImGui::TreeNode("Username"))
{ {
QUEUE_JOB_BEGIN_CLAUSE()
{
PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
}QUEUE_JOB_END_CLAUSE
ImGui::Checkbox("Spoof Username", &g.spoofing.spoof_username); ImGui::Checkbox("Spoof Username", &g.spoofing.spoof_username);
static char name[20]; static char name[20];
@ -28,6 +33,11 @@ namespace big
if (ImGui::TreeNode("IP Address")) if (ImGui::TreeNode("IP Address"))
{ {
QUEUE_JOB_BEGIN_CLAUSE()
{
PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
}QUEUE_JOB_END_CLAUSE
ImGui::Checkbox("Spoof IP", &g.spoofing.spoof_ip); ImGui::Checkbox("Spoof IP", &g.spoofing.spoof_ip);
ImGui::Text("IP Address:"); ImGui::Text("IP Address:");
@ -38,8 +48,13 @@ namespace big
if (ImGui::TreeNode("Rockstar ID")) if (ImGui::TreeNode("Rockstar ID"))
{ {
QUEUE_JOB_BEGIN_CLAUSE()
{
PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
}QUEUE_JOB_END_CLAUSE
ImGui::Checkbox("Spoof Rockstar ID", &g.spoofing.spoof_rockstar_id); ImGui::Checkbox("Spoof Rockstar ID", &g.spoofing.spoof_rockstar_id);
ImGui::Text("Rockstar ID:"); ImGui::Text("Rockstar ID:");
ImGui::InputScalar("##rockstar_id_input", ImGuiDataType_U64, &g.spoofing.rockstar_id); ImGui::InputScalar("##rockstar_id_input", ImGuiDataType_U64, &g.spoofing.rockstar_id);
@ -49,4 +64,4 @@ namespace big
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }