Scripts
207 files
-
Character Creator
By rootcause
Custom character creator resource, use /creator to access it.
Installing
Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it Add require('charcreator') to client_packages/index.js All done Notes
There might be bugs here and there especially on clientside The code is pretty messy right now, will be improved in the future
10810 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 stuff8093 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
-
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.6137 downloads
-
Local Voice Chat (3D)
By ragempdev
A local voice chat example using built-in voice chat API. Look for constants to change max range, auto volume (instead of changing volume on your own) and 3D effect.
Press F4 to toggle local player's muted state.
As of 24th Oct 2018 you need to use "testing_voice" branch to utilize voice chat API.
6011 downloads
-
Map Editor
By notsosmart
NEW VERSION:
Version 0.3 - March 22nd, 2018
Changelog(0.3)
-Support for 1.43 added. This resource also supports 1.41 and 1.42. -Added freeze/unfreeze ability for objects. (Use this on doors. Just press F to toggle) -Fix duplication bug. Changelog(0.2.2)
-Fix "mobj" command with string/number hash detection. Changelog(0.2.1)
-Fix crash when trying to dupe map hashes. Changelog(0.2)
-Dupe function (Right click objects and you can place the same object again) (Works on non-editor objects). -Hash checker (Look at any object on the map, not just editor objects to check their hash). -Auto adjustement in placement stage. Right click to automatically rotate/position object on the ground. -Scroll improvement by loading models ahead of time. -Other fixes. -Some code restructure thanks to mtz64. Changelog (0.1)
-Initial Release Yes there are lack of features or some bugs, 0.1. Make bug reports/suggestions if you have any.
**Note that your current edit is autosaved every 30 seconds. To load it call '/mload autosave'.
(Yes I know commands throw "Command not found". Ignore it for now)
There are roughly 50,000 objects. The list needs a bit of cleaning but it includes many new objects not seen before such as sections of the map.
Installation:
Drop the "MapEditor" folder inside the "client_packages" folder into your own "client_packages" folder.
Merge the index.js file found inside "client_packages" with your own.
Drop the "MapEditor" folder inside the "packages" folder into your own "packages" folder.
Usage:
To start/exit the editor press F2. (NOTE THAT OBJECTS CURRENTLY IN EDIT MODE WILL REMAIN ON THE MAP. USE /mclear)
Press 1 for Selector Mode (You can click on objects, or click off to deselect)
Press 2 for Object Placement Mode
Press 3 for Adjustment Mode
Press ENTER to save objects inside Adjustment Mode. Press SPACE to rotate objects by 90 degrees in Object Placement Mode.
WASD to move around. E and Q to move up and down.
Shift to speed up movement, control to slow down movement.
Ctrl + Z to undo object creation, Ctrl + Y to redo it. This only applies to object creation for now.
Controls are defined on the screen for you. Mostly point, click, and drag.
Commands: (Yes, commands in 2018, stop crying until I make some UI framework)
/msave [name] - used to save your map
/mmaps - used to see what maps you have saved in your session
/mload [name] - used to load a map (you can load/deload as many maps as you want) (it is synced)
/mdeload [name] - used to deload a map if it is loaded (not if it's in edit mode)
/mlmaps - used to see what maps are loaded (That's an "L" not an "I")
/medit [name] - used to edit a map (it will load in client sided only and you can edit it)
/mclear - used to clear your current edit
/mindx [index number] - used to set the list index since it is a huge list
/mobj [name of hash] - used to spawned a specific object by name
API:
LoadMap(name);
DeloadMap(name);
SaveMap(name, data);
DO NOT PASS IN THE "_map.json" EXTENSION. THAT IS HANDLED ON ITS OWN. ONLY PASS THE NAME YOU SAVED IT AS.
Ex. /msave map1 - will save it as map1_map.json. To load it call /mload map1 or LoadMap("map1");
https://github.com/DisapprovedByMe/MapEditor
4792 downloads
-
Interactive Phone for CEF
By GreenFanta
I created this phone for a previous GTA MP Mod. I never properly finished it but it has useful features such as:
Lockscreen push notifications Home button Custom phone style support Apps that open divs. Phones are stored in phones/phones/[phone-name]/
There is a JSON file that contains the needed info for the phone as well as an image for the phone.
This is unfinished
4235 downloads
-
Easy Blip Creator
By valdirdd
Easy way to create blips: create, teleport to blip and delete. The blips are loaded on script load.
Install:
Copy files to your server-files and don't forget to edit index.js in client_packages if you have more resources.
Commands:
/blipc or /blipcreator - Enable and disable creator mod /blipd or /blipdelete - Open menu with blips to teleport or delete Keys:
' (single quotation marks) - Open and close creator menu. (Only works if creator mod is enabled) 1 (number one) - Create blip in your position with the config pre-binded (Only works if you bind) 2 (number two) - Create blip in your position with the config pre-binded (Only works if you bind)
The blips are saved in json file. if you want change the directory go to (packages/BlipCreator/index.js) and change const SAVE_FILE = './blips.json';
Anyone can create and delete blips, if you have permission system or whatever, put your verifications in the commands: function blipCreator(player) and function delBlips(player) and also in events mp.events.add("delBlip", (player, id) => and mp.events.add("blipCreate", (player, data) => in file (packages/BlipCreator/index.js)
Did you see a grammar error please coment thks
3935 downloads
-
Speedometer KM/h, RPM and Fuel
By valdirdd
Design by @CommanderDonkey, link here.
For install just copy files to your server.
Don't forget edit index.js into client_packages if you have more resources.
3910 downloads
(3 reviews)0 comments
Submitted
-
MoneyAPI
By rootcause
This resource probably won't get future updates, check out Currency API instead.
Easy to use money system for your server. It handles saving&loading and provides you a custom data key to get/set a player's money.
Installing
Put the files you downloaded in their respective places Add require('moneyapi') to client_packages/index.js Open packages/moneyapi/constants.js and put your MySQL info (maybe edit the settings too while you're at it...) Congrats, you're all done Settings (packages/moneyapi/constants.js):
startingMoney use this setting to change how much money players start with. Default: 0 autoSaveInterval use this setting to change how frequent auto saving happens (in minutes), you can set it to 0 if you want to disable auto saving. Default: 5 Example
You can access a player's money from customMoney property using either .data.customMoney or .getVariable("customMoney").
mp.events.addCommand("smoney", (player, _, money) => { // set the player's money to the specified amount money = parseInt(money); if (!isNaN(money)) { player.data.customMoney = money; } else { player.outputChatBox("Invalid amount specified."); } }); mp.events.addCommand("cmoney", (player, _, amount) => { // change the player's money by the specified amount amount = parseInt(amount); if (!isNaN(amount)) { player.data.customMoney += amount; } else { player.outputChatBox("Invalid amount specified."); } }); mp.events.addCommand("buyhp", (player) => { // refill a player's health for $100 if (player.data.customMoney >= 100) { player.health = 100; player.data.customMoney -= 100; player.outputChatBox("Refilled health for $100."); } else { player.outputChatBox("You don't have $100."); } }); Notes
First of all, thanks to @Donboo for their MySQL example which you can find here. This script won't save while the server is shutting down but will save player money when they disconnect or when autosave happens. This script uses an int(11) field to store a player's money. If you think $2147483647 isn't enough, you might want to change it. For some reason, MoneyAPI HUD elements will be off position in 1914x1080 windowed resolution. This script won't update the money display on the ESC/pause menu. (This note is obsolete if you're using the GameHUD version)3895 downloads
-
Basic Vehicle Sync
By notsosmart
This resource will sync basic things for you such as the doors, windows, tyres, engine, dirt, and lock status.
Note that this resource incorporates the disabling of automatic engine toggle. If you get in a car you can only start it by script commands.
There are several API functions provided for you to use.
Read up on how to use this resource here;
https://wiki.gtanet.work/index.php?title=Getting_started_with_Basic_Vehicle_Sync_Resource
3742 downloads
-
Map Editor 2 [BETA][Fixed Markers]
By notsosmart
MAP EDITOR 2 [BETA v2.0.0] (Free and doesn't have keyboard only controls)
Known Bugs: A million of them, don't tell me about it.
(Server)
Drop the MapEditor2.dll file in your resource resources
(Client)
Drop the MapEditor2.cs and Objects.cs files in your cs_packages folder
Info:
Server Commands:
/loadmap name --Globally loads the map instead of client-sided only
/unloadmap name
Client Controls:
Press M to start/stop the editor
WSAD to move
Q & E move you down and up
Hold right-click to move, while moving you can scroll down/up to increase speed
Hold left control to move slow
Hold shift to move fast
Press Delete to delete the highlighted object
You can drag objects by holding left-click on them
You can duplicate objects by right-clicking and then clicking "Clone Object"
"Exit Here" Button - Drops you at the location your camera is
"Exit Back" Button - Drops you back at the original location you started the editor
"Place Objects On Ground" Button - When you drag, the object will be placed on the ground properly
"Save Map" Button - Hover over the name box to input a name, click save to save the map
"Load Map" Button - Hover over the name box to input a name, click load to load the map (Client-sided load)
"Clear Map" Button - Wipes the current loaded map
Upcoming features;
-Vehicle list (Support exists)
-Checkpoints
-Undo & Redo
-Group select
-Adding objects to favorites (System in place but isn't finished)
3269 downloads
-
CarShop Simple System
By Protocole
HI all, here is a simple CarShop system, pretty optimized in client side, but not this much server-side.
This CarShop adapt himself to what you give it, from the config file, let me explain:
You define some parameters in the config file, for your carShop (Vehicles classses, marker position...), and the client side system with do the stuff.
Here is a example of a carShop:
"Boat": { // Shop Name "Position": { // vehicle position for the showcase, camera is auto defined from this "x": -729, "y": -1361, "z": 0.05, "rz": 136 }, "Marker": { // Marker for the player when entering shop "x": -815.93, "y": -1346.3, "z": 5.15 }, "Park": { // When you buy your vehicle, here is where you put vehicle location, it is random ! :D ANd a waypoint is created in client side to show where it is "0":{"x":-725.33,"y":-1325.299,"z":0.11,"rz":228.29}, "1":{"x":-727.42,"y":-1329.044,"z":0.11,"rz":230.54}, "2":{"x":-729.79,"y":-1333.469,"z":0.11,"rz":230.29}, "3":{"x":-731.4,"y":-1332.34,"z":0.11,"rz":228.29}, "4":{"x":-734.63,"y":-1334.34,"z":0.11,"rz":228.29}, "5":{"x":-738.73,"y":-1342.34,"z":0.11,"rz":228.29} }, "Blip": 427, // Blip for the map "Class": [ 14 ], // vehicle classes, see below for list "Name": "Boat Shop" // Displayed Name } So, aswell, when connect this will create a Marker / Blip on the marker position of the config file.
And that's all for creating a car shop !
Now, you can define prices easily aswell:
In the vehicle_Shop.json file, you have the list of every vehicle which are available for selling. You have the hash, displayName, name, manufacturer & the price, define dby 15000 by default, but you can define a new price for every vehicle by yourself.
That's all you have to do, now do /carShop [YouCarShopName], and see the magic happening.
Here is the vehicles class name:
Sedans SUVs Coupe Muscle Sport Classic Sport Super Moto Off-Road Industrial Utility Vans Cycles Boats Helicopters Planes Service Emergency Military Commercial Trains I think i gave you all the stuff to make it works, i hope you like it!
By default you have 3 carshops, boat / low budget car/ helicopters.
3073 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.
2798 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. ❤️
2707 downloads
(5 reviews)0 comments
Updated
-
Free Cam
By ynhhoJ
With this script you can get coordinates of the camera and coordinates of where camera is pointing.
F5 - enable/disable. F5+Space - disable without warping to ground. W/A/S/D/Space/LCtrl - move. /savecam [name] - save Camera position. Example of save:
Position: -64.17094421386719, -824.6749877929688, 373.018310546875 | pointAtCoord: -76.13325500488281, -807.392822265625, 320.28961181640625 | entity: 139321 - First Pos
Author: @ragempdev
I just added possibility to save camera pos and pointAtCoord
2647 downloads
-
Fingerpointing
By etrex2k4
First of all i want to credit Geekness for this former Pointing CL code
I rewrote the Clientside Animation into JavaScript and synced it through two Serverside events and an additional Clientside SyncFix-Event with the help of George.
Installation:
1. Add client.js to your client_packages
2. Add require('./client.js'); in your clientside index.js
3. Add server.js to your packages (Optional you can copy the code and paste it into your existing events file)
4. Add require('./server.js'); in your serverside index.js
Control:
The Animation is bound to the 'b' key.
Have fun with this resource.
2625 downloads
-
Vehicle F/G keys entering
By ragempdev
A ~20 lines client-side script to enable vehicle entering using F/G keys. Radius, max vehicle speed to enter and keys are customizable. This script doesn't search the nearest passenger seat, but the first empty (since it's just an example of how to do that at all and show that it really was customizable).
2572 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
-
Clothing Shops
By rootcause
This script lets you create your own clothing shop(s) with JSON files.
Installing
Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it (Only if you're going to have paid items) Download & install Currency API then define a currency named cash. Add require('clothing-shops') to client_packages/index.js Set up some clothing shops (read below) All done
Setting Up Shops
Shop data is loaded from packages/clothing-shops/shops, any JSON file there will be treated as a clothing shop. Shop file structure:
{ // OPTIONAL, this object will be the menu banner sprite on clientside. Search for "shopui_title_" on https://wiki.rage.mp/index.php?title=Textures "bannerSprite": { "library": "shopui_title_highendfashion", "texture": "shopui_title_highendfashion" }, // REQUIRED, this array contains the shop coordinates "shops": [ { "x": 123.4, "y": 456.7, "z": 8.9 }, { "x": 10.0, "y": 20.0, "z": 30.0 } ], // REQUIRED, this object contains item data for freemode male model "male": { // REQUIRED, this object contains all clothing item data "clothes": { // REQUIRED, this array contains item data for a component slot (https://wiki.rage.mp/index.php?title=Clothes - we're using 11 - tops here) "11": [ // REQUIRED, item object(s) for component slot 11 { "name": "Blue Burger Shot Hockey Shirt", "drawable": 282, "texture": 0 }, // This item will need the player to have some money (handled with Currency API) { "name": "Blue Cluckin' Bell Hockey Shirt", "drawable": 282, "texture": 4, "price": 500 } ] }, // REQUIRED, this property contains all prop item data (we're not gonna add any props to freemode male here, so it's just an empty object) "props": {} }, // REQUIRED, this object contains item data for freemode female model "female": { // This time we're not adding any clothes "clothes": {}, // But we're adding props "props": { // Same as above, prop slot as key (we're using 7 - bracelets) "7": [ // Prop items are defined just like clothing items { "name": "Gold Snake Cuff", "drawable": 0, "texture": 0, "price": 200 }, { "name": "Light Wrist Chain (R)", "drawable": 7, "texture": 0 }, { "name": "Spiked Gauntlet (R)", "drawable": 13, "texture": 0, "price": 85 } ] } } } If this wasn't any clear, there is a file named ExampleShopFile.json inside packages/clothing-shops/. (it's the file used in the preview video, put it to shops folder if you want to load it)
I'd also recommend you to check out my "Clothing Names" resource for valid names.
Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-clothing-shops
2435 downloads
-
Better Notifications
By rootcause
Now with 200% more color.
Clientside Functions:
mp.game.ui.notifications.show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) mp.game.ui.notifications.showWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Serverside Functions:
player.notify(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) player.notifyWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) As Events:
BN_Show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) BN_ShowWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Example:
// Clientside mp.game.ui.notifications.show("Normal message with custom text and background color.", false, 15, 20); mp.game.ui.notifications.showWithPicture("New Message", "Facebook", "You got some more of that data?", "CHAR_FACEBOOK", 1, false, 0, 139); // Serverside player.notify("This message is red which means you're doing something wrong.", false, 6); player.notifyWithPicture("Title", "Ammu-Nation", "Ammunation has all the equipment you need to protect your family from the evils of a liberal society! Fixed, mounted, and shoulder-held submachine guns. Mortars! Surface-to-air and all manner of heat-seeking missiles!", "CHAR_AMMUNATION"); Icons:
You can specify an icon ID for picture notifications, here's a list of them:
0, 4, 5, 6 = No Icon 1 = Speech Bubble 2 = Message 3 = Friend Request 7 = Arrow 8 = RP 9 = Money Notes:
textColor and bgColor parameters want a HUD color ID which you can find here. (it is a bit outdated now though) You can find notification pictures here. If you can't see picture notifications, you must enable Phone Alerts from Settings > Notifications > Phone Alerts. This script changes player.notify on serverside.2356 downloads
-
Character Creator
By Zekiloni
Hi, i'm giving this characte creator from my heart to you guys ❤️
It's on Serbian, sorry, you will get t
It's looking amazing ig, with camera and everything...
2299 downloads
-
[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
-
Location + Speed Display
By rootcause
Just a small script that displays your location and vehicle speed (if you're in one) next to the mini map.
https://github.com/glitchdetector/fivem-minimap-anchor - credits for minimap anchor code
Notes
You can disable speed display feature by setting useSpeedo to false. Location and speed won't be displayed if your radar is disabled or hidden. Speed unit changes based on your Measurement System setting of GTA V, which you can find in Settings -> Display -> Measurement System.2236 downloads
