RU/getVehicleLandingGearDown
From Multi Theft Auto: Wiki
This page requires local translation. If page will remain not translated in reasonable period of time it would be deleted. |
Функция используется для проверки опущено ли шасси у самолёта или нет.
Синтаксис
bool getVehicleLandingGearDown ( vehicle theVehicle )
Необходимые аргументы
- theVehicle: Транспортное средство для проверки шасси
Возвращения
Возвращает true если шасси опущено, false если шасси подняты.
Возвращает nil если транспортное средство не имеет шасси, или оно недействительно.
Пример
function checkGear( thePlayer ) local theVehicle = getPlayerOccupiedVehicle( thePlayer ) if ( getElementModel(theVehicle) == 520 and getVehicleLandingGearDown( theVehicle ) == true ) then outputChatBox( "Поднимите шасси!", thePlayer ) end end
Смотрите также
- createVehicle
- addVehicleSirens
- removeVehicleSirens
- removeVehicleUpgrade
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- detachTrailerFromVehicle
- fixVehicle
- resetVehicleExplosionTime
- resetVehicleIdleTime
- respawnVehicle
- spawnVehicle
- toggleVehicleRespawn
- isTrainChainEngine
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleTaxiLightOn
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- getTrainDirection
- getTrainSpeed
С версии 1.6 r7485 и выше
- getTrainPosition
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorState
- getVehicleEngineState
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleName
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirensOn
- getVehiclesOfType
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurnVelocity
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgrades
- getVehicleUpgradeSlotName
- getVehicleWheelStates
- getVehicleDoorOpenRatio
- getVehicleHandling
- getModelHandling
- getOriginalHandling
- getVehicleHeadLightColor
- getVehicleModelFromName
- getVehicleNameFromModel
- getVehicleVariant
- getVehicleSirenParams
- getVehicleSirens
- setModelHandling
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainSpeed
С версии 1.6 r7485 и выше
- setTrainPosition
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleIdleRespawnDelay
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleRespawnDelay
- setVehicleRespawnPosition
- setVehicleSirensOn
- setVehicleTurretPosition
- setVehicleDoorOpenRatio
- setVehicleHandling
- setVehicleTurnVelocity
- setVehicleWheelStates
- setVehicleHeadLightColor
- setVehicleTaxiLightOn
- setVehicleVariant
- setVehicleSirens