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
  • 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


Facebook


Youtube


Skype


Web


VK

Found 21 results

  1. This is the MTG: RP script originally developed by me and a few others targeting GTA: Network. It was then passed over to Mafia City Roleplay who did some progress converting it over to RageMP. Please do note that this is not completely converted yet, specifically client-side code... Would be great if someone steps up and continues the conversion Features MongoDB storage system. Character system with skin customizations Dynamic OOP inventory system. Dynamic mapping system (can load custom maps in-game) Phone system with a GUI Various jobs. (Delivery, Fisherman, garbageman, lumberjack, gunrunner, mechanic, trucker and finally taxi) Activities such as hunting and scuba-diving. Images can be found in this post: And a lot more.. the below original trailer can give you a broader idea about the features: Download and Credits https://github.com/Battlerax/MTGRP I'M GONNA REPEAT THIS AGAIN, THIS IS NOT PLUG'N'PLAY. IT'S GOING TO NEED SOME EFFORT TO ACTUALLY WORK AFTER ALL THE API CHANGES.
  2. 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?
  3. Всем привет! Пожалуйста, подскажите кто знает. Могу ли я начать разработку на стороне сервера на языке C#? И параллельно разрабатывать клиент на языке JavaScript? Я хочу использовать одновременно 2 языка для разработки. На каждой стороне свой. Как я могу это реализовать?
  4. hartority

    Implementing custom name tags

    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.
  5. SupperCraft5000

    Easy Blip Creator | Fixed

    Version 1.0.0

    103 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:
  6. Version 1.0.0

    256 downloads

  7. SupperCraft5000

    Basic Car Tuner

    Version 1.0.1

    555 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.
  8. SupperCraft5000

    A question about tuning

    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.
  9. 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
  10. 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
  11. Please make a script for change livery. UPD: Thanks, I found a solution
  12. 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
  13. 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!
  14. -Andreas

    Simple Admin System (JSON)

    Version 1.0.0

    1526 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.
  15. Hello, i have a ask for about scripting, which language is better Nodejs or CSharp for perormence (Server site)
  16. MorHo

    Simple Chat Advert

    Version 1.0.1

    159 downloads

    Simple Chat Advert basically it'll prints out whatever you want into to chat. Please do not change the code edit just config.json
  17. MLGKillerNOOBS

    some script or something to appear cars

    vehicle spawner
  18. Привет, я представляю вам мой скрипт, который делает нейм тег, бар жизней и брони похожими на GTA:Online. Для начала создадим переменные для настройки нейм тегов. const maxDistance = 25*25; const width = 0.03; const height = 0.0065; const border = 0.001; const color = [255,255,255,255]; Теперь отключим дефолтные нейм теги. mp.nametags.enabled = false; Далее нарисуем наши нейм теги. 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); } } } }) }) Этот скрипт необходимо положить в папку client_packages и подключить в index.js.
  19. Ano

    How 2 JavaScript

    Hello people, I'v just started learning JavaScript with SoloLearn. Two years ago i started to get into c++ with this cours. I think with this webside or by using their app you can learn JavaScript and other languages easily. They can teach you JavaScript, C++, Python, Java, PHP, HTML, Swift, CSS and some others, as well. You have to read what they show you and then they will ask you something about what you did read. After giving the right answer you'll get into the next step. If you have problems, you can get help or talk with other users. Start: https://www.sololearn.com/ JavaScript: https://www.sololearn.com/Play/JavaScript Courses: https://www.sololearn.com/Courses/
  20. При заходе на сервер не проходит авторизацию в SocialClub \ Does not enter Social Club Фото Photo
  21. Приветствую всех! Можете подсказать какие нибудь уроки/мануалы по изучению JavaScript! Буду очень благодарен за помощь!