Polizei Menü: Nicht anzeigen, wenn in Fahrzeug
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user