Vehicle::setDoorShut
Shuts the door of the vehicle.
doorIndex:
- 0 = Front Left Door
- 1 = Front Right Door
- 2 = Back Left Door
- 3 = Back Right Door
- 4 = Hood
- 5 = Trunk
- 6 = Back
- 7 = Back2
Syntax
``` vehicle.setDoorShut(doorIndex, closeInstantly); ```
Required Arguments
- doorIndex:
- closeInstantly:
Return value
- Undefined
Example
When in a vehicle, pressing the N key will open/close the hood