GetVehicleLocked: Difference between revisions
(Created page with "Returns the vehicle's lock status. {{CSharpContainer| {{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleLocked(Vehicle vehicle);}} {{Parameters}} *'''...") |
No edit summary |
||
| Line 5: | Line 5: | ||
{{Parameters}} | {{Parameters}} | ||
*'''vehicle:''' parameter input should be in '''Vehicle''' type | *'''vehicle:''' parameter input should be in '''Vehicle''' type | ||
'''NOTE:''' This function returns the | '''NOTE:''' This function returns the lock status in '''bool''' type. | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
Latest revision as of 16:51, 12 December 2019
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
}