This commit is contained in:
michael.reiswich
2021-03-31 19:46:52 +02:00
parent 20f6888569
commit 42b7be7770
2 changed files with 4 additions and 5 deletions

View File

@@ -57,9 +57,8 @@ cityHall(globalData);
import adminSpeed from './admin/aspeed'; import adminSpeed from './admin/aspeed';
adminSpeed(); adminSpeed();
import voice from './Voice/main';
//import voice from './Voice/main'; voice(globalData);
//voice(globalData);
import handMoney from './Gui/handmoney' import handMoney from './Gui/handmoney'
handMoney(globalData); handMoney(globalData);

View File

@@ -235,14 +235,14 @@ namespace ReallifeGamemode.Server.Wanted
} }
} }
} }
[RemoteEvent("setPrisonerFree")] [RemoteEvent("setPrisonerFree")]
public void Release_Jail(Player cop, string client) public void Release_Jail(Player cop, string client)
{ {
Player player = PlayerService.GetPlayerByNameOrId(client); Player player = PlayerService.GetPlayerByNameOrId(client);
if (player == null) if (player == null)
return; return;
User user = player.GetUser(); User user = player.GetUser();
if (Jailtime.ContainsKey(user.Id)) if (Jailtime.ContainsKey(user.Id))
{ {