Skip to main content

SetVehicleLocked

Locks or unlocks a vehicle.

C#​

void NAPI.Vehicle.SetVehicleLocked(Vehicle vehicle, bool doorLockStatus);

Parameters​

  • vehicle: parameter input should be in Vehicle type
  • doorLockStatus: parameter input should be in bool type

Example​

NAPI.Vehicle.SetVehicleLocked(vehicle, doorLockStatus);