Jump to content

Search the Community

Showing results for tags 'solved'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
  • 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








Found 21 results

  1. For those who face this error and cannot connect to public or personal servers, I have a solution for you. Follow the exact steps listed below: 1. Restart the PC or be sure that you closed every instance of GTA V & Rage MP. 2. Go to Documents(usually located in your Root disk, where the operating system is installed), find 'Rockstar Games', open it and delete the 'Social Club' folder. 3. Open updater.exe(located in the Rage MP folder) and connect to a server. 4. Rage will open the Rockstar Games Launcher and will ask you to connect to your Rockstar Games account, so do that. 5. After that, you'll notice that Rage MP has stopped, open Rage MP again and connect to a server. It took me a few days to solve this problem, leave a reply if it helped you somehow. - STKappa
  2. Hello! I need to add a lot of custom objects to my server, but when I add more than 250, the server crashes on startup. I've tried the Soup Walls dlc.rpf from here, which has 270 items: https://rage.mp/forums/topic/1731-soups-objects/ And when I saw that it crashed, I divided it into several .rpf files until I realized the limit was 250 aprox. Any solution? Thanks in advance
  3. Hello, my simple C# code cant compile Break "System.TypeLoadException: 'Could not load type 'GTANetworkAPI.Client' from assembly 'Bootstrapper, Version=, Culture=neutral, PublicKeyToken=null'.'" Code using System; using GTANetworkAPI; namespace Server { public class Main : Script { [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { NAPI.Util.ConsoleOutput("Server started"); } [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Client player) { //NAPI.Util.ConsoleOutput($"{Player.Name} has connected"); player.SendChatMessage("Welcome to our server!"); } } }
  4. As the title states. I've read the GTAN wiki and theres an attribute for the .ChatMessage event ([DisableDefaultChat]) but it also says its not implemented yet, waiting to be released on 0.4. So, as of right now. Is there a way to prevent the default chat messages from behaving the way they do? (The message will be sent to everyone wether you want to or not). Cheers
  5. I had the problem like many other guys that GTA V was working by itself, but when in RageMP a server was selected, in the Launching Game part Rockstar Launcher was opened and after 2 3 sec RageMP and Rockstar was closed and nothing else happened !! no error, no crash, no message, just simply closed! Finally after trying many things like reinstall everything (even redownloaded 104 GB GTA V files!!!) I closed all open applications in background (like Razer App Engine, Razer Cortex, Google Sync, Inter Driver Updater and ,,,) then suddenly it worked and from that point I'm playing fine without any problem. Just wanted to share my solution, maybe works for others too.
  6. How can I use or make a periodic event? Let's say I want to give money to players every 1 hour, just like a sign check. I did something, but it doesn't work, I used System.Threading; , but it crashes when I call a function from a main thread inside the background thread function... EDIT: It crashed because I was making logs.txt, I wrote down the solution for the logs.txt
  7. I can't compile the code, I don't know why. I even changed the Player to Client and still it does not work....also they said that the Client has been changed to Player. Image Image 2 Is the Player changed to Client? Because in the docs it says Client, and in a tutorial video it says Player and on the forum someone said it is Player and not Client anymore. I am using rage server 1.1 I think ( Well the latest server that is currently available) The problem is this: The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?) I followed this tutorial https://www.youtube.com/watch?v=HLRFF6A36mM the code is here: https://pastebin.com/G4UPTbup I've tried adding this line of code: using GTANetworkMethods; but it still didn't repair the problem, because I have ended up having a problem with the item.SendChatMessage, even though it did stop marking the Player as an error I did replace the Player with Client, and still no success, the script does not load when the server runs if it is replaced with the Client instead of Player. Please do help, I don't know how to fix this problem
  8. this is deprecated https://wiki.gtanet.work/index.php?title=C.Register ?? How to get args from command? this is not working namespace myresourcename { public static class Commands // Make sure to not inherit Script class in order to avoid registering the command on stratup { [Command] // Don't forget to add the Command Attribute //public static void TestCmd(Player player) // working public static void TestCmd(Player player, string args) // not working { NAPI.Util.ConsoleOutput("TestCommand Invoked!"); } } public class Main : Script { [ServerEvent(Event.ResourceStart)] public void ResourceStart() { var methodInfo = Type.GetType("myresourcename.Commands").GetMethod("TestCmd"); if (methodInfo != null) { var args = new RuntimeCommandInfo {Alias = "test", Description = "Some description"}; NAPI.Command.Register(methodInfo, args); } } } }
  9. Hello, I've been experimenting with RAGE and following a tutorial that I've found on YT. All things aside I've created everything step by step for CEF to work. The clientside script works, I get the cursor and freeze the user but cannot see the html window with my simple sample. I've tried two html files. A simple one and one with React. Can anyone tell me why am I not seeing the HTML screen? Also does anyone have an example on how to use react generated build files? I assume I cannot use a index.html file + .js chunks react generates on npm run build. I've seen a forum post about react but that's a bit outdated. update: I have found that my LoginCEF.Active though is set to true still is false. Any suggestions would be nice! Client side code: using System; using System.Collections.Generic; using System.Text; using RAGE; namespace WaspNetwork_Client { class Main: Events.Script { RAGE.Ui.HtmlWindow LoginCEF = null; public Main() { LoginCEF = new RAGE.Ui.HtmlWindow("packages://a.html"); // a simple html file. Events.Add("Login",SendLoginInfoToServer); Events.Add("ShowCEF", ShowLoginPage); } public void SendLoginInfoToServer(object [] args) { RAGE.Events.CallRemote("Login",(string)args[0],(string)args[1]); } public void ShowLoginPage(object [] args) { var a = (bool)args[0]; LoginCEF.Active = true; RAGE.Ui.Cursor.Visible = a; Chat.Show(!a); RAGE.Elements.Player.LocalPlayer.FreezePosition(a); } } } Server side: using GTANetworkAPI; using System; using System.Linq; using System.Text.RegularExpressions; namespace WaspNetwork { public class Main : Script { [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Player player) { NAPI.ClientEvent.TriggerClientEvent(player,"ShowCEF",true); } [ServerEvent(Event.ResourceStart)] public void OnResourceStart() { // Disable server chat NAPI.Server.SetGlobalServerChat(false); } [RemoteEvent("Login")] public void Login(Player player, string username,string password) { Console.WriteLine(username,password); } } }
  10. When trying to connect to a server with C# enabled, there is a constant reconnect. And when C# is turned off, it connects to the server quietly UPD. Problem in Napi.Task.Run
  11. How to remove shirt? Only figured about legs by now - player.setClothes(4, 21, 0, 0);
  12. I need help here once. When I start the server this message appears in the console: https://prnt.sc/uk8th7 and the server closes directly I would like to thank you for your help
  13. I keep entering nearby passenger seats or activating cruise control when typing something. How can I get rid of this?
  14. hey, i am fairly new to this and was wondering how do i change a car. This is what i have so far mp.events.addCommand("vehcol", (player, fullText, colorpick1, colorpick2) => { if (colorpick1 == undefined) { colorpick1 = 111; } else { if (colorpick2 == undefined) { colorpick2 = 88; } else { let playercar = player.vehicle playercar.setColor(colorpick1, colorpick2); } } }); I found this works just fine if i insert the actual numbers into playercar.setColor(111, 88); however i would prefer it to work with the variables. Sorry for the terrible code, still new thanks!
  15. Hello, I am working with Cops & Robbers Gamemode 0.11 By Protocole I noticed this gamemode writed on Javascript only, no C# code I trying to fix login form, but I cant debug any errors How to debug HTML, JS code?
  16. Hello, I've a problem with the vehicle system an no idea how to fix it. When I spawn a vehicle, it doesn't get any damage, but I get the first time into the vehicle, it can get damage. However, when I get out again, I can do what I want, it gets no more damage (only visually, it will still got damaged). Even a renewed entry brings nothing. The effect always occurs after the first time getting out of the vehicle. Every player on my server has the same Problem, so it's not a problem of my client (only) i think. Is there a way to fix it?
  17. Hello to all! I have a question about chat messaging. I read the OnChatMessage documentation. There was an example for filtering bad words. The [DisableDefaultChat] attribute was used to disable the default chat behavior, but it was written that this attribute was not yet implemented. What can I use instead of this attribute for the same behavior? Thank you in advance
  18. Hello to all, I started learning API on the c # serve side. I tried to write a spawn system player. I checked the documentation and found the code: [DisableDefaultOnConnectSpawn] [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Client player) { NAPI.Player.SpawnPlayer(player, new Vector3(2, 5, 8)); // Will spawn the player at the given position } My compiler is showing me an error: the type or namespace “DisableDefaultOnConnectSpawnAttribute” could not be found. Can anybody help me? Thank you in advance
  19. Hello everyone! I've got some errors with references to assemblies, but I've managed to solve the most of them except one with Entity Framework Core. So, the problem is: CS0234: The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) I added the Microsoft.EntityFrameworkCore.dll reference to my resource, and then restarted the server. I got bunch of this error: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. If I keep this reference, then I get just these errors, nothing else. So I decided to delete this reference, and add MySql.Data.EntityFrameworkCore.dll and Microsoft.EntityFrameworkCore.Relational.dll. The results are the following: CS0246: The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbContextOptionsBuilder' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbSet<>' could not be found (are you missing a using directive or an assembly reference?) CS0012: The type 'DbContextOptionsBuilder' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.EntityFrameworkCore, Version=, Culture=neutral, PublicKeyToken=adb9793829ddae60'. I don't know what should I do now. I've never used .NET Core, so if anyone could help me a bit, it would be awasome. Thanks, manaszon!
  20. When I connect to the servers, every thing seems normal, but when i start to play, i can't see any players or cars in the server, but I still able to see the chat, as if I was desynchronized or logged in a empty server. I already reinstalled the rage, but it won´t caused any changes. I have another PC in my house, and on this computer it's was just fine, so i connected both at the same server, and at the cumputer who do not have any problems at the rage, I was seeing every player on the server normally, except myself at the computer with the troubles to connect, anyone knows how to solve this, please?
  21. Hi, as the title says, i'm trying to pass an array into a cef.execute function as here is: browser.inject(`popup("${type}","${title}",${args})`); function inject(execute) { browser.execute(execute); } The array is Args, where it is by default: args = [ ["Faction", "Test"] ] I'm trying to solve this problem, but i'm stuck. If anybody could help it would be great Problem solved, see below!
  • Create New...