Skip to main content

SetVehicleLocked

Locks or unlocks a vehicle.

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

{{#tag:syntaxhighlight| Vehicle.SetVehicleLocked(vehicle, doorLockStatus); |lang=csharp}} }}