Skip to content

Commit

Permalink
add a get-in check for locking your vehicle
Browse files Browse the repository at this point in the history
this can have surprisingly unexpected consequences lol
  • Loading branch information
DevBlocky committed Aug 15, 2020
1 parent 1bf5247 commit c1f7117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2861,7 +2861,7 @@ private async Task PersonalVehicleOptions()
{
if (MainMenu.PermissionsSetupComplete && MainMenu.PersonalVehicleMenu != null && IsAllowed(Permission.PVLockDoors) && MainMenu.PersonalVehicleMenu.CurrentPersonalVehicle != null)
{
if (!Game.PlayerPed.IsInVehicle(MainMenu.PersonalVehicleMenu.CurrentPersonalVehicle))
if (!Game.PlayerPed.IsInVehicle(MainMenu.PersonalVehicleMenu.CurrentPersonalVehicle) && !Game.PlayerPed.IsGettingIntoAVehicle)
{
if (Game.PlayerPed.Position.DistanceToSquared(MainMenu.PersonalVehicleMenu.CurrentPersonalVehicle.Position) < 30.0f)
{
Expand Down

0 comments on commit c1f7117

Please sign in to comment.