diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index f0c67380..80f767a0 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -159,6 +159,13 @@ namespace big m_send_event_ack = ptr.sub(5).as(); }); // Received Event Signatures END + + main_batch.add("Request Control Of Entity", "48 89 5C 24 ? 57 48 83 EC 20 8B D9 E8 ? ? ? ? 84 C0", [this](memory::handle ptr) + { + PVOID spectator_check = ptr.add(0x11).as(); + + memset(spectator_check, 0x90, 0x4); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/util/entity.hpp b/BigBaseV2/src/util/entity.hpp index 7155b888..c96c8391 100644 --- a/BigBaseV2/src/util/entity.hpp +++ b/BigBaseV2/src/util/entity.hpp @@ -51,13 +51,9 @@ namespace big::entity if (NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(ent)) return true; for (uint8_t i = 0; !NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(ent) && i < 5; i++) { - bool in_spectator = NETWORK::NETWORK_IS_IN_SPECTATOR_MODE(); - if (in_spectator) NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(0, PLAYER::PLAYER_PED_ID()); NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(ent); - if (in_spectator) NETWORK::NETWORK_SET_IN_SPECTATOR_MODE(1, PLAYER::PLAYER_PED_ID()); - script::get_current()->yield(); } if (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(ent)) return false;