script_name("Bike Jump Bug")
script_author("MaksQ")
require "lib.moonloader"
function main()
while not isSampAvailable() do wait(0) end
while true do wait(0)
if not isPauseMenuActive() and not sampIsChatInputActive() and isCharOnAnyBike(PLAYER_PED) then
local bike = {[481] = true, [509] = true, [510] = true}
if bike[getCarModel(storeCarCharIsInNoSave(PLAYER_PED))] and isKeyJustPressed(VK_C) then
setVirtualKeyDown(0x11, true)
wait(300)
setVirtualKeyDown(0x11, false)
local veh = storeCarCharIsInNoSave(PLAYER_PED)
local cVecX, cVecY, cVecZ = getCarSpeedVector(storeCarCharIsInNoSave(PLAYER_PED))
if not isCarInAirProper(veh) and cVecZ < 7.0 then applyForceToCar(storeCarCharIsInNoSave(PLAYER_PED), 0.0, 0.0, 0.44, 0.0, 0.0, 0.0)
end end end end end