Scripts
207 files
-
Basic Player Blips
By rootcause
This resource adds GTAO style player blip/icon to streamed in players. Their icon will be removed when they stream out.
You can change the color of player blips by setting blipColor using Entity::data or Entity::setVariable on serverside. For a list of blip colors, visit the wiki page about blips.
Installing
Put playerblips into your server's client_packages directory, then add require('playerblips'); to index.js.
2225 downloads
(6 reviews)0 comments
Updated
-
Advanced Chat - Upgraded
By fl1k
About
This is a fork of Advanced Chat - Dependency free with a few new features implemented that were present in SA:MP
Features Added
/chathelp - view all commands /fontsize [size(0.5 - 1.5)] - sets the size of the font /pagesize [size(4-24)] - sets the size of the page /timestamp - toggles between timestamp /togglechat - toggles chat hidden/visible - The features added were present in SA:MP,
DEPENDENCIES
INSTALLATION
Download files Include advanced-chat in your index.js REPO
If you want to contribute, the link to the repository is - https://github.com/fl1k/advanced-chat
SCREENSHOTS
VIDEO
2219 downloads
-
Basic Vehicle System
By BlackPanther
First Credits for @valdirdd for the Speedometer that i Edited....
And a big thank for @CommanderDonkey
for that fancy design of the speedometer.
FEATURES :
Fuel System,
Distance Calculation
And a Notice to all that would use it... its a german version so... u must be change it if u want another type.
INSTALL :
Put the files in the served folders...
add clientside in ur index.js
require('basicVehSystem');
to change to MPH use the following Tutorial...
I Hope u enjoy the files... Bugs please send me...
NOTICE:
to change the gas mileage edit line 30 in ur index.js in packages/basicVehSystem/index.js
let rest = (Veh_data*10); change the Multicator '10' to another value.... it calculate ur driven distance at the moment... with this multiplicator
2176 downloads
-
Crouch
By rootcause
Lets you crouch by pressing CTRL.
Installing
Put the files you downloaded in their respective places Add require('crouch') to client_packages/index.js All done
Notes
Since both this script and walking styles script uses setMovementClipset and resetMovementClipset, they probably won't work at the same time. Crouching is synced between players.2175 downloads
-
Echtwelt RageMP Source
By xzesstence
Echtwelt Reborn Rage MP on base of NodeJS+MongoDB+React/SemanticUI
Please don't use the attached file, download the latest version from the repository here https://github.com/xzessmedia/EchtweltRageMP
CEF Demo:
Simple deployment powered by docker:
To discuss and get help please join this Discord (Please don't use issue tracker for discussion)
https://discord.gg/KmPZy9f
Looking forward to your contributions to make this repository successful and alive
Optional: Custom Vehicles:
You can download the last Vehicle Pack from here:
https://www.echtwelt-life.de/filebase/index.php?entry/13-echtweltragempmodpack/
Password: OpenSource
To install you have to create a folder "dlcpacks" inside your client_packages folder of your server and copy the files inside.
All vehicles tested and with numberplate (as far as i know)
2146 downloads
(6 reviews)0 comments
Updated
-
Vehicle Manager
By Captien
Vehicle Manager is a easy to use device to manage your vehicle easily. Control your doors, lights, Auto-seat belts, engine, and much more with one click.
Usage:
Press B to open/close the Manager. Click any button you want to control the vehicle.
2121 downloads
-
Animation Viewer
By Hazes
Hi everyone,
I've decided to share my Animator resource which basically lets you play all animations avaliable in this list:
https://wiki.gtanet.work/index.php?title=Animations
I have converted it from GTA Network to RAGEMP recently. It's a very simple but useful script. Searching through the animations list is like looking for needle in the haystack, considering about 2/5 of all anims cannot be applied to ped and 1/2 of those you wouldn't really find use for. It's a great solution if you don't want to install any mods to view anims. Just include the file and preview! Save included.
There are 12,365 animations to play. Some of anims do not work on player as they are intended to be used on props, vehicles, weapons etc.
You can also experience a few seconds delay on some animations, but none of them causes crashes.
After launching the Animator a drawText will appear in bottom-right corner of the screen, showing you which animation you are viewing including ID, animation group and name.
How to install:
UnZip the file and move the animation-viewer folder to bridge -> resources folder. Include animation-viewer resource in settings.xml. Move animator.js from animation-viewer folder to clientside_packages folder and include it in index.js.
How to use:
Type /animator to launch or close the animator. Type /animator help for in-game help. Type /animator skip [number] to skip to animation id. Type /animator save [savename] to save the animation. ( saves in server root folder in Saved_Animations.txt. ) Type /animator stop to stop currently playing animation. Use LEFT and RIGHT arrow keys to cycle through animations. Use UP and DOWN arrow keys to cycle through 100 animations at once.
Notes:
All animations are looped. Clientside file is minified. This resource is made for server developers. It sends huge amounts of data to clientside when launching so use it only to preview/save animations. You can see the code here: https://gitlab.com/Hazes/animator-viewer
Changelog:
[v1.0]
Code has been sorted and is a bit more optimized. Fixed assembly reference error for those who didn't have System.IO.dll included in their main resource. Parsing the number in /animator skip now works correctly.
Presentation:
2104 downloads
- animation
- animations
- (and 4 more)
-
Advanced Chat - Dependency free
By pichalomo
Very simple but complete chat written in vanilla js with arrows history navigation, time stamp, user colors prevention, character count, lower cased commands and scrollbar.
Ragemp chat api works perfectly
Settings
Edit settings in advanced-chat/js/main.js
Install
Extract in to advanced-chat folder and copy it to client_packages Add this somewhere client-side. (Eg: index.js) mp.gui.chat.show(false); //Disables default RageMP Chat const chat = mp.browsers.new('package://advanced-chat/index.html'); chat.markAsChat(); Add this somewhere server-side (Eg: index.js)
mp.events.add("playerChat", (player, message) => { mp.players.broadcast(`${player.name}: ${message}`); });
1957 downloads
-
Scaleform Messages
By rootcause
This resource lets you display GTA V/Online styled shard messages.
Installing:
Put scaleform_messages into your server's client_packages directory, then add require('scaleform_messages/index.js'); to index.js.
Available events:
ShowMidsizedMessage // title, message, time = 5000 ShowMidsizedShardMessage // title, message, bgColor, useDarkerShard, condensed, time = 5000 ShowWeaponPurchasedMessage // title, weaponName, weaponHash, time = 5000 ShowPlaneMessage // title, planeName, planeHash, time = 5000 ShowShardMessage // title, message, titleColor, bgColor, time = 5000 Clientside example (will show different messages when you press numpad0 - numpad6):
mp.keys.bind(0x60, false, () => { mp.events.call("ShowMidsizedMessage", "Title", "ShowMidsizedMessage example"); // or: mp.game.ui.messages.showMidsized("Title", "ShowMidsizedMessage example"); }); mp.keys.bind(0x61, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example", 21, false, false); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example", 21, false, false); }); mp.keys.bind(0x62, false, () => { mp.events.call("ShowMidsizedShardMessage", "Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); // or: mp.game.ui.messages.showMidsizedShard("Title", "ShowMidsizedShardMessage example 2 (condensed = true)", 21, false, true); }); mp.keys.bind(0x63, false, () => { mp.events.call("ShowWeaponPurchasedMessage", "Title", "ShowWeaponPurchasedMessage example", -2084633992); // or: mp.game.ui.messages.showWeaponPurchased("Title", "ShowWeaponPurchasedMessage example", -2084633992); }); mp.keys.bind(0x64, false, () => { mp.events.call("ShowPlaneMessage", "Title", "ShowPlaneMessage example", 788747387); // or: mp.game.ui.messages.showPlane("Title", "ShowPlaneMessage example", 788747387); }); mp.keys.bind(0x65, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example"); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example"); }); mp.keys.bind(0x66, false, () => { mp.events.call("ShowShardMessage", "Title", "ShowShardMessage example (colored)", 0, 11); // or: mp.game.ui.messages.showShard("Title", "ShowShardMessage example (colored)", 0, 11); }); Serverside example (will show a wasted message when you die):
mp.events.add('playerDeath', (player) => { player.call("ShowShardMessage", ["~r~Wasted", "You died."]); });
1928 downloads
(10 reviews)0 comments
Updated
-
Walking Styles
By rootcause
This resource lets players choose their walking style. Selected walking style is synced to other players.
Installing
Put the files you downloaded in their respective places Download & install BasicMenu or NativeUI if you haven't yet, this script needs it Add require('walkingstyles') to client_packages/index.js All done Controls
F5 Key - Show/hide walking style menu.
Adding/Removing Walking Styles
You can add/remove walking styles by changing walkingStyles array inside packages/walkingstyles/index.js, make sure your AnimSet is valid!
1909 downloads
-
Sky Camera
By Jengas
This script allows you to move the game camera in the air and back like in GTA:ONLINE
Installation:
Download file. Unzip folder into your client_packages. Add require('MoveSkyCamera/index.js'); to client_packages/index.js. Usage:
Calling on serverside
player.call('moveSkyCamera', [player, moveTo, switchType, showGUI]); Calling on clientside
mp.events.call('moveSkyCamera', player, moveTo, switchType, showGUI); Reference:
player = Ped; player handle moveTo = String; 'up' or 'down' switchType = Int; 0, 1, 2 or 3 0: 1 step towards ped 1: 3 steps out from ped (Recommended) 2: 1 step out from ped 3: 1 step towards ped showGUI = Boolean; Show chat and minimap during camera movement? Note: When using param moveTo as 'down', it's not necessary to add switchType and showGUI.
Examples:
mp.events.addCommand('movecam', (player) => { // Make camera to go up in to the sky player.call('moveSkyCamera', [player, 'up', 1, false]); // After 5 seconds, camera start to go back to player. setTimeout(() => { player.position = new mp.Vector3(0,0,10); // Set your position if you want player.call('moveSkyCamera', [player, 'down']); }, 5000); });
1908 downloads
(4 reviews)0 comments
Updated
-
RAGE MP Clothes Addon For MP Charater
By Soupiest
With this dlcpack, you're able to add up to hundreds of clothing WITHOUT replacing anything from the original vanilla game.
In this pack, you'll be able to add the following as addon content for both MP_Female and MP_Male:
Heads/Faces (Up to 111!) Beards/Masks (Up to 159!) Hairstyles (Up to 185!) Pants (Up to 128!) Feets/Shoes (Up to 127!) Secondary Tops (Up to 106!) Decals/Emblems (Up to 93!) Primary Tops (Up to 127!) How does it work?:
From learning the hex codes in the .ymt files and spending hours figuring out where everything was, I made changes and added things into the .ymt files to make this possible. However, the dlcpack overwrites the initial MP clothing dlcpack (the original clothing from the game, albeit it doesn't REPLACE any clothing) so the limits are added BEFORE any new dlc clothing. DLC clothing comes after the limits as they were pushed further to make way for the newer limits adjusted.
In the future I will possibly adjust it even more if it's necessary.
How do I get addon content to work?
Simple.
Go into streamedpeds_mp.rpf From there, it should be easy sailing. MP_Female stuff goes in mp_f_freemode_01 and MP_Male stuff goes into mp_m_freemode_01. Don't forget to affix (basically dragging a file into the "ArchiveFix" program) "streamedpeds_mp" or "streamedpeds_mp" if you added anything into those archive .rpfs. Replace them inside the .rpf archive after affixing. As for naming them, ONLY name them based off what I have shown here:
Head DrawableIDs: (46 - 157) Models: head_xxx_r Textures: head_diff_000_a_whi (or _chi, _bla, _lat, _pak, _ara at the end) Berd/Mask DrawableIDs: (8 - 167) Models: berd_xxx_u Textures: berd_diff_xxx_a_uni Hair DrawableIDs: (38 - 223) Models: hair_xxx_u Textures: hair_diff_xxx_a_uni Pants DrawableIDs: (16 - 144) Models: lowr_xxx_r Textures: lowr_diff_xxx_a_whi Feet/Shoes DrawableIDs: (16 - 143) Models: feet_xxx_u Textures: feet_diff_xxx_a_whi Accessory/Tops DrawableIDs: (16 - 122) Models: accs_xxx_u Textures: accs_diff_xxx_a_uni Decal/Emblem DrawableIDs: (0 - 93) Models: decl_xxx_u Textures: decl_diff_xxx_a_uni Tops2 DrawableIDs: (16 - 143) Models: jbib_xxx_u Textures: jbib_diff_xxx_a_uni Start from the number from one of the components of which you're adding from the number the limit suggest. (For an example, if you're adding some shoes mod for the first time, then rename the files to "feet_016_u" and feet_diff_016_a_whi)
1832 downloads
-
[JS] Vehicleseat Menu
By {Brace}
This is a Vehicleseat Menu in JavaScript for Rage:MP
Install:
Unzip vehicleseatJS.zip in your root server folder.
Use:
Press "F" or "G" when a Vehicle nearby you.
Contact:
You can Contact me on Discord for Questions.
{Brace}#0571
Have fun!
1719 downloads
-
Wasted Screen
By rootcause
Installing
Put the files you downloaded in their respective places Download & install Scaleform Messages if you haven't yet, this script needs it Add require('wasted') to client_packages/index.js All done Notes
This script will make the players wait 8 seconds before spawning at the closest hospital. This script was not tested on a gamemode with custom death behavior, you might want to do some changes. Video Preview
1683 downloads
-
Weapon Spawner
By rootcause
Requirements
You need to download & install these resources first:
NativeUI Weapon Component Sync Weapon Tint Sync
Installing
Put the files you downloaded in their respective places Add require('weaponspawner') to client_packages/index.js All done
Using
You can use the /weapons command to access the weapon spawner menu.
Issues
Some components might not have a visible name because Rockstar didn't give them one. Equipped component displaying might not be accurate at first but will be fixed after you apply/remove a component.
Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-weapon-spawner
1662 downloads
-
RageMP new hairstyles!
By Soupiest
- Up to 20 NEW hairstyles for males!
- Up to 19 NEW hairstyles for females!
- Root's character creator adaption supported!
Installation:
1) Unpack the rar.
2) If you haven't already, create a "dlcpacks" folder inside your "client_packages" folder.
3) Drop the "gtahairs" folder inside "dlcpacks"
1622 downloads
(5 reviews)0 comments
Updated
-
Client-side AntiCheat
So this is a simple Script, that detects suspicious actions from client-side:
- No Reload
- Unallowed Weapons
- Rapid Fire
- Flyhacks
- Speedhacks
- Vehicle Fly and Speedhacks
- Static Godmodes and Healkeys
Showcase: https://streamable.com/iklquo
When you teleport, heal or respawn the player, use the 'client:respawning' event.
If you want to use something like Medkits or Respawns you need to trigger the 'client:respawning' event, which disables the AntiCheat for some seconds, otherwise the player gets flagged.
Do your own thing for Vehicle Flyhack flagging, because on my server, you don't do those big Car Stuntjumps, where you fly like 30m high. Maybe remove that flagging.
NOTE: There are many reasons that can cause false flags, for example high-ping or low fps.
Dont ever autoban people with this!
1621 downloads
(3 reviews)0 comments
Updated
-
CustomChatPlus
By MiMIMi
What is this?
This is a @MrPancakers's custom chat with scroll bar with a simple addition - it adds option to use arrow up, down key to move thru your chat history. Just like in SAMP! How to install?
Extract everything into client_packages folder and add the chat script into your index.js. require("/chat/index.js"); Note
This may include some bugs and I do not provide "tech support" for it This was created in version 0.3.7 Credits
@MrPancakers (https://rage.mp/profile/5511-mrpancakers/)1610 downloads
-
Hunting
By matical
I converted this system from a previous GTA Multiplayer Client. I never had time to update it or add new features so it comes as is.
It adds animals that are fully synced to each client with different states such as:
Fleeing Grazing Wandering There are two animals to start:
Deer Boar + More can be easily added. It also includes a command that allows you to pickup an animal that is dead. (Mainly for RP servers)
MAY REQUIRE SMALL TWEAKS TO WORK
1608 downloads
-
Welcome Cutscene (From GTA:Online)
By Wdoyle
Preview:
Welcome Cutscene
Getting started
I have created an event called: startWelcomeCutscene - the First parameter is the Gender - 0 = Male, 1 = Female, the Second parameter is the name shown during the welcome process (This can be null)
To include a name on the Welcome Screen using Draw Text when the Plane appears use. Be sure to edit the variable: ServerName (Line 9)
//Server Side player.call("startWelcomeCutscene",[0,"John"]) //Client Side mp.events.call("startWelcomeCutscene", 0, "John"); To just simply show the Welcome Screen (no name shown)
//Server Side player.call("startWelcomeCutscene", [0]) //Client Side mp.events.call("startWelcomeCutscene", [0]); This will then start a screen fade out, load the correct items, clone your player for the cutscene, remove unnecessary players from the movie and then being cutscene.
Once the movie has finished it will call:
//Clientside mp.events.add("cutsceneEnded", () => { // Do something like new camera etc }); //Serverside mp.events.add("cutsceneEnded", (player) => { // Spawn Player }); So be sure to add this either Serverside or Clientside as it does both: call and callRemote for this function.
I would recommend trigger your Spawn Process after the "cutsceneEnded" event.
Special thanks to @Jer for providing the initial details from @DevGrab
Things to note:
If the server crashes - the jet may get left in the cutscene (even after re-log) - Action: Reload Game I have tried triggering mp.game.cam.doScreenFadeOut(100); when the cutscene is finished however I had no luck. However if your screen does go black, just call: mp.game.cam.doScreenFadeIn(0);
If you want to build your own cutscenes in the future, be sure to check out how this cutscene was initially developed by going to:
https://github.com/root-cause/v-decompiled-scripts-1868/blob/master/fm_intro.c
Line 6963 shows you how to register certain models and also how to hide models (using Male and Female as example)
1595 downloads
-
Carry People - RAGE 1.1
By DevGrab
This script will work on simple implementation into your gamescript. Script was tested with ~40 players online at once.
Just include the script into your gamemode and make sure to trigger the server-sided events to let a person carry another person. Please implement a check if a person is already carrying another person. (which can easily be done by checking "carry" shared variable.
Report bugs? Mention me on RAGE:MP Discord or with DevGrab#0815
1548 downloads
(4 reviews)0 comments
Submitted
-
Console
By Kasimir
To access the console press F11 ingame.
Motivation
RAGE console is designed to be a simple and universal logging library with support for client-side, including CEF and server-side. The server-side currently logs all the logs into separate daily files.
Installation
Installation is extremely simple
Copy "packages" folder inside your server "packages" folder, except config.json if you have edited it Copy "client_packages" folder inside your "client_packages" folder Edit your "client_packages" -> index.js to include the rage-console with: require('_rage-console'); (remember to paste this on line 1) Config
The config exists inside your 'packages/_rage-console/config.json'. You can freely edit these, if no data is provided it will default to default settings. These options are accepted by the config:
zippedArchive: A boolean to define whether or not to gzip archived log files. (default 'false') name: Filename to be used to log to. This filename can include the date placeholder which will include the formatted. (default: 'YYYY-MM-DD') maxSize: Maximum size of the file after which it will rotate. This can be a number of bytes, or units of kb, mb, and gb. If using the units, add 'k', 'm', or 'g' as the suffix. The units need to directly follow the number. (default: '30m') maxFiles: Maximum number of logs to keep. If not set, no logs will be removed. This can be a number of files or number of days. If using days, add 'd' as the suffix. (default: '30d') { "logs": { "name": "YYYY-MM-DD", "maxSize": '30m', "maxFiles": '30d', "zippedArchive": false } } Upgrading
Upgrading is extremely simple
Copy "packages" folder inside your server "packages" folder Copy "client_packages" folder inside your "client_packages" folder Usage
Can be used on server-side or client-side. You do not need to require the file as these are available globally.
Writes an info log to the console.
console.log('Hey! Log something?'); Writes an info log to the console.
console.info('Hey! Log something?'); Writes an warning log to the console.
console.warn('Hey! Log something?'); Writes an error log to the console.
console.error('Hey! Log something?'); Usage with CEF (Browser)
To use with CEF you need to add the following line to your HTML <head> element, put this to the top of all your script files.
<script src="package://_rage-console/CEF/debugger.js" crossorigin="anonymous"></script> Build in commands
help — provides all the commands available
clear — clears all the logs
API
Enable or disable access to console [client-side]
terminal.active = true/false; Add command handler [client-side]
terminal.commands.add('pos', { description: 'Gets the position of the player' }, function(...arguments) { return ` X: ${user.position.x.toFixed(2)}, Y: ${user.position.y.toFixed(2)}, Z: ${user.position.z.toFixed(2)} - R: ${user.getHeading(true).toFixed(2)}`; }); Todo
Add options to disable and enable server-side log files Add options to custom style the console, mainly due to accessibility Run proper tests and clean the logic Add ability to see which file the log is coming from Add ability to be used with C bridge Bugs/Feedback
Bugs should be reported currently in RAGE Discord channel to the username @Porn on private message, I appreciate any bugs being reported.
If you have a feature request please do the same as mentioned above.
This is currently in BETA and some stuff is still unpolished.
1541 downloads
-
Speedometer
By Katu__
Installation
Copy "Speedometer" folder to client_packages.
Add "require('./Speedometer/index.js');" to your index.js in client_packages, and you should be good to go!
1518 downloads
(5 reviews)0 comments
Submitted
-
[Perfect for RP Servers]
By Wdoyle
What is this amazing script?
You are also able to control the steering (unable to set straight afterwards due to setSteeringAngle not being implemented yet) so you can move the vehicle to the side of the road.
If you are an RP server then this is perfect for you!
With some wizard maths, the text and position is at the correct end of each car and is based on distance (This has taken over 6 hours to get right).
Configuration
I have already built in configuration to set whether you can allow it on locked vehicles, low health vehicles, whether the engine is off and certain vehicle classes.
These can all be configured in the config section of the file:
this.config = { AllowVehicleClass: [0, 1, 2, 3, 4, 5, 6, 9, 18], // These are the normal vehicles in the game classes - to disable it, set it to false MaxVehicleCubedSize: 25, // This is the vehicle length * width - as an idea an ambulance is 21 LockHandbrakeProtection: false, // If set - you can't push a locked vehicle (Theft prevention or ditching cars) EngineProtection: false, // If set - you can only push if the enginer is turned off VehicleHealthProtection: false, // Must be less than 1000 or false which de-activates checking vehicle health PushEventName: false, // Set this to send an event to your server with the relevant Vehicle and Player attached (ie 'pushing_car') LabelsDisplayed: true, // Show labels near the pushing positions when close enough DebugPositions: false, // View pushing positions as markers so they are more visible AllowVehicleSteering: true, // Allows the player to turn the wheels of the vehicle using A and D keys }
In Action
To see how it looks working just checkout:
https://streamable.com/ab2v5
Questions
Lastly if you have any questions feel free to give me a shout on discord (wdoyle2) or respond in the comment section.
This is currently not on github but more than happy to post it for any future pull requests.
1404 downloads
(9 reviews)0 comments
Updated
-
Simple Tablet
By XCRON
RAGEMP-SimpleTablet
This is a really basic tablet for your resource. You can open it, and it show your embedded link. Press O to open it.
Installation
Just add the files in client_packages to your resource & add the following code to your index.js
require("tablet/tablet.js"); How to change the embedded object
Go in the "tablet" folder and open "tablet.html" with your editor. Change the URL on line 14 & 15.
How to change the key to open it:
Go in the "tablet" folder and open "tablet.js" with your editor. Change the "0x4F" on line 3 to your key of choice.
Here you can find all key values:
https://docs.microsoft.com/de-de/windows/win32/inputdev/virtual-key-codes?redirectedfrom=MSDN
GITHUB: https://github.com/XCRON-DEV/RAGEMP-SimpleTablet
For questions or help DM me here.
1390 downloads
(2 reviews)0 comments
Updated
