Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/19 in all areas

  1. Version 1.2

    4749 downloads

    UPDATE I highly recommending using my more updated resource "MySQL Accounts" instead as it fixes known issues and runs better: This resource will stay up, however I will not be giving any help for this resource as I don't believe it should be used for serious projects. ---- Basic MySQL Gamemode Github Link: https://github.com/MrPancakers/ragemp-mysql Resource Thread: Discord: MrPancakers#9283 This is a template of a very basic login/registration system you can implement into your game mode to get started. This template only stores usernames, passwords(encrypted with BCrypt), position and money so anything extra will need to be implemented yourself. This is intended for beginners so the code is pretty basic and nothing fancy has been done so it is easily readable. If you find any issues, leave a comment on my thread or leave a comment on this resource. Installation You'll need to have a MySQL server setup, either using WAMP/XAMPP/or from a server. To keep this short I will not go through setting these up, simply Google 'How to set up WAMP' for example to get it set up. Unzip the source and place it inside of your server files folder. Open your command prompt and change your directory to your server folder. Then do 'npm install' to install the required node_modules. Create a new database and call it whatever you want (Inside the script it is called 'ragemp-mysql'). Once created, import the ragemp-mysql.sql into your newly created database. Go to packages/mysql/mysql.js and open it. At the top is the connection info, change this to whatever your IP and MySQL username/password is. If you're hosting this locally and you haven't made/changed the MySQL info, the default should be fine. You're all set to go.
    1 point
  2. Version 1.0.0

    844 downloads

    Kill your way to victory! Gun game is a gamemode where players start with powerful weapons and get less powerful weapons once they score enough kills to level up. Winning First player to go through all weapons/levels will win. Player with the highest level will win if round timer ends. Config The config file is located in packages/gungame/config.json. gameTimeSeconds: Length of a round in seconds. 600 by default which converts to 10 minutes. healthOnKill: How much health players will get for killing someone. 0 by default which means players won't get any health from killing. respawnTimeSeconds: Seconds a player needs to wait for respawning. 8 by default. restartTimeSeconds: Seconds players need to wait before a new round begins. 10 by default. Loadouts The loadouts file is located in packages/gungame/loadouts.json. It's a JSON file with each loadout as an array. Each loadout array must contain at least one valid loadout item. Loadout items must have: Weapon: Weapon hash key as string, such as WEAPON_PISTOL. (Weapons list) Name: Human readable name of the weapon, such as Pistol. KillsForNext: Amount of kills a player need to get with this weapon before upgrading to the next one. (player will be declared winner if this item is the last in the loadout) Example Loadout (RPG > Minigun > Special Carbine > Heavy Revolver > Sawed-Off Shotgun > Machete, player needs 5 machete kills to win) [ { "Weapon": "WEAPON_RPG", "Name": "RPG", "KillsForNext": 1 }, { "Weapon": "WEAPON_MINIGUN", "Name": "Minigun", "KillsForNext": 1 }, { "Weapon": "WEAPON_SPECIALCARBINE", "Name": "Special Carbine", "KillsForNext": 1 }, { "Weapon": "WEAPON_REVOLVER", "Name": "Heavy Revolver", "KillsForNext": 1 }, { "Weapon": "WEAPON_SAWNOFFSHOTGUN", "Name": "Sawed-Off Shotgun", "KillsForNext": 1 }, { "Weapon": "WEAPON_MACHETE", "Name": "Machete", "KillsForNext": 5 } ] Maps Map files are located in packages/gungame/maps/. Maps must have: CenterOfMap: An object that has x, y, z and radius properties. This is used for defining game area and respawning players around the game area. SpawnPoints: Array of objects that has x, y, z and a (angle/heading) properties. This is used for spawning players for the first time in the map, like when they connect the server or when a round begins. Example Map (1 Spawn Point) { "CenterOfMap": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.17044067382812, "radius": 70.0 }, "SpawnPoints": [ { "x": -1126.168212890625, "y": 4952.76025390625, "z": 220.46249389648438, "a": 191.99134826660156 } ] } Maps also have optional properties such as: World: An object that has time and weather properties. --> time: An object that has hour, minute and second properties. --> weather: A string property that contains the weather ID. (Weather ID list) Props: Array of objects that has model, position and rotation properties. --> model: A string property that contains the model name. Example: prop_fire_hydrant_1 --> position: An object that has x, y and z properties. --> rotation: An object that has x, y and z properties. Example Map (Night, Rainy Weather with 1 Prop) { "World": { "time": { "hour": 2, "minute": 0, "second": 0 }, "weather": "RAIN" }, "CenterOfMap": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.17044067382812, "radius": 70.0 }, "SpawnPoints": [ { "x": -1126.168212890625, "y": 4952.76025390625, "z": 220.46249389648438, "a": 191.99134826660156 } ], "Props": [ { "model": "prop_fire_hydrant_1", "position": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.05 }, "rotation": { "x": 0.0, "y": 0.0, "z": 0.0 } } ] } Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-gungame Have fun!
    1 point
  3. Version 1.0.0

    337 downloads

    Just a simple js-script that let you play every sound in the following list and gives you info about the current sound on the bottom of the screen: https://wiki.rage.mp/index.php?title=Sounds Install: Simply drop the files in your client-packages folder and merge the index.js with your index.js. How to use: Type /s or /sound to activate/deactivate it. Use Left-Arrow, Right-Arrow to navigate trough the sounds. Credits: Thanks to n0minal and his interior Resource with which i learned how to create commands in js.
    1 point
  4. Guten Morgen Community, heute möchte ich Euch unser kommendes Rage RP Projekt vorstellen und hoffe auf diesem Weg engagierte Team Mitglieder zu finden welche sich aktiv in ein Projekt einbringen möchten. Natürlich quillt das Forum über was kommende Projekte betrifft, jeder erfindet das Rad neu, jeder ist Unique und kann alles am Besten. Auch ich könnte das auf die Schnelle so behaupten, dies wäre aber nicht mein Anspruch und nicht der Anspruch des Teams. Natürlich wollen wir mit dem was tun Ansprechend sein und eine gute "Heimat" bieten für Spieler und Teammitglieder die ihre Freizeit einbringen um Projekte wachsen zu sehen. Aber nicht verbissen und um jeden Preis! Wir treten nicht an um Uns daran zu erfreuen in Ranglisten möglichst viele Spieler zu haben und die Anzahl der Spieler als Messlatte von Erfolg zu betrachten, wir bauen eine Community um gemeinsam Spass zu haben und freuen Uns über Feedback aus der Spielerschaft, dass das was geboten wird passt und man gerne gemeinsame Zeit verbringt. Wir haben recht große Projekterfahrung und bringen diese aktuell zu Papier, setzen mit Hilfe von sehr erfahrenen Mitstreitern unseren internen Plan um und erzielen gute Fortschritte. Aber ein Projekt besteht nicht nur daraus einen guten Start hin zu legen sondern gleichbleibend gut gepflegt zu werden. Aus diesem Hintergrund heraus schreibe ich dieses Posting in der Hoffnung, neue Teammitglieder zu finden welche Spass an einer Community haben, gerne "Live" sehen was Sie erschaffen haben und sich über Feedback aus der Community freuen. Aktuell arbeiten wir an vielen Baustellen gleichzeitig und führen ein Konzept zusammen um zeitnah in die Alpha starten zu können, der interne Fokus liegt darin eine Balance zu schaffen zwischen RP, Wirtschaftssystem sowie ansprechender Usability für die Spieler. Um die gesteckten Ziele aber auch erreichen zu können suchen wir noch in folgenden Bereichen des Dev Teams Unterstützer: Designer Mapper Frontend Developer Backend Developer Und im Verlauf des Projektes, Gamemanager, Supporter, Fraktionsmitglieder, diese Positionen möchten wir jedoch erst zu einem späteren Zeitpunkt vergeben, wenn wir den wirklichen Bedarf abschätzen können. Solltest du also Spass an einer neuen Aufgabe haben, kannst du dich gerne unter ts.ragenation.de bei Uns melden und wir besprechen alles weitere. Viele Grüße Shawn
    1 point
  5. This tutorial will only work if you already have your MySQL + RAGE project set up. Step 1 Right-click on your project and select 'Manage NuGet Packages...'. Browse for the following packages and make sure you install the same version for all! (this example uses version 2.2.0) Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.Tools Pomelo.EntityFrameworkCore.MySql Step 2 Create a Player.cs class with the following code: Step 3 Create a new class called '<myProject>Context.cs', in this example we will use TutorialContext.cs Paste the following code: Step 4 To make things easier for future classes, we will make an interface called IRepository.cs. This is not part of EF Core but it's a nice programming pattern to use with it. Copy-paste the code below into your interface: Step 5 Create a class called PlayerRepository.cs Now we will implement the interface we just created in our PlayerRepository.cs Step 6 Create a class called Main.cs so we can test our code on ResourceStart event. Paste the following code Step 7 Build and run your server You may get an error like: This means that in your RAGE runtime folder (D:\RAGEMP\server-files\bridge\runtime) you are missing the necessary dlls. Head over to (for example) A:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore\2.2.0\lib\netstandard2.0 and copy the needed .dll to the runtime folder of RAGE. You might have to do this for a couple of dlls. Just go back to the NuGetFallbackFolder and find the right one. If you fixed these errors, this should be the result: Step 8 (Extra) If you're adding more and more classes and you want to add changes to your database, use the following method: Create your new class (House.cs for example) and go back to your TutorialContext.cs and add public DbSet<House> Houses { get; set; } under Players (which we did in this tutorial). On the top left of your Visual Studio you will see a tab called 'View'. Click on it, go to 'Other Windows' and select 'Package Manager Console'. In the Package Manager Console, type: Add-Migration addedHouse Wait for the console to finish and type: Update-Database Your house class has now been added to the database. Enjoy.
    1 point
  6. only 1 http://convertjson.com/xml-to-json.htm
    1 point
  7. ok bin mal drauf einfach moven 🙂
    1 point
  8. Захожу на любой сервер после чего все загружается,идет плавный вход,после показывают какое-то меню(я так понимаю для регистрации) но лишь на секунд 5,потом все резко пропадает,и чат и эта менюшка . Просто бегаю с лысым скином.....Help Please
    1 point
    When I start the server the registration and authorization window does not show what to do?
    1 point
  9. Got it working. For some reason it only works if Rage is installed to C:/RAGEMP. Also VC 2015 and VC 2017 can't be on the machine at the same time, here's why: https://social.msdn.microsoft.com/Forums/en-US/a49cccc9-14a4-47fe-b184-cd554e0ddeb0/c-redistributable-2017-installation-removes-silently-c-redistributable-2015-update-3?forum=vcgeneral Additionally, once I got it running from the default install location, it also works with VC2017
    1 point
×
×
  • Create New...