ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isVehicleLocked

Function

isVehicleLocked

Server and clientVehiclesIdentical to MTA:SA

Checks whether the vehicle's doors are locked with setVehicleLocked.

Syntax

bool isVehicleLocked(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

true when locked.

Example

addEventHandler("onVehicleStartEnter", root, function(player)
    if isVehicleLocked(source) then
        outputChatBox("Ten pojazd jest zamkniety.", player, 255, 80, 80)
    end
end)

See also