140 files
-
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.
881 downloads
-
Console commands
By m4a_X
Simple command handler for the Rage:MP console...
... Just add more commands, for example to save the player
INFO: Stopping bridge resources seems to be broken by Rage.
Original resource by Vektor42O
313 downloads
(0 reviews)0 comments
Updated
-
Courier
By rootcause
Requirements
You need to download & install these resources first:
NativeUI Efficient Attachment Sync
Currency API (after installing, define a currency named cash)
Installing
Put the files you downloaded in their respective places Set up some businesses and products (read below) All done
Basically
This script adds factories and buyers which sell and buy products, your job is to buy stuff from factories and sell them to buyers for profit.
Commands
/products: Accesses a vehicle's product inventory, you have to be at the back of the vehicle.
/takeproduct: Takes a product from the ground/factory.
/dropproduct: Drops a product from your hands to the ground/buyer.
JSON Files
Most of the changes are done by editing JSON files located in packages/courier/json/.
Remember to validate your changes here: https://jsonlint.com/
config.json
businessWorkInterval: Interval of the business work timer (used for factories to make product and buyers to sell product), default value is 60000.
worldCleanerInterval: Interval of the world cleaner timer (used for removing dropped products), default value is 60000.
droppedProductLife: Milliseconds a dropped product will stay for, default value is 600000.
dropProductOnDeath: If true, dying will cause players to drop the product they're carrying, default value is true.
dropProductOnDisconnect: If true, leaving the server will cause the players to drop the product they're carrying, default value is true.
vehicles.json
This file contains an object that keeps which vehicles are supported by this script in modelName: capacity format. (Vehicles List)
{ "burrito3": 6, // 6 products for burrito3 "rumpo": 6, // 6 products for rumpo "speedo": 4, // 4 products for speedo "youga": 4 // 4 products for youga }
products.json
This file contains the product information in object of objects format. A product has name, model, price, profit, businessTime, attachOffset and attachRotation properties.
name: The product's visible name.
model: Model name of the product, used for dropping and attaching.
price: Price of the product.
profit: Profit rate of the product. Price is multiplied by this value while selling products to a buyer.
businessTime: Milliseconds it takes for a factory to create one of this product/for a buyer to sell one of this product.
attachOffset: Attachment offset of the product model on player.
attachRotation: Attachment rotation of the product model on player.
// Example: Ammunition product "ammo": { "name": "Ammunition", "model": "gr_prop_gr_bulletscrate_01a", "price": 300, "profit": 1.2, "businessTime": 600000, "attachOffset": { "x": 0, "y": -0.18, "z": -0.18 }, "attachRotation": { "x": 0, "y": 0, "z": 0 } }
businesses.json
This file contains business information in array of objects format. A business has type, productType, initialStock, maxStock and position properties.
type: Business type, only factory and buyer are available.
productType: The product this business is interested in, only the values in products.json are available.
initialStock: How much product this business has on server start.
maxStock: Maximum product this business can have.
position: Location of the business.
// Example: Beer Factory & Buyer used in the video [ { "type": "factory", "productType": "beer", "initialStock": 100, "maxStock": 100, "position": { "x": 4.168992519378662, "y": 12.795921325683594, "z": 69.82928466796875 } }, { "type": "buyer", "productType": "beer", "initialStock": 0, "maxStock": 20, "position": { "x": 29.61789321899414, "y": 5.448328018188477, "z": 69.10714721679688 } } ]
businessTypes.json
This file contains business type information in object of objects format. You probably don't need to make any changes to this file, unless you want to add new business types. (which needs some scripting as well)
A business type has label and blipSprite properties.
label: Visible name, used for blip name and label.
blipSprite: Blip sprite of the business type. (Blip Sprite List)
// Example: Default business types { "factory": { "label": "Factory", "blipSprite": 615 }, "buyer": { "label": "Buyer", "blipSprite": 616 } }
Extensions
This script extends mp.Player and mp.Vehicle.
Player Functions
// Returns true if the player is carrying a product. player.isCarryingProduct(); // Returns the type of product the player is carrying, will be null if the player isn't carrying anything. player.getCarryingProduct(); // Makes the player start carrying a product. Type should be a valid product type and the player shouldn't be carrying a product, or it won't work. player.startCarryingProduct(type); // Makes the player stop carrying a product. player.stopCarryingProduct();
Vehicle Functions
IMPORTANT: Vehicles with models that are in vehicles.json automatically get an inventory when entityCreated event is called, so you don't need to use setProductInventory for them. (Unless you want to be 100% sure they have it)
// Sets the product inventory of a vehicle. newInventory must be an array created by the array constructor like "new Array(8)". vehicle.setProductInventory(newInventory); // Returns true if the vehicle has a product inventory. vehicle.hasProductInventory(); // Returns the product inventory of the vehicle, will be null if the vehicle doesn't have one. vehicle.getProductInventory(); // Adds a product to the vehicle product inventory, index must not have an item already and index must be within the bounds of product inventory array. Returns true if successful, false otherwise. vehicle.giveProduct(index, productType); // Returns the product at the specified index of vehicle product inventory, will be null if index doesn't have a product. vehicle.getProduct(index); // Removes the product at the specified index of vehicle product inventory. Returns true if successful, false otherwise. vehicle.removeProduct(index);
Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-courier
365 downloads
(5 reviews)0 comments
Submitted
-
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.872 downloads
-
Custom UI Healthbar and Armor.
Hey !
So this script adds simply a Custom UI for the Healthbar and the Armorbar !
To this I simply add a condition for only if the player is in the car the GPS will be Display.
Installing:
Just drag the custom_ui folder to your client_package and don't forget to add the require('custom_ui '); to your index.js.
If you don't want to download this, you can also check the source code here:
https://github.com/SuperCoolNinja/ragemp-custom-ui
148 downloads
(0 reviews)0 comments
Submitted
-
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
117 downloads
(1 review)0 comments
Submitted
-
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
-
DxDraw Message Bars
By Captien
DxBar messages is a light easy to use script to show some notifications for your players. Just calling one event with your custom message and colored text.
Usage:
//Server-side player.call('Createinfo', '<text>', R, G, B, 'top or bot') //Client-side mp.events.call('Createinfo', '<text>', R, G, B, 'top or bot') Images are available at the old topic in forums, due to inability to restore them. (images will be added asap).
98 downloads
(2 reviews)0 comments
Updated
-
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
999 downloads
-
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
-
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)
714 downloads
(4 reviews)0 comments
Updated
-
Example of proper DLC Pack mapping loading
By Scr1m
An example of proper DLC Pack mapping loading without issues on first connection to the server.
Installation
Extract all archive files to the server packages root folder.
Note
The game might get frozen for up to 10 seconds (faster on SSD) on first connection, that's the time taken by the game to reload DLC mapping. Mapping will work properly after that though.
299 downloads
(1 review)0 comments
Updated
-
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.
1134 downloads
-
FireDepartment
By spacefrog
I made this script for beginners in c# so they can hopefully learn someting for it.
I'm not a pro in programming but i hope i can help someone with it.
I did not test this with other players but it should work.
Commands:
/teleport "to get to the fire department" /start1 "on the white colshape to start a fire" /stopfireid "to stop the fire or just extinguish it."
When you are on a mission you can heal your self on the green colshape.
When you start a fire it random selected one of the 6 main spawn points from that point it random create new spawn points and check if its reachable for the player.
410 downloads
- Fire fighter
- Fire Department
- (and 1 more)
(0 reviews)0 comments
Updated
-
Firing Modes
By rootcause
This script was originally made by EnforcerZhukov for singleplayer. (you can find it here) All credit goes to him.
I added extra stuff such as remembering firing mode (until you disconnect) per weapon, safety mode, HUD item and sound effects.
Installing & Using
Put guncontrol into your server's client_packages directory, then add require('guncontrol'); to index.js. Press F6 key to switch between firing modes.
Firing Modes
Auto: Default GTA shooting. Burst: Shoot 3 bullets every time you fire. (not supported on all weapons) Single: Shoot 1 bullet every time you fire. (not supported on all weapons) Safe: Disables shooting.
156 downloads
(1 review)0 comments
Updated
-
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
-
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
569 downloads
(5 reviews)0 comments
Updated
-
G button for Passenger
By Kudze
Improved version of already existing passenger script posted by George.
* Upon pressing G button this script searches for the first closest and free seat in the vehicle. If it finds one it makes player to enter into the seat.
684 downloads
-
Global Voice Chat
By ragempdev
The most trivial example usage of the recently introduced built-in voice chat API: global chat. It connects you to all players when you join the server and vice-versa.
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.
543 downloads
(5 reviews)0 comments
Updated
-
GTA SA Classic Menu
By adri1
This is a CreateMenu for the illegal gta v emulator.
Usage example:
List<string[]> menuItems = new List<string[]>(); menuItems.Add(new string[] { "Item 1 Column 1", "Item 1 Column 2" }); menuItems.Add(new string[] { "Item 2 Column 1", "Item 2 Column 2" }); Menu menu = new Menu("Title", new string[] { "Header 1", "Header 2" }, menuItems).show(); menu.setOnMenuResponseListener((Menu.OnMenuResponseListener onMenuResponseListener) => { RAGE.Chat.Output("Response: " + onMenuResponseListener.response + " item: " + onMenuResponseListener.item); menu.destroy(); });
22 downloads
(7 reviews)0 comments
Submitted
-
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.
657 downloads
(5 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
-
Headshots
By rootcause
Small script that adds instantly killing headshots.
Installing
Put headshots into your server's client_packages directory, then add require('headshots'); to client_packages/index.js.
516 downloads
(6 reviews)0 comments
Submitted
-
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
632 downloads
