Jump to content
RAGE Multiplayer Community

Search the Community

Showing results for tags 'csharp'.

  • 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






  1. Hey all, I need some help to find out how to workaround or fix my code, since there are compilation errors ("Missing assembly x"). - The error output is down below. Here is my code: public static void AddClothsToMenu(UIMenu menu, JArray array, int componentID, JArray ownedClothes) { foreach (JObject element in array) { int drawable = int.Parse(element["drawable"].ToString()); int texture = int.Parse(element["texture"].ToString()); int price = int.Parse(element["price"].ToString());
  2. Version 1.0.0


    This is a C# port of the Player List script by rootcause. -small.gif All credits go to root for the actual resource and the description, which i just yoinked and slightly altered. Source code will be available on github oneday...
  3. Hey everyone, I encountered a problem which I was not able to find a solution to solve my issue. I want to use a JObject parsed from a .json file. I used FileStreams and StreamReaders for that and got the error "C# filestreams could not be used" on login on the client side. My code is: public static JObject GetClothData(Sex sex) { string plainText = string.Empty; using (FileStream fs = File.OpenRead($"Clothes{(sex == Sex.Male ? "M" : "F")}.json")) { using (StreamReader sw = new StreamReader(fs)) { plainText = sw.ReadToEnd(); sw.Close(); }
  4. Version 1.0.1


    RAGEMP-DiscordIntegration This wrapper allows you easily create an instance of a discord bot within your RAGE:MP server. Features: 1. Send messages to discord from your RAGE:MP Server. 2. Send messages to your RAGE:MP Server from your Discord server. 3. Register specific channel for the bot to listen. (Can be changed during runtime). 3. Remove specific channel for the bot to STOP listening. (Can be changed during runtime). 4. Update bot status on setup and/or during runtime How to use the wrapper 1. Add the RAGEMP-DiscordIntegration.dll as a reference to your
  5. Version 2.0


    Hello everybody. Some weeks ago i made a post on this forum's spanish section releasing my old gamemode, which I have been porting to RAGE:MP right after the bridge was released for the first time. In the beginning it was only in spanish, so I didn't thought it was a good idea to release to the whole community, as not so many people here speak spanish (I guess) but, after seeing that more people than I had expected downloaded it and also taking the suggestion George made me, I decided to start translating it and also, allowing to be multilanguage in a future. That above is the main reason
  6. Hello everyone, After I updated my server to 1.1.0-DP1-2 and converted my C# Code to that version, I got an error in console telling me: -> Starting RageZ resource.. RageZ: loading scripts.. found 6 script(s) RageZ: reading referenced assemblies.. found 7 reference(s) RageZ: compiling scripts.. /scripts/World.cs(24,28): error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.Convert' CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.Convert' -> /scripts/World.cs:23 Value cannot be null. (Parameter 'source') -&g
  7. Is there any way to disable "safe threading aka NAPI.Task.Run" and use REAL Tasks/Threads? Or i need to get any locker from NAPI.Task.Run so i can check is it executed (blocking tasks) is there any way including RAGEMP recompiling using something like dnSpy/DotPeek?
  8. Version 1.2


    DavWebCreator DavWebCreator is a C# class 'library' which provides you the possibility to generate HTML structures with according styles and logic behind each element. There are already plenty of examples online here: https://DavWebCreator.com But anyway I will provide you here at least one example 🙂 Compatible with If you want to report a bug or just want some help join my discord: https://discord.gg/JYNDrSh Preview Code behind: [Command("yesno")] public void YesNoDialogExample(Client player) {
  9. Hello. I've been meddling around with the RageMP API and I've learned most of it myself with the help of the discord members. Shoutout to Xabi, Sake and everyone else for helping me out with this language. Anywho I've come to realise that when I had started out there was nothing that would guide me through the process of making a server or creating the script for that matter. So here I bring you a YouTube playlist of the RageMP C# language tutorial. It is still under progress but I keep uploading new tutorials daily. And I mostly describe most of the elements so the videos mig
  10. Version 1.0.0


    This function helps you to add keys binding if you use C # client side ... Example of use : Tick Event KeyManager.KeyBind(0xA2, () => { Chat.Output("Key Bind Work"); }); KeyManager.KeyBind(KeyManager.KeyMouse, () => { Cursor.Visible = !Cursor.Visible; });
  11. Hello! I've been playing Rage-MP for the last month and now I've decided to try and make my own server but unfortunately I've run into many problems and confusions so I'm writing here in hopes of solving them. I'm currently hosting on ZAP-Hosting, and fortunately for me I can change between Windows and Linux, 0.3.7 and 1.1 versions of RageMP. Now, my first confusion is, all resources and Wiki pages about starting a RageMP server is based on 1.1 version, for which I don't see a reason for now since if you want your server on masterlist it has to be 0.3.7 version. Seco
  12. adri1

    SAMP Dialogs

    Version 1.0.0


    SA-MP Dialogs for RAGE MP (C# clientside). This is my first resource so may contains bugs... You must enable C# clientside! Usage is simple: examples in Test.cs Dialog(string dialog_name, string dialog_caption, string dialog_info, string[] dialog_buttons, string[] dialog_list_items = null, string dialog_input = null, string dialog_password_input = null)
  13. Hey there. I've one small question regarding instance-variables, when an event get triggered. I've got this little file called XMarker.cs using GTANetworkAPI; public delegate void MyFoo(); public class XMarker : Script { public Marker jobStartMarker { get; set; } public ColShape jobStartCol { get; set; } public MyFoo foo; public XMarker() { } public XMarker(MyFoo callback) { this.jobStartMarker = NAPI.Marker.CreateMarker(0, new Vector3(-420.21115, 1133.7943, 325.90845), new Vector3(), new Vector3(), 1f, new Color(2
  14. plz puch it in german scripting base i can not start a topic on the channel Ich habe ein server genau nach der anleitung von Flashrex aufgesetzt und eingestellt weil ich scripten lernen wollte. Aber wenn ich alles genau wie im video mache was ein wenig dürftig erklärt und in meinen augen einfach nur durch gerusht ist um ja die 15mins einzuhalten fehlen einfach die infos wenn fehler auf treten wie mann sie fixt oder wie mann an den error rann kommt weil eine console die nur System.InvalidOperationException: There is an error in XML document (8, 2). ---> System.Xml
  15. Ich habe gesehen, dass es bisher nur wenige deutsche Tutorials zu RageMP und vor allem zur Beta gibt und dachte ich mach mal eine Reihe für die Community. In der Reihe werden wir C# Serverseitig und Js Clientseitig verwenden. Die Reihe richtet sich an Leute die bereits programmieren können und zumindest die Grundlagen einer objektorientierten Sprache kennen. Ich hoffe ich kann mit den Videos einigen helfen. Fragen, Wünsche für zukünftige Videos & Kritik ist natürlich gerne gesehen. Geplant ist bisher: (nicht unbedingt in der Reihenfolge) -
  16. Hello. I'm stupid new in c# and rage mp. I have an problem. How can I import my class from another cs file on client-side? clientside_cs.txt logs speak that it can't find my type or namespace. Sorry for my English.
  17. Hallöchen, wie kann ich NativeUI bei Visual Studio hinzufügen sowie auch im Server? Danke im vorraus. Grüße, codeqod | Tobi
  18. I did all by this guide and got this in console: CS0012: 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'. -> Main.cs:36 CS0012: The type 'IDisposable' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. -> Main.cs:36 CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference t
  19. Hello everyone! Many of you have decided to use Entity Framework instead of raw SQL but failed somehow in the process (myself included)! This is why I am creating this quick guide with some examples on how to use Entity Framework Core with MySQL database in RAGEMP C# gamemode. It's not perfect, but it will work just fine. If you find a mistake or have a better way of doing something, please let me know! Let's start! Requirements: - Visual Studio 17 or better - Net Core 2.2 - RageMP C# 0.3.7 - MySQL database (I use XAMPP) 1. First, you will need
  20. When creating the script, I tried to connect MySql or Postgres. I installed them through Nuget in Visual Studio, but after starting the server I got an error saying that there are no libraries, after which I registered the path to them in META, but not all the errors went away, and after several starts, server started to require net standart, how to use third-party libraries HELP.
  21. i just started scripting with c# and at the moment i am trying to create bank accounts. in Visualstudio there are no errors, but when server starts and loads resource, it cant and uts out this: System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean skipCheckThis, Boolean fillCache)
  22. Hello everyone! This will be a short guide on how to use colors when using custom chat, not the default one. I know I am not the only one frustrated about this so that's why I want to share this to everyone. Important credits: - Carlos (ex RageMP member) Helped me the most, basically solving everything and giving me a big smile. I still owe you a beer - @Chainksain This dude actually has the same way of doing things as me so big shoutout to him for examples Let's start! Requirements: - Visual Studio 17 or better - Net Core 2.2
  23. I write the basic code in my solution project (example from wiki) and start the server, after spawn, it should output the notify but it does not output it. Please, help. log output The invoked member is not supported in a dynamic assembly. System.Private.CoreLib at System.Reflection.Emit.InternalAssemblyBuilder.get_Location() The invoked member is not supported in a dynamic assembly.
  24. Hello, I wanted to ask how to add NativeUI. I used C # as a programming language. So as I add it in the server and in Visual Studio. Thanks in advance! Greetings, Tobi
  25. Okay. So since there is no server - side implementation for C# AttachEntityToEntity() I'm told to do it in the client-side. However when I pass the arguments to my client-side with the TextLabel and Vehicle objects. I'm not sure how to attach them. TextLabel being attached to the Vehicle. I've used the class's .handle attribute the .Id attribute. But nothing seems to work. I'll provide the code for the respective sides. Server - side // Server Side // private static string VehTxtLblKey = "VehicleTextLabel"; [RemoteEvent("VehicleSpawnFromClient")] public void NativeVe
  • Create New...