SetVehicleLocked

From GTA Network Wiki
Jump to: navigation, search

SetVehicleLocked
Server-Side Function

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

Locks or unlocks a vehicle.

Syntax

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

Required Arguments

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

Usage example(s)

Example Description

NAPI.Vehicle.SetVehicleLocked(vehicle, doorLockStatus);

Changelog

Version Description
1.0 Release.

References