IsVehicleLocked

From Multi Theft Auto: Wiki
Revision as of 09:53, 15 April 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns a boolean value (true / false) depending on whether the specified vehicle is locked.

Syntax

bool isVehicleLocked ( vehicle 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 )
  serverChat ( "Vehicle is locked." )
else
  serverChat ( "Vehicle is unlocked." )
 end