Fixed tuning issue, added new dlc cars to car list, added command to open tuning menu
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user