Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
local Player = PlayerPedId()
local playerVeh = GetVehiclePedIsIn(Player, false)
if playerVeh ~= 0 then
local model = GetEntityModel(playerVeh)
if IsThisModelACar(model) or IsThisModelABike(model) or IsThisModelAQuadbike(model) then
if IsEntityInAir(playerVeh) then
DisableControlAction(0, 30, true)
DisableControlAction(0, 31, true)
DisableControlAction(0, 32, true)
DisableControlAction(0, 33, true)
DisableControlAction(0, 34, true)
DisableControlAction(0, 35, true)
DisableControlAction(0, 36, true)
end
end
end
end
end)