mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-10 03:08:57 +08:00
feat(ScriptEventHandler): Prevent network bail
This commit is contained in:
parent
64f6cb759f
commit
257fd54956
@ -43,6 +43,7 @@ namespace big
|
|||||||
FakeDeposit = 677240627,
|
FakeDeposit = 677240627,
|
||||||
ForceMission = 2020588206,
|
ForceMission = 2020588206,
|
||||||
GtaBanner = 1572255940,
|
GtaBanner = 1572255940,
|
||||||
|
NetworkBail = 1228916411,
|
||||||
PersonalVehicleDestroyed = 802133775,
|
PersonalVehicleDestroyed = 802133775,
|
||||||
RemoteOffradar = -391633760,
|
RemoteOffradar = -391633760,
|
||||||
RotateCam = 801199324,
|
RotateCam = 801199324,
|
||||||
|
@ -36,6 +36,7 @@ struct globals {
|
|||||||
bool force_mission = true;
|
bool force_mission = true;
|
||||||
bool force_teleport = true;
|
bool force_teleport = true;
|
||||||
bool gta_banner = true;
|
bool gta_banner = true;
|
||||||
|
bool network_bail = true;
|
||||||
bool personal_vehicle_destroyed = true;
|
bool personal_vehicle_destroyed = true;
|
||||||
bool remote_off_radar = true;
|
bool remote_off_radar = true;
|
||||||
bool send_to_cutscene = true;
|
bool send_to_cutscene = true;
|
||||||
@ -158,6 +159,7 @@ struct globals {
|
|||||||
this->protections.script_events.force_mission = j["protections"]["script_events"]["force_mission"];
|
this->protections.script_events.force_mission = j["protections"]["script_events"]["force_mission"];
|
||||||
this->protections.script_events.force_teleport = j["protections"]["script_events"]["force_teleport"];
|
this->protections.script_events.force_teleport = j["protections"]["script_events"]["force_teleport"];
|
||||||
this->protections.script_events.gta_banner = j["protections"]["script_events"]["gta_banner"];
|
this->protections.script_events.gta_banner = j["protections"]["script_events"]["gta_banner"];
|
||||||
|
this->protections.script_events.network_bail = j["protections"]["script_events"]["network_bail"];
|
||||||
this->protections.script_events.personal_vehicle_destroyed = j["protections"]["script_events"]["personal_vehicle_destroyed"];
|
this->protections.script_events.personal_vehicle_destroyed = j["protections"]["script_events"]["personal_vehicle_destroyed"];
|
||||||
this->protections.script_events.remote_off_radar = j["protections"]["script_events"]["remote_off_radar"];
|
this->protections.script_events.remote_off_radar = j["protections"]["script_events"]["remote_off_radar"];
|
||||||
this->protections.script_events.send_to_cutscene = j["protections"]["script_events"]["send_to_cutscene"];
|
this->protections.script_events.send_to_cutscene = j["protections"]["script_events"]["send_to_cutscene"];
|
||||||
@ -233,6 +235,7 @@ struct globals {
|
|||||||
{ "force_mission", this->protections.script_events.force_mission },
|
{ "force_mission", this->protections.script_events.force_mission },
|
||||||
{ "force_teleport", this->protections.script_events.force_teleport },
|
{ "force_teleport", this->protections.script_events.force_teleport },
|
||||||
{ "gta_banner", this->protections.script_events.gta_banner },
|
{ "gta_banner", this->protections.script_events.gta_banner },
|
||||||
|
{ "network_bail", this->protections.script_events.network_bail },
|
||||||
{ "personal_vehicle_destroyed", this->protections.script_events.personal_vehicle_destroyed },
|
{ "personal_vehicle_destroyed", this->protections.script_events.personal_vehicle_destroyed },
|
||||||
{ "remote_off_radar", this->protections.script_events.remote_off_radar },
|
{ "remote_off_radar", this->protections.script_events.remote_off_radar },
|
||||||
{ "send_to_cutscene", this->protections.script_events.send_to_cutscene },
|
{ "send_to_cutscene", this->protections.script_events.send_to_cutscene },
|
||||||
|
@ -39,6 +39,7 @@ namespace big
|
|||||||
ImGui::Checkbox("Force Mission", &g.protections.script_events.force_mission);
|
ImGui::Checkbox("Force Mission", &g.protections.script_events.force_mission);
|
||||||
ImGui::Checkbox("Force Teleport", &g.protections.script_events.force_teleport);
|
ImGui::Checkbox("Force Teleport", &g.protections.script_events.force_teleport);
|
||||||
ImGui::Checkbox("GTA Banner", &g.protections.script_events.gta_banner);
|
ImGui::Checkbox("GTA Banner", &g.protections.script_events.gta_banner);
|
||||||
|
ImGui::Checkbox("Network Bail", &g.protections.script_events.network_bail);
|
||||||
ImGui::Checkbox("Destroy Personal Vehicle", &g.protections.script_events.personal_vehicle_destroyed);
|
ImGui::Checkbox("Destroy Personal Vehicle", &g.protections.script_events.personal_vehicle_destroyed);
|
||||||
ImGui::Checkbox("Remote Off Radar", &g.protections.script_events.remote_off_radar);
|
ImGui::Checkbox("Remote Off Radar", &g.protections.script_events.remote_off_radar);
|
||||||
ImGui::Checkbox("Send to Cutscene", &g.protections.script_events.send_to_cutscene);
|
ImGui::Checkbox("Send to Cutscene", &g.protections.script_events.send_to_cutscene);
|
||||||
|
@ -54,6 +54,11 @@ namespace big
|
|||||||
if (g.protections.script_events.gta_banner)
|
if (g.protections.script_events.gta_banner)
|
||||||
strcpy(type, "GTA Banner");
|
strcpy(type, "GTA Banner");
|
||||||
|
|
||||||
|
break;
|
||||||
|
case eRemoteEvent::NetworkBail:
|
||||||
|
if (g.protections.script_events.network_bail)
|
||||||
|
strcpy(type, "Network Bail");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case eRemoteEvent::PersonalVehicleDestroyed:
|
case eRemoteEvent::PersonalVehicleDestroyed:
|
||||||
if (g.protections.script_events.personal_vehicle_destroyed)
|
if (g.protections.script_events.personal_vehicle_destroyed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user