Search the Community

Showing results for tags 'Script'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

Found 29 results

  1. Hey ich wollte mal fragen ob mir hier jemand c# scripten beibringen kann. Bin ein kompletter Anfänger und hatte noch nie was mit diesem Thema zutun wäre also nett wenn man mir das scripten beibringen würde z.B. wie man ein Handy scriptet mit jeder Funktion Sms, Telefonieren usw.
  2. At the time of death of a player on the server, he is invited to make a call. I have 3 hospitals in my server: Paleto, Sandy and Los Santos. I would like to know how to calculate the distance from the hospital to the place of death, in order to determine where to go faster. And the doctors would have the text "911 call * Region *. From (PlayerID)"
  3. Hello! Need help setting up the car. When editing the handling file.meta, the game crashes with the error ERR GEN INVALID or nothing changes. The second problem is that we don't know how to add our own sounds to the machines. Thank you in advance for the answer, I will be very grateful!
  4. Moin RageMP Community, ich verkaufe für wenig Geld mein RageMP Script, da mein Team und ich auf eine andere Plattform gewechselt sind. Falls Interesse besteht, schreibt mich auf Discord: Kerem.D#5540 an. Alles weitere über die Funktionen und Installation wird dann über Discord geklärt! Schönen Tag noch!
  5. A peer-to-peer in-game proximity voice chat for RageMP developped for San Andreas Advanced Roleplay V. EDIT: I am aiming toward a VoIP server-side version of this in order to increase performance, I just haven't had time yet. More info and download: here DISCLAIMER: This project is not near ready to release its first stable version, but as soon as it was presentable, I though it was best to put the code open source because of 2 reasons: for RageMP in general to improve, and for this plugin to develop faster. There is a lot of cleaning to do bare with me, I released this so bugs can be fixed, I do not expect you guys to clean my code. rt-2
  6. Hello! Asynchronous Javascript Communication is a module to allow easy communication between server, client and CEF/browser. This module lets you call server handlers from clients (and vice versa) without dealing with adding and managing custom event handlers. You can easily call a handler and get your callback called as soon as everything is returned from the handler in a promise like way! Let's see how it works in action: // server side const ajcom = require("./ajcom") ajcom.register("getServerName", hCtx => { return mp.config.name }) // client side const ajcom = require("./[package name]/ajcom.js") mp.events.add("guiReady", () => { ajcom.callServer("getServerName").then((ctx, serverName) => { mp.gui.chat.push(`Welcome to ${serverName} ragemp server!`) }) }) That's all! Not convinced yet? See how the above code is done without ajcom: // server side mp.events.add("getServerName", (player) => { player.call("gotServerName", [mp.config.name]) }) // client side mp.events.add("gotServerName", (serverName) => { mp.gui.chat.push(`Welcome to ${serverName} ragemp server!`) }) mp.events.add("guiReady", () => { mp.events.callRemote("getServerName") }) See? It eases the event handling mess. But there's a lot more to ajcom. You can easily handle errors happening on handler's side or any of the callbacks, set delays and other stuff. The full documentation is available here and you can grab the module from here Github repo Changelog v1.9.6 (2018/3/7) added jsdocs for constructors added separate enums and classes for types used as parameters added noPostback flag added flags for handlers added special handlers (hooks) for server side handlers getting called added the ability to broadcast a call to all or specific clients added cef support added cross side logging fixed calling a handler with triggerDelay not being called fixed data.source and data.target having wrong values change the namespace so that users can use enums and classes v1.1.3 (2018/2/25) added jsdocs changed event handling codes fixed client > client call fixed some possible crashes (fake client calling server) v1.0.0 (2018/2/15): Initial release!
  7. Version 1.0.0

    92 downloads

    Source code : https://github.com/J4YT/RAGE-Multiplayer-Vending-Machine-Script Only works in combination with the Attachment Sync resource. (see below) Requires Rage 1.1 to work.
  8. Moin, wir suchen einen fähigen/erfahrenen Scripter für RageMP. Es steht eine Bezahlung in Höhe von bis 300 Euro im Raume! Wir wollen einen neuen RageMP-Projekt starten und brauchen dafür einen kompetenten Developer. Bei Angeboten bzw. Nachfragen bei mir melden. Kontakt: Email: [email protected] Mir freundlichen Grüßen, Dennis
  9. Version 1.0.0

    2812 downloads

    (Converted from GT-MP 31 MAY - Originally created 7 APR) I decided to convert my old resource to provide examples for others as well as learn the new API of RageMP. A simple approach to an admin system that makes use of JSON instead of a common SQL Database. Keep in mind this is nothing but a simple admin system to inspire someone else or continue to work on. There's plenty of commands missing if you intend to fit it to your own gamemode. I will mention that the ban system could use more work. At the moment it's easy to bypass seeing it's only based on the socialClubName of a player. Anyway, it's just an attempt at messing around a bit with JSON. If you're going to create a larger system I'd advice doing it differently. To alter your admin level, first register ingame and open up your JSON file. In the file you'll see your admin level that can range from 1-5. 1 being Junior & 5 being defined as Mangement. Command Description /login [password] Used to login to your admin account and gain access to the commands. /register [adminName] [password] Used to register an admin account. Currently there's no restrictions to prevent everyone from doing so. /ahelp Will display all commands avaliable to admins. /mute [target] Mutes the player and makes him unable to use the chat. /unmute [target] Unmutes the player and allows him to use the chat again. /spawnwep [wepName] [ammo] Creates a weapon and gives it to yourself with 9999 ammo unless specified otherwise. /spawncar [vehicleName] [color1] [color2] Create a vehicle and places you in the driversseat. Uses default color 1 unless specified otherwise. /setkevlar [target] [amount] Gives the target the desired amount of armor. /sethealth [target] [amount] Gives the target the desired amount of health, unless the target is dead. /goto [target] Teleports you to the target's position. /gethere [target] Teleports the target to your position. /kick [target] [reason] Simply kicks the player from server and display a message for everyone to see. /ban [target] [reason] Kicks the player and creates a ban file with the specified reason.
  10. Version 1.0.1

    249 downloads

    I Fixed the Easy Blip Creator. Because of a change in RageMP Wiki, the script could no longer load the images. to see here. I fixed this to see here. Everything should now work normally again with this script original version & creator of this script: const KEYs = { OPEN_CREATOR: 48/* ' */, BIND1: 49/* 1 */, BIND2: 50/* 2 */, }; The values 48, 49, 50 are Dezimal not Hexadezimal. For Hexadezimal values: https://docs.microsoft.com/de-de/windows/win32/inputdev/virtual-key-codes?redirectedfrom=MSDN To convert into Dezimal: https://bin-dez-hex-umrechner.de/
  11. NEXT LIFE ------------------------------------------- Wer sind wir? - Wir sind ein 4-köpfiges Team im Alter von 20-25 Jahren. ------------------------------------------- Was machen wir und was suchen wir? - Wir haben sehr viele kreative Ideen bzw. Funktionen gesammelt und möchten nun mit der Hilfe von einem von euch, diese umsetzen. - Wir haben Leute für das Forum, für die Map und für die Designs. Nun fehlt uns aber ein Scripter, der Erfahrung hat und motiviert ist. - Unser Server soll auf einem Reallife System basieren, dass heißt wir wollen eine Wirtschaft aufbauen und möglichst ansprechende Elemente hinzufügen. -Wir besitzen ein unfertiges Script, der Scripter müsste also nicht von 0 anfangen. ------------------------------------------- Was bieten wir dir? - Du würdest einen festen Platz in unserem Team bekommen - Freundliche und motivierte Mitglieder - Mitspracherecht - Eine tolle Atmosphäre ------------------------------------------- Falls du dich also angesprochen fühlst, melde dich gerne bei uns im Teamspeak! Server IP: 167.86.72.132 Wir freuen uns auf dich!
  12. Mahlzeit!Wir sind auf der Suche nach Entwickler für unseren zukünftigen deutschen Roleplay Server auf der RageMP Plattform.Gesucht werden motivierte erfahrene Leute, die Bock haben etwas langfristiges, einzigartiges und standhaftes aufzubauen. Kontaktmöglichkeiten:Discord: https://discord.gg/psWpA4D [→ Dennis (Leitung) anschreiben] E-Mail: [email protected] Wir freuen uns auf deine Nachricht Dennis / LifeFive
  13. Mahlzeit!Wir sind auf der Suche nach erfahrenen Scriptern mit Erfahrung für unseren zukünftigen deutschen Roleplay Server auf der RageMP Plattform.Gesucht werden motivierte erfahrene Leute, die Bock haben etwas langfristiges, einzigartiges und standhaftes aufzubauen. Kontaktmöglichkeiten: Discord: https://discord.gg/psWpA4D [→ Dennis (Leitung) anschreiben] Teamspeak: life-five-rp.de E-Mail: [email protected] Wir freuen uns auf deine Nachricht -LifeFive
  14. Hi! I would like to present you a script that makes nametag and hp/armor bar look like GTA:Online's ones. First, we create variables to configure the tags. const maxDistance = 25*25; const width = 0.03; const height = 0.0065; const border = 0.001; const color = [255,255,255,255]; Now disable the default name tags. mp.nametags.enabled = false; Next, draw our name tags. mp.events.add('render', (nametags) => { const graphics = mp.game.graphics; const screenRes = graphics.getScreenResolution(0, 0); nametags.forEach(nametag => { let [player, x, y, distance] = nametag; if(distance <= maxDistance) { let scale = (distance / maxDistance); if(scale < 0.6) scale = 0.6; var health = player.getHealth(); health = health < 100 ? 0 : ((health - 100) / 100); var armour = player.getArmour() / 100; y -= scale * (0.005 * (screenRes.y / 1080)); graphics.drawText(player.name.replace('_', ' '), 4, color, 0.4, 0.4, true, x, y); if(mp.game.player.isFreeAimingAtEntity(player.handle)) { let y2 = y + 0.042; if(armour > 0) { let x2 = x - width / 2 - border / 2; graphics.drawRect(x2, y2, width + border * 2, 0.0085, 0, 0, 0, 200); graphics.drawRect(x2, y2, width, height, 150, 150, 150, 255); graphics.drawRect(x2 - width / 2 * (1 - health), y2, width * health, height, 255, 255, 255, 200); x2 = x + width / 2 + border / 2; graphics.drawRect(x2, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x2, y2, width, height, 41, 66, 78, 255); graphics.drawRect(x2 - width / 2 * (1 - armour), y2, width * armour, height, 48, 108, 135, 200); } else { graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x, y2, width, height, 150, 150, 150, 255); graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 255, 255, 255, 200); } } } }) }) This script should be put in the client_packages folder and connected to index.js.
  15. Version 2.0.0

    726 downloads

  16. Hi everyone, when writing a script, I had a problem with the server logic When a user logs on to the server, he enters the username and password, the server checks the data from the Database and sends him a response, after a while the user calls the server again to save, for example, his Vector3 position on the server in the Database, how does the server know what it is addresses, it is the user of this account who recently logged into the server. For example, if he writes the command / giveWeapon to the chat, the server will receive the players object and be able to give it a weapon, but how can the server find out which player this database is from
  17. Hey guys, i just started new with JS and ragemp(big noob) and have a question. It probably sounds dumb. I wanted to get a console log after a player disconntects. I got this from the wiki and put it in my "./packages/project/index.js": function playerQuitHandler(player, exitType, reason) { let str = player.name; if (exitType != "kicked") { str += " quit."; } else { str = ` kicked. Reason: ${reason}.`; } console.log(str); } mp.events.add("playerQuit", playerQuitHandler); After i quit game i only get a message like(the message also comes a bit late): [N] 127.0.0.1:51274 has been disconnected. i probably forget something to add but dont know what. Thank you for your help! edit: did "solve" the problem by using: mp.events.add("playerQuit", (player) => { console.log(player.name + " quit."); );
  18. Version 1.0.1

    1229 downloads

    Hey i made a simple Car Tuner for RageMP with NativeUI. You can open the menu with "F8". I have it on GitHub for you feel free to fork it: https://github.com/SupperCraft5000/Basic-Car-Tuner You can Tune not all Thins but the Basics.
  19. Hi guys! Please tell me how to know. Can I start server-side development in C#? And in parallel to develop the client-side in JavaScript language? I want to use 2 languages simultaneously for development. Each side has its own. How can I implement this?
  20. Всем привет! Пожалуйста, подскажите кто знает. Могу ли я начать разработку на стороне сервера на языке C#? И параллельно разрабатывать клиент на языке JavaScript? Я хочу использовать одновременно 2 языка для разработки. На каждой стороне свой. Как я могу это реализовать?
  21. Hey is it possible to spawn vehicles with tuning modification. And how to save Tuning modifications in mysql and load them when a player join the server.
  22. Hello dear Rage community, since the new update we have a huge problem with our script, the script starts without any problems but when trying to joins we always get following mediation: After the message then the server crashes without error message or further. We've already tried many things but it did not help and that's why we turn to you now in the hope that someone has an advice or knows what is going wrong. We would be very happy if someone could help. Sorry for my english I am German
  23. Please make a script for change livery. UPD: Thanks, I found a solution
  24. Hi everyone! In need of a custom script for a Custom NameTag, I found the @hartority script, however, it was an outdated project and it had been made for version 0.2 of RageMP, with some references already removed, well, I bring you today the corrected code. Requirements: RageMP server files. Nothing more! Just have fun. Introduction: This script is a reliable edition of the one produced by @hartority with only a few references to the RageMP library, so all code is credit @hartority. Let's start: 1. Go to "client_packages" folder in "RAGEMP/server-files" directory, usually: 2. Create a JavaScript archive (.js) named "customtag.js", example: 3. Inside the "customtag.js" paste this code: 4. Save "customtag.js" file, and open "index.js" in "C:\RAGEMP\server-files\client_packages" directory and put this: End! Just test it and tell me if something goes wrong Usage example: The original code topic of @hartority: Thanks for all feedbacks, mad thanks @hartority for your commitment if you do not authorize this topic, please let me know
  25. Hello, i have a ask for about scripting, which language is better Nodejs or CSharp for perormence (Server site)