Scripts
207 files
-
[C#] Key API
By ufteers
Key.Bind - This function binds the key.
keycode - hexadecimal code of key. keydown/keyup - true trigges on keydown, false triggers on keyup (bool) handler - function-handler. public class KeyTest: RAGE.Events.Script { public KeyTest() { Key.Bind(Keys.VK_ESCAPE, true, () => { // Code here return 1; }); } } To bind multiple keys:
Key.Bind(new Keys[] { Keys.VK_T, Keys.VK_F6 }, true, ...)
Key.IsUp - Returns true if the key specified has been released. Otherwise, returns false.
keycode - code of the key (Keys.VK_T or 0x54) private void Tick(List<Events.TickNametagData> nametags) { if(Key.IsUp(0x62)) { // NUMPAD2 up } } Key.IsDown - Returns true if the key specified is pressed. Otherwise, returns false.
keycode - code of the key private void Tick(List<Events.TickNametagData> nametags) { if(Key.IsDown(new int[] { 0x60, 0x61 })) { // NUMPAD0 & NUMPAD1 pressed. } }
184 downloads
(2 reviews)0 comments
Submitted
-
[DEPRECATED] Vehicle Indicators
By Captien
Vehicle indicators are the main thing in role-play. Without it you can't role-play while driving or you can cause accidents.
So i did that simple resource to give some help to the community
Keys:
Press X for Warning Lights Press left_arrow for Left indicator Press right_arrow for Right Indicator
Use root's resource for synced indicators
1106 downloads
-
(3 reviews)
0 comments
Updated
-
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)
935 downloads
-
Soundviewer
By Flashrex
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.
355 downloads
(3 reviews)0 comments
Updated
-
Weather and Time changing GUI
By KGamer63
With this simple Script you can open an UI that allows you to change the Time and Weather.
Installation:
1. Copy the Files into your server-directory.
2. Add require("./weatherChanger"); to your index.js in the client_packages folder.
Usage:
Press F9 to open the UI.
1387 downloads
-
Speedometer Script
For install just copy files to your server.
Don't forget edit index.js into client_packages if you have more resources.
Read the LICENSE.txt befor use.
6912 downloads
-
Weapons on Body
By rootcause
This resource attaches your weapons to your character to make them visible to everyone. All you have to do is put away your gun/switch weapons.
Installing
Download & install the latest Efficient Attachment Sync. Put the files you downloaded in their respective places Add require('weapondisplay') to client_packages/index.js All done
Notes
Didn't do a lot of testing, feel free to report issues (would be nice if you include how to reproduce the issue) weaponData.json file will be updated with future GTA V versions, always check weaponData.json Gist to prevent issues.2540 downloads
-
Plane smoke
By Captien
Hello,
This resource introduces colored smoke for certain planes to enjoy the stunt plane smoke from GTA:SA. Press X to start the smoke.
Supported Planes:
stunt duster microlight alphaz1 howard nokota cuban800 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.
217 downloads
(2 reviews)0 comments
Submitted
-
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.
549 downloads
-
GTAO Outfits
By rootcause
This script reads outfits from scriptmetadata.meta and lets you use them in game. There are currently 1382 outfits for both male and female freemode characters.
Using: /outfit [id]
Updating scriptmetadata.meta
scriptmetadata.meta gets more outfits with every update, here's how you can update it:
OpenIV:
Go to update\update.rpf\common\data Right click on scriptmetadata.meta Select save content/export Take the extracted file and replace it with the one your server is using CodeWalker RPF Explorer:
Go to update\update.rpf\common\data Right click on scriptmetadata.meta Select extract raw Take the extracted file and replace it with the one your server is using Notes
Some outfit IDs might do nothing, ask Rockstar In RAGE version 0.3, drawable IDs above 255 aren't supported so you might have some weird looking outfits. From what I heard this is not a problem in upcoming 0.4. Credits to OpenIV and CodeWalker devs, this script wouldn't be possible without their efforts.
1252 downloads
(6 reviews)0 comments
Updated
-
AnimPlayer
By TurEduard
Hi. To begin with, excuse me for my English.
I share my resource for playing the animation.
You can find animation on request.
I wrote it primarily for myself, do not blame me for nothing. Сan anyone need.
My resource is like Animation Viewer by Hazes but use another base and written in pure js.
How to install:
UnZip the file in server-files. How to use:
Use ~ or /animplayer to browse gui. /animplayer [request] for find animations coinciding with request. /animplayer [dist / dist+name] for find animation with id = dist and type = name. /animflag [up/down/number] increase, decrease, or set the flag for animation Use LEFT/RIGHT arrow keys to cycle through (dist) animations. Use CTRL + LEFT/RIGHT arrow keys to cycle through (dist) 100 animations at once. Use SHIFT + LEFT/RIGHT arrow keys to cycle through (dist) 10 animations at once. Use UP/DOWN arrow keys to cycle (name) animations. Use CTRL + UP/DOWN for increase or decrease flag. Use BACKSPACE to reset the search list. Use SPACE to play animation if you change parameter AnimPlayer.autoPlay in resource GitHub: https://github.com/TurEduard/rage.mp-animplayer
1333 downloads
-
Light Control
By rootcause
This resource adds a light control menu to toggle the state of various lights in GTA V. Use /lcmenu command to access the menu.
Since this is a new feature of RAGEMP, light IDs don't have names/descriptions yet. (Maybe people will document them later, who knows...)
You might also want to check the screenshots for a preview of various light states.
Installing
Download & install the latest NativeUI if you haven't already, this script needs it Drop the lightcontrol folder to your server's client_packages Add require('lightcontrol') to client_packages/index.js All done
Q: "But I still have weird lights/fog around the city buildings?"
See:
1174 downloads
-
MapEditor
By PrototypeX
Working version of the MapEditor by PrototypeX!
Developed for the project SMOTRArage
Old resource:
576 downloads
(4 reviews)0 comments
Updated
-
Debug Script v1.0
By OvO
Hello community,
this is an very simple but powerful and useful script for finding out Positons around the GTA-5 map for easier for example Placing Bilps.
Changelog: - 02/03/2019: Release Current functions: - Show your position Ingame. - Show your Position in the Console Log. How to use: - Press F2 to see your Position Ingame. - Type as command /pos to see your Position in the console.
I will release soon an update with more functions for the debug section.
visit my Github for more projects! GitHub Profile
311 downloads
(1 review)0 comments
Submitted
-
[JS] Basic Clothes Menu
By SnakeWiz
Simple cloth menu, you can open it by pressing F2.
This script requires NativeUI library, download it from the resources tab.
It's my first resource, do not expect too much.
https://github.com/Snakewiz/ClothesMenu
2250 downloads
-
[JS] Client-side Door Control System
By Tampa
Now you can lock or unlock doors and gates (from GTA V world).
How to do that? Just press E.
If you appreciate my work, you can press the like button. ❤️
2708 downloads
(5 reviews)0 comments
Updated
-
Basic Car Tuner
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.
2798 downloads
-
Cef Safe Zone
By ufteers
Hello ragers.
This script allows you to use the GTA safe zone in the browser. An example is seen in the video.
340 downloads
(2 reviews)0 comments
Updated
-
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
-
Player Scoreboard + Health & Armour
This is a Complete Script for Scoreboard.
add the file "client_packages" in main folder.
you can open / close the scoreboard with f10
made by CommanderDonkey & ByTropical
651 downloads
- Scoreboard
- Health
- (and 3 more)
(0 reviews)0 comments
Updated
-
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)702 downloads
(2 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.1056 downloads
(7 reviews)0 comments
Submitted
-
[C#] Send Mail from server.
By CMHDev
Send mails from the server simple and easy.
Ex:
To work, you need to enable IMAP Access
*This code was only tested on the GMAIL service
202 downloads
(1 review)0 comments
Submitted
