GetVehicleDoorState

From Multi Theft Auto: Wiki
Revision as of 21:01, 11 June 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function returns the current state of a specifed door on the vehicle.

Syntax

getVehicleDoorState ( vehicle, door )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to know the door state of.
  • Door: A whole number between 0 and 5.

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = getVehicleDoorState ( newcar, 2 )
outputChatBox ( "The 3rd door state on this car: " .. state )

See Also