GetVehicleLocked

From RAGE Multiplayer Wiki
Revision as of 16:51, 12 December 2019 by Avoid (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the vehicle's lock status.


C# Syntax

bool NAPI.Vehicle.GetVehicleLocked(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

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

Example

bool lockStatus = NAPI.Vehicle.GetVehicleLocked(vehicle);
if(lockStatus)
{
    //Vehicle is locked
}