Search the Community

Showing results for tags 'C'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish


  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me






Found 8 results

  1. Once I faced a problem with NAPI.World.GetTime and didn't find on it the adequate answer. Can anyone help my code. Bonus will make a simple server time system class server_side : Script  { // The global variables that will be replace our GetTime int serverHour = 6; int serverMin = 0; int serverSec = 0; // A method that, when accessed, will change the time on the server private void server_Time(int hour, int minute, int second) { NAPI.World.SetTime(hour, minute, second); serverHour = hour; // ---------------------------------- serverMin = minute; // save in our variable time serverSec = second; // --------------------------------- }  // Bonus code that creates server time (1 server minute = 20 seconds) async void time() { while (true) { serverMin++; NAPI.World.SetTime(serverHour, serverMin, 0); if (serverMin == 60) { if (serverHour >= 23) { serverHour = 0; serverMin = 0; NAPI.World.SetTime(serverHour, serverMin, 0); } else { serverHour++; serverMin = 0; NAPI.World.SetTime(serverHour, serverMin, 0); } } await Task.Delay(20000); } } [Command("time")] // command to know the current time on the server public void CMD_time(Client client) { if (serverMin < 10) { NAPI.Chat.SendChatMessageToPlayer(client, $"Current time {serverHour.ToString()}:0{serverMin.ToString()}"); } else { NAPI.Chat.SendChatMessageToPlayer(client, $"Current time {serverHour.ToString()}:{serverMin.ToString()}"); } } // Change the time on the server [Command("settime")] public void CMD_settime(Client client, int hrs, int min) { server_Time(hrs, min, 0); NAPI.Chat.SendChatMessageToPlayer(client, $"Time was change to {hrs}:{min}"); } // Event that the time worked [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.World.SetTime(serverHour, serverMin, serverSec); time(); // Cycle start time at the start of the server } sorry for my russian english xd i hope this will help u ❤️
  2. Hey Guys When i Add 'enable-clientside-cs ' File into my rage MP Folder i get Fatal error While im trying to Open My rage Any one knows this Problem ? And i cant get connect To ANy servers On rage While i have That Error
  3. Version 2.1


    With this script you can easily create custom timer. The file is fully commented and should be easy to understand. The file in Shared is required - and then use either the file in Server or in Client depending on where you are using it. You have to use the constructor to create the timer. Examples: Examples: // Yes, the method can be private // private void testTimerFunc(Client player, string text) { NAPI.Chat.SendChatMessageToPlayer(player, "[TIMER] " + text); } void testTimerFunc() { NAPI.Chat.SendChatMessageToAll("[TIMER2] Hello"); } [Command("ttimer")] public void timerTesting(Client player) { // Lamda for parameter // new Timer(() => testTimerFunc(player, "hi"), 1000, 1); // Normal without parameters // new Timer(testTimerFunc, 1000, 1); // Without existing method // var timer = new Timer(() => { NAPI.Chat.SendChatMessageToPlayer(player, "[TIMER3] Bonus is da best"); }, 1000, 0); // Kill the timer // timer.Kill(); }
  4. How to make the implementation of auto indicators in C #?
  5. Hello, i downloaded this character creator by @rootcause and its pretty insane but i have the following question: I dont want it by a command like here with "/creator", i need an Event that i can call in C#. for ex. like : SendPlayerToCreator(player); or smth like that Is that possible?
  6. Hi guys! Can I use Graphics.DrawSprite() method and how? The wiki has a JS language description only. I want to make a C# program, and I need this function.
  7. Is there a way to tigger from Serverside JS to SS C# and back? Without tigger to Clientside and then back.
  8. Guten Abend zusammen. Ich Versuche mich derzeit Daran ein altes GT-MP Script zu RageMP/GTANetwork zu Konvertieren. Dabei stoße ich immer wieder auf kleine Problem, die ich bisher aber alle Lösen konnte. Aktuell stehe ich aber vor einem Problem, es geht dabei um folgende Funktion API.shared.startTimer Bisher konnte ich allerdings keine Vergleichbare Funktion in RageMP finden. Teilweise konnte ich mit folgendem Arbeiten. NAPI.Task.Run(() => { // Some code }, delayTime: 2000); Allerdings habe ich Aktuell folgenden Code bei GT-MP client.setData("usagetimer", API.shared.startTimer(1000, false, () => { ProgressBarService.ChangeProgress(client, count); if(count >= time) { InterfaceService.ProgressBarService.HideBar(client); ItemAction(client, player, item); API.shared.stopTimer(client.getData("usagetimer")); client.resetData("usagetimer"); API.shared.stopPlayerAnimation(client); return; } count++; })); Gibt es derzeit eine Möglichkeit dieses in RageMP umzusetzen?