#define FL_ONGROUND ( 1 << 0 )
if (Player.Flags & FL_ONGROUND) {
ur bhop code
}

if (mem.Read<int>(modClient.dwBase + Offsets.m_dwForceJump) == 5) {
while (GetAsyncKeyState(VK_SPACE) & 0x8000) {
bool onGround = mem.Read<int>(local.GetBase() + NetVars.m_fFlag) & (1<<0);
mem.Write<int>(modClient.dwBase + Offsets.m_dwForceJump, onGround ? 5 : 4);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}