IsVehicleLocked: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This will tell you if a vehicle is locked. | |||
This | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">isVehicleLocked ( vehicle )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isVehicleLocked ( vehicle theVehicle )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''theVehicle''': The [[vehicle]] that you need to obtain the locked status of. | ||
===Returns=== | |||
Returns ''true'' if the vehicle specified is locked, ''false'' if is unlocked or the vehicle specified is invalid. | |||
==Example== | ==Example== | ||
This example creates a vehicle then displays if it is locked or not in the chatbox (vehicles are created unlocked). | |||
<syntaxhighlight lang="lua">newcar = createVehicle ( 520, 1024, 1024, 1024 ) | <syntaxhighlight lang="lua">newcar = createVehicle ( 520, 1024, 1024, 1024 ) | ||
if isVehicleLocked ( newcar ) | if isVehicleLocked ( newcar ) |
Revision as of 15:29, 15 August 2006
This will tell you if a vehicle is locked.
Syntax
bool isVehicleLocked ( vehicle theVehicle )
Required Arguments
- theVehicle: The vehicle that you need to obtain the locked status of.
Returns
Returns true if the vehicle specified is locked, false if is unlocked or the vehicle specified is invalid.
Example
This example creates a vehicle then displays if it is locked or not in the chatbox (vehicles are created unlocked).
newcar = createVehicle ( 520, 1024, 1024, 1024 ) if isVehicleLocked ( newcar ) outputChatBox ( "Vehicle is locked." ) else outputChatBox ( "Vehicle is unlocked." ) end
See Also
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates