GetVehicleLocked

From GTA Network Wiki
Jump to: navigation, search

GetVehicleLocked
Server-Side Function

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

Checks if a vehicle is locked.

Syntax

bool NAPI.Vehicle.GetVehicleLocked(Vehicle vehicle);

Required Arguments

  • vehicle: parameter input should be in Vehicle type.

NOTE: This function returns data in bool type.

Usage examples

  • If the vehicle is locked
Vehicle vehicle1 = NAPI.Vehicle.CreateVehicle(VehicleHash.Bullet, vehiclePos, vehicleRot, 0, 0);

if(NAPI.Vehicle.GetVehicleLocked(vehicle1))
{
   // Do your stuff
}

Changelog

Version Description
1.0 Release.

References