--[[ AUtor: Direxus PrzerĂłbka: vNex ]] local car_fly = false function fly() local vehicle = getPedOccupiedVehicle(localPlayer) if getElementModel(vehicle) == 559 then -- tu dajesz id auta if car_fly == false then setWorldSpecialPropertyEnabled("aircars", true) outputChatBox("* Uruchomiono tryb latania (X).") car_fly = true elseif car_fly == true then setWorldSpecialPropertyEnabled("aircars", false) outputChatBox("* Wy?‚?…czono tryb latania (X).") car_fly = false end end end addEventHandler("onClientResourceStart", getRootElement(), function() bindKey("b", "down", fly) -- Tu masz bind end)
function AANieMa) if car_fly == true then setWorldSpecialPropertyEnabled("aircars", false) car_fly = false end end addEventHandler("onClientVehicleExit", root, AANieMa)