From 8e2295a18f6435c3bb99cb02c544c8c4b70cb441 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 11 May 2020 16:49:33 +0200 Subject: [PATCH] =?UTF-8?q?Polizei=20Men=C3=BC:=20Nicht=20anzeigen,=20wenn?= =?UTF-8?q?=20in=20Fahrzeug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server.Core/Menus/PoliceDepartment.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ReallifeGamemode.Server.Core/Menus/PoliceDepartment.cs b/ReallifeGamemode.Server.Core/Menus/PoliceDepartment.cs index ce5fdf78..cc12515e 100644 --- a/ReallifeGamemode.Server.Core/Menus/PoliceDepartment.cs +++ b/ReallifeGamemode.Server.Core/Menus/PoliceDepartment.cs @@ -68,11 +68,21 @@ namespace ReallifeGamemode.Server.Core.Menus private void OnPlayerEnterPoliceDepartment(IColShape colShape, IPlayer player) { + if (player.IsInVehicle) + { + return; + } + player.TriggerEvent("PoliceDepartment_EnterColShape"); } private void OnPlayerExitPoliceDepartment(IColShape colShape, IPlayer player) { + if (player.IsInVehicle) + { + return; + } + player.TriggerEvent("PoliceDepartment_ExitColShape"); } }