RU/getVehicleLandingGearDown
Jump to navigation
Jump to search
Функция используется для проверки опущено ли шасси у самолёта или нет.
Синтаксис
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
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- 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
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- 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