使用方法:插入任何客户端脚本或者单独建立脚本!
-- CLIENT --
Citizen.CreateThread(function()
while true do
local idle = 1000
local veh = GetVehiclePedIsIn(PlayerPedId(),false)
if DoesEntityExist(veh) and not IsEntityDead(veh) then
idle = 5
local model = GetEntityModel(veh)
if not IsThisModelABoat(model) and not IsThisModelAHeli(model) and not IsThisModelAPlane(model) and not IsThisModelABicycle(model) and not IsThisModelABike(model) and not IsThisModelAQuadbike(model) and IsEntityInAir(veh) then
idle = 5
DisableControlAction(0,59)
DisableControlAction(0,60)
--DisableControlAction(0,73)
end
end
Citizen.Wait(idle)
end
end)
|