Skip to content

Commit

Permalink
Merge pull request #227 from blockba5her/master
Browse files Browse the repository at this point in the history
Add a get-in check for locking your personal vehicle
  • Loading branch information
TomGrobbe authored Aug 15, 2020
2 parents 1bf5247 + c1f7117 commit 0be816e
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 0be816e

Please sign in to comment.