SetVehicleDoorState

From GTA Network Wiki
Jump to: navigation, search

SetVehicleDoorState
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This function is used to toggle a door state for a vehicle.

See Vehicle Doors.

Syntax

void NAPI.Vehicle.SetVehicleDoorState(Vehicle vehicle, int door, bool open);
  • vehicle: parameter input should be in Vehicle type.
  • door: parameter input should be in int type.
  • open: parameter input should be in bool type.

Usage example(s)

NAPI.Vehicle.SetVehicleDoorState(vehicle, 0, true); 

Changelog

Version Description
1.0 Release.

References