RU/fixVehicle
From Multi Theft Auto: Wiki
Эта функция устанавливает машине жизнь и нанесенный по модели урон. Если вы хотите изменить уровень жизни, не меняя повреждения на модели, используйте setElementHealth.
Синтаксис
bool fixVehicle ( vehicle theVehicle )
Синтаксис ООП Помогите! Я не понимаю, что это!
- Метод: vehicle:fix(...)
Обязательные аргументы
- theVehicle: машина которую вы чините.
Возвращает
Возвращает true в случае успеха, false если указаны неправильные аргументы.
Примеры
Этот пример чинит все машины на карте.
-- Retrieve a table containing all the vehicles that exist vehicles = getElementsByType ( "vehicle" ) -- Loop through the list, storing the vehicle from the table in the variable vehicleValue for vehicleKey, vehicleValue in ipairs(vehicles) do -- fix the vehicle fixVehicle ( vehicleValue ) 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