tuning nur fahrer

This commit is contained in:
hydrant
2020-04-13 11:52:34 +02:00
parent ed4b1d249c
commit 12eecad1f9
2 changed files with 7 additions and 1 deletions

View File

@@ -1589,6 +1589,12 @@ namespace ReallifeGamemode.Server.Commands
return;
}
if (!player.IsInVehicle || player.VehicleSeat != 0)
{
ChatService.ErrorMessage(player, "Du musst Fahrer sein, um das Menü zu öffnen");
return;
}
player.TriggerEvent("showTuningMenu");
}