140 files
-
Client-side TowTruck States Event
By Tampa
OnPlayerTowTruckStateChange returns: attach - when any vehicle has been attached to tow truck detach - when attached vehicle has been detached from tow truck deadOrDestroy - when attached vehicle has been destroyed exit - when player exit tow truck while have got attached some vehicle
I think that's simple and useful for everyone.
281 downloads
(1 review)0 comments
Updated
-
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
280 downloads
-
Manual transmission
By Captien
Hello everyone,
It's been a while i didn't do some resources, and I've seen root taking the throne for a while. So i thought i would contribute again with some average resource for the developers to know more about rage's environment. Basically this resource introduces manual transmission to cars to ensure more control on your vehicle and to enjoy the experience of the manual transmission (Could be useful for some drag racing maybe..).
Anyways manual is toggled by the command: /manual
Controls:
NUMPAD_ADD increases the gear. NUMPAD_SUBTRACT lowers the gear Simple manual HUD was introduced beside the mini-map to know everything about your vehicle.
Gears: 1-5, N, R.
Shifting to fast disables vehicle engine. You have wait the shiftNow sign to appear, so you can shift to the next gear.
Any questions/bugs please notify me in the comments section.
Drive safely,
Keptin
258 downloads
(4 reviews)0 comments
Updated
-
Colored Headlights
By rootcause
This script adds the colored xenon headlights feature from Arena War DLC.
Installing
Put coloredhlights into your server's client_packages directory, then add require('coloredhlights'); to client_packages/index.js.
Using
Set the headlightColor shared variable of a vehicle to the headlight color ID you want. Command example:
// /hcolor 10 should make your vehicle's headlights pink mp.events.addCommand("hcolor", (player, _, colorId) => { if (player.vehicle) { player.vehicle.data.headlightColor = Number(colorId); } else { player.outputChatBox("You're not in a vehicle!"); } });
Headlight Colors
Since Rockstar didn't make headlight colors RGB, you can only use a set of numbers as color IDs.
0 = White 1 = Blue 2 = Light Blue 3 = Green 4 = Light Green 5 = Light Yellow 6 = Yellow 7 = Orange 8 = Red 9 = Light Pink 10 = Pink 11 = Purple 12 = Light Purple Color IDs higher than 12 will force xenon headlights to use their default color.
Notes
Since this script toggles the xenon headlights mod (toggleMod 22), it may not work with your car customization script. Color IDs lower than 0 and color ID 255 will disable the feature (revert headlights back to normal from xenon) until you set a valid color again.258 downloads
(5 reviews)0 comments
Submitted
-
Job Taxi
By Idle
Job Taxi:
1. Call taxi;
2. Set the route by coordinates;
3. Accept call;
4. Good system of money calculation;
5. Reasonableness of the main features.
254 downloads
(1 review)0 comments
Updated
-
2D Text Edtior
By ynhhoJ
This script will allow you to quickly and easily work with 2D text in the game.
Contributions:
rootcause
Captien
micaww
In 1.0.5 update Scale-X and Outline of 2D text doesn't work and idk where's problem, because i can't fix it...
250 downloads
-
SAMP Dialogs
By adri1
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)
244 downloads
(12 reviews)0 comments
Updated
-
Kill Feed
By rootcause
Simple kill feed script that displays recent deaths on the server.
Installing
Put the files you downloaded in their respective places Add require('killfeed') to client_packages/index.js All done
Notes
Even though this is a kill feed script, you can send other messages to players by passing a string (your message) to pushToKillFeed event. The kill feed is located below the ammo counter HUD element. The kill feed displays 5 items (variable: maxKillFeedItems) and will display an item for 30 seconds. (variable: killFeedItemRemoveTime) Not all death reasons are detected but weaponData.json covers most cases. Default kill feed font might not support all characters.242 downloads
-
Mugshot Board
By rootcause
This resource adds a way to make the local player hold a mugshot board with custom text on it, the custom text and animation won't be synced to others.
You can also use this resource to understand how rendertarget system works which lets you display scaleform on certain game objects.
Installing:
Put policetext into your server's client_packages directory, then add require('policetext/index.js'); to index.js.
Available functions/events:
mp.players.local.mugshotboard.show -> mp.events.call("ShowMugshotBoard") -> Params: title, topText, midText, bottomText, rank = -1 mp.players.local.mugshotboard.hide -> mp.events.call("HideMugshotBoard") -> Params: - And you can access if the local player has a mugshot board or not by using the hasMugshotBoard global variable. Clientside example (pressing F10 will give your character a mugshot board, pressing it again will remove it):
mp.keys.bind(0x79, false, () => { if (!hasMugshotBoard) { mp.players.local.mugshotboard.show(mp.players.local.name, "Top Text", "Mid Text", "Bottom Text", 15); } else { mp.players.local.mugshotboard.hide(); } });
237 downloads
-
Synced Nitro
By Captien
Hello everyone,
This resource gives the ability to add Nitro to any car and syncs the effect of the nitro in your exhaust, so you can experience its feeling in-game.
//Server-side player.call('giveNitro', [amount, infinite]); //Client-side mp.events.call('giveNitro', [amount, infinite]); //Note: Nitro charges automatically no matter what value you give. Press X in-game to activate the nitro.236 downloads
-
[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.
236 downloads
(6 reviews)0 comments
Updated
-
GTAO Suicide
By rootcause
This script adds the suicide feature of GTA Online.
You can commit suicide by using /suicide command. Your character will shoot itself if you're holding a pistol and take pills otherwise.
Installing
Put the files you downloaded in their respective places Add require('suicide') to client_packages/index.js All done228 downloads
(2 reviews)0 comments
Submitted
-
Simple Teams
By rootcause
Prevents players of the same team shooting eachother.
Installing
Put teams into your server's client_packages directory, then add require('teams'); to client_packages/index.js.
Using
It's pretty simple, just set currentTeam shared variable of a player like this:
// both strings and numbers should work playerEntity.data.currentTeam = whatever; playerEntity.setVariable("currentTeam", whatever); And set currentTeam to null if you want to reset someone's team.
Note
This resource doesn't prevent all kinds of friendly fire, for example projectile weapons like RPG can hurt teammates, you can still run teammates over with a vehicle etc. You can check if both killer and victim is on the same team and punish the killer, though.
225 downloads
(4 reviews)0 comments
Updated
-
CEF wepSpawner
By Anzo
Installing:
Place the files you downloaded in their locations.
Add "require('.wepSpawner');" to client_packages/index.js.
Controls:
F4 to toggle menu.
Everything else is done in cef interface.
Features:
Spawn any weapon from https://wiki.rage.mp/index.php?title=Weapons (2019-05-05).
Get all weapons instantly by clicking "All Weapons".
Get all weapons from a category by entering the category and clicking "All *Category name*".
Get any weapon you choose.
Ability to remove all weapons and start over.
222 downloads
(1 review)0 comments
Submitted
-
Realtime Weather
By unkaid
Server-sided script, that getting a real weather hourly and sets it in the gta 5 world.
HowTo:
I. Install getJSON: npm install get-json --save
II. Go to https://developer.accuweather.com/ and register as the Developer.
III. To get your new API key, create your WeatherAPP here, https://developer.accuweather.com/user/me/apps
On the question: "What programming language is your APP written in?" Answer will be: JavaScript.
IV. Go to https://www.accuweather.com/ and find your preferred location on the map or by the search field, for example: Moscow, Russia.
To set more accurate location to your preferred, click on the nearest point on the map, for me it is Yakimanka, then click on 'Hourly".
V. The URL will look like this: https://www.accuweather.com/en/ru/yakimanka/2515350/hourly-weather-forecast/2515350
Well, 2515350 is the Location Key that we will use further.
VI. Let's assemble your AccuWeather URL: http://dataservice.accuweather.com/forecasts/v1/hourly/1hour/YOUR_LOCATION_KEY?apikey=YOUR_API_KEY
VII. Paste new AccuWeather URL into the script and save it.
Warning! The Trial Version of AccuWeather is limited for 50 requests per day.
GitHub
204 downloads
(1 review)0 comments
Updated
-
Screen FX viewer.
By ynhhoJ
This is a simple script was made to help you to find a Screen FX effect!
Requirements: NativeUI.
Use F2, to see menu.
202 downloads
(1 review)0 comments
Updated
-
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"
201 downloads
(3 reviews)0 comments
Updated
-
Easy Blip Creator | Fixed
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:
200 downloads
(3 reviews)0 comments
Submitted
-
Bigmap
By ufteers
Hello 👋 ragers 😡 😡 😡 have a good 👍 👍 day ☀️ ☀️ ☀️ ☀️
I would like to present C# & JS resource that lets allows you to switch between 3 map options. Like in GTA Online.
Default map. Zoomed out. Big map.
Installing & Using
Put the files you downloaded in their respective places Press Z (Default) (Settings — Key Bindings — General — Radar Zoom / Multiplayer information)188 downloads
(2 reviews)0 comments
Updated
-
[JS,CEF] Emergency Alert System
By Gernouille
(EN) This script allow you to play emergency alert sound (2 sounds: tornado siren, alert siren), coming soon: amber alert with sound&pop-up
(FR) Ce script vous permet de déclencher des sirènes d'alertes (sirène tornade, sirène d'alerte), à venir: alerte enlèvement avec son&popup
----- HOW TO INSTALL -----
1) Unpack RAGEMP Alert v0.1
2) Drop the content of "client_packages" folder inside your client folder
3) Drop the content of "packages" folder inside your server folder
4) Add in your server index.js :
require('./Alert/sAlert');
5) Add in your client index.js :
require('./Alert/cAlert');
6) Do not forget to change link of mp.browsers.new in Alert/cAlert.js if needed
----- HOW TO USE -----
/alert tornado {repeat time}
--> {repeat time} FROM 1 TO 9 TIMES
Duration: EACH time: 9sec (min: 9sec, max: 81sec)
/alert siren {repeat time}
--> {repeat time} FROM 1 TO 9
Duration: START: 5sec / ACTIVE: 12sec (repeat from 1 to 9) / END: 13sec (min: 30sec, max: 126sec)
/alert siren stop
--> stop the siren immediatly if activated (duration: 13sec)
----- DEMO -----
Tornado Siren:
Alert siren:
Amber alert (coming soon):
185 downloads
(1 review)0 comments
Updated
-
DialogUI
By davidsl6
Need some dialog menus with 2 buttons, for example to show user your server's rules and 2 buttons, "accept" and "not accept"?
DialogUI can help you with that!
Example of using:
const dialogUILib = require('dialogui'); // Load the library var dialog = new dialogUILib.DialogUI("My Title", ["Row number 1", "Row number 2","Row number 3"], "Left Button", "Right Button"); // Make a new instance of dialogUI. dialog.show(); // Show the dialog Your players use enter and escape keys? DialogUI support them.
You can know which button is pressed by using the OnDialogResponse client-side event, which have 1 parameter of type Boolean, which indicate if the left button pressed.
180 downloads
-
Instructional buttons
By Captien
Hello,
I thought it would be a opportunity to introduce some basic scaleform scripts that would help out some users with their development aka. use less CEF for simple stuff.
This resource introduces the ability to give button instructions that supports controls (Meaning it'll detect your input whether its a gamepad or keyboard...).
API
You can always have a look at the Controls to get their ID. Using the resource is very simple to use and it supports different uses of customization: You can adjust style between Horizontal (1) and Vertical (-1) You can adjust background color with RGBA (Note you'll need to add it in array form) or HEX. Bulk support for buttons. new hud(style, color) /* * style: -1 for horizontal view, 1 for vertical view * color: HEX or RGBA [255, 255, 255, 255] */ hudClassInstance.addButton(title, controlID); /* * title: any text * controlID: you can find a list of controlID on wiki */ hudClassInstance.addButtons({ anyName: controlID1, anyName2: controlID2 }); /* * Bulk support for adding buttons */ hudClassInstance.removeButton(titleOrControlID); /* * titleOrControlID: remove button by its title or controlID */ hudClassInstance.removeButton(titleOrControlID); /* * removes all buttons */ hudClassInstance.toggleHud(state); /* * state: Boolean toggling visibility */ hudClassInstance.changeStyle(style); /* * style: -1 for horizontal and 1 for vertical */ hudClassInstance.setBackgroundColor(color); /* * color: HEX string or RGBA Array */ hudClassInstance.changeButtonTitle(index, newTitle); /* * index: controlID or currentButton title. (if custom button you can type its name t_buttonName) * newTitle: string */ hudClassInstance.changeButtonControl(index, newControl); /* * index: controlID or currentButton title. (if custom button you can type its name t_buttonName) * newControl: controlID or custom control (t_buttonName) */ If you have any issues, you know as usual contact me on Forums or discord. Any suggestions please add it in your review. If you liked the resource show me your support to produce some useful resources in the future.
180 downloads
(4 reviews)0 comments
Updated
-
[JS, CEF] Internet Radio
By unkaid
Internet radio over colshapes using CEF.
Scope of application: custom clubs, interiors.
Default location is the Galileo Observatory (behind the monument).
Default radio station - Wacken Radio (DE).
Installation:
I. Put server files to: server-files\packages\yourGameMode
II. Add require('./rStreamColshapes'); to your server's index.js
III. Put client files to: client_packages then edit your client's index.js and add require('./rStream');
To change radio stream url, edit index.html here: client_packages\cef\rStream\index.html
GitHub
175 downloads
(2 reviews)0 comments
Updated
-
Simple Chat Advert
By MorHo
Simple Chat Advert
basically it'll prints out whatever you want into to chat.
Please do not change the code edit just config.json
172 downloads
(0 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)
162 downloads
