sanitaeter koennen onduty keine sanitaeter rufen

This commit is contained in:
Fabian Wessels
2021-04-07 21:49:47 +02:00
parent c9452c0fca
commit e93db47d8e
2 changed files with 4 additions and 1 deletions

View File

@@ -809,7 +809,7 @@ namespace ReallifeGamemode.Server.Managers
[RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")]
public void CallServiceSani(Player player)
{
if (player.GetUser().FactionId == 2)
if (player.GetUser().FactionId == 2 && player.IsDuty())
{
player.SendNotification("~r~[Fehler] ~w~Du kannst keinen Sanitäter rufen.");
return;