Enum VehicleLockStatus
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public enum VehicleLockStatus
Fields
Name | Description |
---|---|
CanBeBrokenInto | Can be broken into the car. When a Ped breaks the window of the door the Ped is entering through, the value will be set to Unlocked. If the glass is broken when a Ped is about to open the Vehicle's door, the value immediately will be set to Unlocked. |
CanBeBrokenIntoPersist | The Vehicle is locked and must be broken into. Even if the door the Ped is entering through has its window broken, Peds will always have to try to break it and enter the Vehicle consecutively. |
CannotBeTriedToEnter | |
CannotEnter | The Vehicle cannot be entered regardless of whether the door is open or closed, or missing entirely. Warping into the Vehicle is the only way to make Peds get in on a seat. |
CannotEnterIfDriverExists | For players, the Vehicle cannot open any door if it has a driver. For AI, entering vehicle tasks will not start if the target Vehicle's lock status is set to this value and the Vehicle has a driver. |
DriversSeatOnlyNoJacking | Peds can only get in on the driver's seat normally only when the Vehicle does not have a driver. Warping into the Vehicle is the only way to make Peds get in on any other seat. Peds cannot get any other Peds out of the Vehicle to kill them. |
IgnoredByPlayer | Players cannot attempt to enter the Vehicle with the enter vehicle key or button. |
Locked | |
LockedForPlayer | |
None | |
PlayerCannotEnter | Players cannot enter the Vehicle regardless of whether the door is open or closed, or missing entirely. Warping into the Vehicle is the only way to make Peds get in on a seat. |
PlayerCannotLeaveCanBeBrokenIntoPersist | Doesn't allow players to exit the Vehicle with the exit vehicle key or button. The Vehicle is locked and must be broken into even if already broken into (the same as CanBeBrokenIntoPersist). |
StickPlayerInside | The Vehicle is locked and must be broken into even if already broken into (the same as CanBeBrokenIntoPersist). Doesn't allow players to exit the Vehicle with the exit vehicle key or button. |
Unlocked |