Fixed tuning issue, added new dlc cars to car list, added command to open tuning menu

This commit is contained in:
hydrant
2018-12-14 18:08:01 +01:00
parent 458c25d074
commit 3fc109ff8b
4 changed files with 70 additions and 11 deletions

View File

@@ -878,7 +878,8 @@ namespace reallife_gamemode.Server.Commands
return;
}
uint uHash = NAPI.Util.GetHashKey(hash);
if(!uint.TryParse(hash, out uint uHash))
uHash = NAPI.Util.GetHashKey(hash);
if(!VehicleManager.IsValidHash(uHash))
{
@@ -2028,6 +2029,18 @@ namespace reallife_gamemode.Server.Commands
BankManager.SetMoney(player, business, amount, "Admin");
}
[Command("showtuningmenu", "~m~Benutzung: ~s~/showtuningmenu")]
public void CmdAdminShowtuningmenu(Client player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
player.TriggerEvent("showTuningMenu");
}
#endregion
#region ALevel1338