SetVehicleLocked

From GT-MP
Jump to: navigation, search
SetVehicleLocked
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Locks or unlocks a vehicle.

Syntax

API.setVehicleLocked(NetHandle vehicle, bool doorLockStatus);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.
  • doorLockStatus: parameter input should be in bool type.

Usage example(s)

Example Description

API.setVehicleLocked(NetHandle vehicle, bool doorLockStatus);

References