add option to call taxi service in interaction menu (key down)

This commit is contained in:
hydrant
2019-05-20 22:38:19 +02:00
parent 9dda9b195d
commit 6edf9ebd0b
7 changed files with 67 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
using Newtonsoft.Json;
using ReallifeGamemode.Server.Entities;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Job;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Util;
@@ -246,6 +247,13 @@ namespace ReallifeGamemode.Server.Managers
}
}
}
[RemoteEvent("CLIENT:InteractionMenu_CallService_Taxi")]
public void CallServiceTaxi(Client player, string street, string zone)
{
string msg = $"!{{02FCFF}}{player.Name} hat in der {street} in {zone} ein Taxi gerufen.";
ChatService.BroadcastJob(msg, JobManager.GetJob<TaxiDriverJob>());
}
#endregion
#region Spielerinteraktionen PFEILTASTE-LINKS
[RemoteEvent("openTradeInventory")]