IsVehicleLocked

From Multi Theft Auto: Wiki
Revision as of 19:14, 16 August 2007 by Arc (talk | contribs)
Jump to navigation Jump to search

This will tell you if a vehicle is locked.

Syntax

bool isVehicleLocked ( vehicle theVehicle )

Required Arguments

  • theVehicle: The vehicle that you want 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 ) then
    outputChatBox ( "Vehicle is locked." )
else
    outputChatBox ( "Vehicle is unlocked." )
end

See Also