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

@@ -51,6 +51,9 @@ export default function (globalData: IGlobalData): void {
}); });
mp.events.add('CEF:Login_RegisterRequest', (password: string) => { mp.events.add('CEF:Login_RegisterRequest', (password: string) => {
if (password.length < 6) {
return;
}
mp.events.callRemote('CLIENT:Login_RegisterRequest', password); mp.events.callRemote('CLIENT:Login_RegisterRequest', password);
}); });

View File

@@ -809,7 +809,7 @@ namespace ReallifeGamemode.Server.Managers
[RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")] [RemoteEvent("CLIENT:InteractionMenu_CallService_Sani")]
public void CallServiceSani(Player player) 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."); player.SendNotification("~r~[Fehler] ~w~Du kannst keinen Sanitäter rufen.");
return; return;