- Documentation
- Shared functions
- isVehicleLocked
Function
isVehicleLocked
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)