Jump to content

Bodymenn

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Bodymenn

  1. Hey guys, i have setup a RealTime script to sync the server world time with the realtime, but if i want to check the Time the time will return wrong numbers. [Command("settime")] public void Settime(Client player, int hrs, int min) { NAPI.World.SetTime(hrs, min, 0); NAPI.Chat.SendChatMessageToPlayer(player, $"~g~[WELT ZEIT]~w~ Du hast die Zeit auf: ~y~{hrs}:{min}~w~Uhr gestellt."); } [Command("time")] public void Time(Client player) { NAPI.Chat.SendChatMessageToPlayer(player, $"~g~[SERVER]~w~ Aktuell ist es {NAPI.World.GetTime().ToString()} Uhr"); } } btw. every minute the server will set the world time to real time. NAPI.World.SetTime(DateTime.Now.Hour, DateTime.Now.Minute, 0);
  2. Thank You i got it... My fault was that i tried this code on Serverside JS not on Clientside JS. Wrong Folder
  3. i tried , but nothing happend. mp.events.add("TEST", (player, color) => { player.outputChatBox("Test"); }); [Command("test")] public void Test(Client player, int color) { player.TriggerEvent("TEST", player, color); }
  4. Hey guys , is it possible to trigger a Client Package Function with a C# Brdige Command? C# Bridge [Command("command")] public void command(Client player, String color) { //THE CALL TO .js CLIENT PACKAGE? } JS Client Package function test(test, color) { } I hope u guys know what i mean :3
  5. Guten Abend, kann mir zufällig jemand helfen? Undzwar geht es um den Rage Chat. Und zwar möchte ich gerne den Chat nur über die Bridge Kontrollieren seih es das Aussehn oder die Funktion. Nur hab ich das Problem, dass bei einer Chat Nachricht die der C# Bridge auftaucht UND der von Rage:MP kann ich das umgehen oder muss ich da auf das Update 4.0 warten wo es die Funktion [DisableDefaultChat] Released wird?
×
×
  • Create New...