IsVehicleLocked: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
<syntaxhighlight lang="lua">newcar = createVehicle ( 520, 1024, 1024, 1024 ) | <syntaxhighlight lang="lua">newcar = createVehicle ( 520, 1024, 1024, 1024 ) | ||
if isVehicleLocked ( newcar ) | if isVehicleLocked ( newcar ) | ||
outputChatBox ( "Vehicle is locked." ) | |||
else | else | ||
outputChatBox ( "Vehicle is unlocked." ) | |||
end</syntaxhighlight> | end</syntaxhighlight> |
Revision as of 02:35, 20 May 2006
Description
This function returns a boolean value (true / false) depending on whether the specified vehicle is locked.
Syntax
isVehicleLocked ( vehicle )
Required Arguments
- vehicle: The vehicle that you need to obtain the locked status of.
Example
newcar = createVehicle ( 520, 1024, 1024, 1024 ) if isVehicleLocked ( newcar ) outputChatBox ( "Vehicle is locked." ) else outputChatBox ( "Vehicle is unlocked." ) end