139 files
-
Simple Admin System (JSON)
By -Andreas
(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.1998 downloads
-
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
604 downloads
-
[C#] Keys Bind for C#
By CMHDev
This function helps you to add keys binding if you use C # client side ...
Example of use :
Tick Event
KeyManager.KeyBind(0xA2, () => { Chat.Output("Key Bind Work"); }); KeyManager.KeyBind(KeyManager.KeyMouse, () => { Cursor.Visible = !Cursor.Visible; });
393 downloads
-
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.
838 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:
393 downloads
-
Better Instructional Buttons
By Kar
NB: This include does not entirely work like the original.
NB: The class is now called instructionalButtons instead of hudManager.
NB: This include also includes a more advanced version of the BasicScaleform class by kemperr, just called ScaleForm now.
v2.0.0
- Added instructionalButton.hasControl(control).
- Added instructionalButton.getButtonCount().
- Removed the padding of 10.
- Added RGB support (instead of just RGBA... alpha defaults to 180 for RGB).
- Revamped the structure used to store buttons (it was dumb before, wasting variables and not making use of Javascript features).
v1.0.2
- You can now alter any instructional button without it being redrawn/shown to you (Basically you can edit them, without them popping up on your screen, forcefully).
- Added instructionalButton.changeButtonControl(title, new_control).
v1.0.1
- Fixed the an issue where when using multiple instructional buttons multi script wide, if one button count was more than others, the buttons would show up across different instructional buttons.
- Removed support for hex colours with a #. Now to use a colour, just use 'FF00FF'. Using # here is a waste of time.
v1.0.0
- Fixed instructional buttons rendering last button created on the client only.
- Instructional buttons background now default to black, if no colour was used.
- A padding of 10 is now set on horizontal instructional buttons.
- Support for custom button names.
- Added instructionalButton.changeButtonTitle(control, new_title).
- Added instructionalButton.isActive().
- Example:
const instructions = require('/better_instructions'); const horizontalInstructionList = new instructions(-1); horizontalInstructionList.addButton('Create Roadblock', 'M'); horizontalInstructionList.addButton('Right', 175); horizontalInstructionList.addButton('Left', 174); if(!horizontalInstructionList.isActive()) { horizontalInstructionList.toggleHud(true); } setTimeout( () => { if(horizontalInstructionList.isActive()) { horizontalInstructionList.toggleHud(false); } }, 10000); /* Vertical Instructions */ const verticalInstructionList = new instructions(1, 'ff000'); modShopInstructions.addButton('Toggle RAGE Menu', 'F2'); if(!verticalInstructionList.isActive()) { verticalInstructionList.toggleHud(true); } setTimeout( () => { if(verticalInstructionList.isActive()) { verticalInstructionList.toggleHud(false); } }, 10000);
Original Include
- Credits go to Captien for the original release.
93 downloads
-
Better Keybinding
By araynimax
This module saves you some time on bindings keys.
Read more here:
87 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!
553 downloads
-
Shortcuts (Animations) on Numpad
By SnillocTV
Load this Variables on Login:
gm.mysql.handle.query("SELECT * FROM shortcuts WHERE charId = ?", [player.data.charId], function (err10,res10) { if (err10) console.log("Error in loadShortcuts: "+err10); if (res10.length > 0) { res10.forEach(function (shortcutData) { player.data.numpad1A = shortcutData.num1animA; player.data.numpad1B = shortcutData.num1animB; player.data.numpad1C = shortcutData.num1animC; player.data.numpad1D = shortcutData.num1animD; player.data.numpad1Name = shortcutData.num1name; player.data.numpad2A = shortcutData.num2animA; player.data.numpad2B = shortcutData.num2animB; player.data.numpad2C = shortcutData.num2animC; player.data.numpad2D = shortcutData.num2animD; player.data.numpad2Name = shortcutData.num2name; player.data.numpad3A = shortcutData.num3animA; player.data.numpad3B = shortcutData.num3animB; player.data.numpad3C = shortcutData.num3animC; player.data.numpad3D = shortcutData.num3animD; player.data.numpad3Name = shortcutData.num3name; player.data.numpad4A = shortcutData.num4animA; player.data.numpad4B = shortcutData.num4animB; player.data.numpad4C = shortcutData.num4animC; player.data.numpad4D = shortcutData.num4animD; player.data.numpad4Name = shortcutData.num4name; player.data.numpad5A = shortcutData.num5animA; player.data.numpad5B = shortcutData.num5animB; player.data.numpad5C = shortcutData.num5animC; player.data.numpad5D = shortcutData.num5animD; player.data.numpad5Name = shortcutData.num5name; player.data.numpad6A = shortcutData.num6animA; player.data.numpad6B = shortcutData.num6animB; player.data.numpad6C = shortcutData.num6animC; player.data.numpad6D = shortcutData.num6animD; player.data.numpad6Name = shortcutData.num6name; player.data.numpad7A = shortcutData.num7animA; player.data.numpad7B = shortcutData.num7animB; player.data.numpad7C = shortcutData.num7animC; player.data.numpad7D = shortcutData.num7animD; player.data.numpad7Name = shortcutData.num7name; player.data.numpad8A = shortcutData.num8animA; player.data.numpad8B = shortcutData.num8animB; player.data.numpad8C = shortcutData.num8animC; player.data.numpad8D = shortcutData.num8animD; player.data.numpad8Name = shortcutData.num8name; player.data.numpad9A = shortcutData.num9animA; player.data.numpad9B = shortcutData.num9animB; player.data.numpad9C = shortcutData.num9animC; player.data.numpad9D = shortcutData.num9animD; player.data.numpad9Name = shortcutData.num9name; }); } });
Contact:
You can Contact me on Discord for Questions. https://discord.gg/epD7fsv
I can make Scripts for you write me on Discord please German my english is so Bad : SnillocTV
314 downloads
-
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)
139 downloads
-
[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
678 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(); } });
230 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
685 downloads
-
Timer Bars
By rootcause
Adds timer bars from GTA V/Online.
Installing
Drop the timerbars folder to your server's client_packages folder, then you can use const barlibrary = require('timerbars'); to add timer bars. (don't forget to check examples)
TimerBar Properties
A timer bar has these properties:
title | Title (left text) of the timer bar. (string) useProgressBar | Progress bar of the timer bar. If set to true, a progress bar will be drawn instead of right text. (bool) text | Text (right text) of the timer bar, useless if useProgressBar is true. (string) progress | Progress of the timer bar, useless if useProgressBar is false. (float between 0.0 - 1.0) textColor | Text color of the timer bar. (rgba array or HUD color ID) pbarBgColor | Progress bar's background color. (rgba array or HUD color ID) pbarFgColor | Progress bar's foreground color. (rgba array or HUD color ID) visible | Visibility of the timer bar. (bool) usePlayerStyle | If set to true, timer bar title will be displayed like a GTA Online player name. (bool) You can check this wiki page for HUD color IDs.
Examples
const timerBarLib = require("timerbars"); // lets create some progress bars let timeBar = new timerBarLib.TimerBar("TIME LEFT"); timeBar.text = "33:27"; let teamBar = new timerBarLib.TimerBar("TEAM MEMBERS LEFT"); teamBar.text = "4"; let healthBar = new timerBarLib.TimerBar("BOSS HEALTH", true); healthBar.progress = 0.8; healthBar.pbarFgColor = [224, 50, 50, 255]; healthBar.pbarBgColor = [112, 25, 25, 255]; let rewardBar = new timerBarLib.TimerBar("REWARD"); rewardBar.text = "$500000"; rewardBar.textColor = [114, 204, 114, 255]; // f7 to toggle visibility of bars mp.keys.bind(0x76, false, () => { timeBar.visible = !timeBar.visible; teamBar.visible = !teamBar.visible; healthBar.visible = !healthBar.visible; rewardBar.visible = !rewardBar.visible; }); // f8 will change health bar's value to something random mp.keys.bind(0x77, false, () => { healthBar.progress = Math.random(); });
const timerBarLib = require("timerbars"); let eventTime = new timerBarLib.TimerBar("EVENT TIME LEFT", false); eventTime.text = "01:40"; let thirdPlace = new timerBarLib.TimerBar("3rd: PlayerName3", false); thirdPlace.text = "9 kills"; thirdPlace.textColor = 107; // HUD_COLOUR_BRONZE thirdPlace.usePlayerStyle = true; let secondPlace = new timerBarLib.TimerBar("2nd: PlayerName2", false); secondPlace.text = "12 kills"; secondPlace.textColor = 108; // HUD_COLOUR_SILVER secondPlace.usePlayerStyle = true; let firstPlace = new timerBarLib.TimerBar("1st: AimbotNub", false); firstPlace.text = "30 kills"; firstPlace.textColor = 109; // HUD_COLOUR_GOLD firstPlace.usePlayerStyle = true;
414 downloads
-
Vehicle Spawner
By rootcause
Installing
Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it Add require('vspawner') to client_packages/index.js All done Controls
F4 Key - show/hide menu
Left Arrow - previous page
Right Arrow - next page
ESC - close menu
Credits
https://github.com/n-n1ks/rage.mp-freeroam - Vehicle spawn/model change stuff2771 downloads
-
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.
179 downloads
-
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.240 downloads
-
n0minal's Interior Browser (client-side only!)
By n0minal
n0minal's Interior Browser
Hello Dear Ragers,
Today I bring you guys a simple - but useful - browser for interiors to preview.
I spent something like ~2 hours to make it, so it might contain bugs, if you find a bug please post it in here or contact me by PM and I'll fix it as soon as possible.
Commands ⌨️
There are two commands (and binds for it):
/interior (or shortened: /i): Loads the Interior Browser menu, in which you can interact and select an interior to preview. /leave (or shortened: /l): Leaves the current interior and gets teleported back to your first position when you called the browser for the first time. The Script 📰
Download the .zip file and extract it inside your client-packages folder, after that, create (or edit) a index.js file in your client_packages root folder with the following content:
//requires interior-browser package require("interior-browser"); and you're ready to go!
Github Link: https://github.com/n0minal/interior-browser That's all,
See you on the next release!
532 downloads
-
[v0.3.5] Implementing Custom NameTags
By heyMad
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
296 downloads
-
Flaming Footprints
By rootcause
A small (and extremely delayed, it was originally planned for halloween!) C# resource that lets players toggle flaming footprints. This feature was first used in GTA Online's Lost vs Damned adversary mode.
Installing & Using
Put the files you downloaded in their respective places Use /footprints command in game to toggle the effect120 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.438 downloads
-
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.
353 downloads
-
Sudodude's PedPicker
By sudodude
This is a simple module/script for changing the player model synced client/server. The values in the list are the model names that can be found on https://wiki.rage.mp/index.php?title=Peds. Click on a model in the list and you will switch to that model.
*F7* to open PedPicker Menu in game.
You should be able to just drop the files within the client_packages/packages directories and then add the requirements to the respective index.js files within those directories.
All source code is given from within the file download, but you can also find the repo here: AZAMOEBA_RAGE_PEDPICKER. If you are using this I'd appreciate a star or just let me know you found any of this useful. If I forgot a credit please let me know and I will get back to you and fix whatever is necessary. Enjoy!
Message for any comments/questions and I'll try to get back asap.
125 downloads
