Skip to main content

GetVehicleLocked

Returns the vehicle's lock status.

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the lock status in bool type.

{{#tag:syntaxhighlight| bool lockStatus = Vehicle.GetVehicleLocked(vehicle); if(lockStatus) {

   //Vehicle is locked

} |lang=csharp}} }}