139 files
-
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.
178 downloads
(4 reviews)0 comments
Updated
-
MapEditor
By PrototypeX
Working version of the MapEditor by PrototypeX!
Developed for the project SMOTRArage
Old resource:
403 downloads
(3 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
115 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
535 downloads
(2 reviews)0 comments
Submitted
-
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.
873 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. ❤️
825 downloads
(3 reviews)0 comments
Updated
-
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.
124 downloads
(1 review)0 comments
Updated
-
Simple Register / Login
By Xendom
Nothing special, just a small Register / Login. Let me know, if something doesn't work correctly or I could do something better.
https://github.com/raydNDev/RAGEMP-RegisterLogin
844 downloads
- RAGEMP
- Register / Login
- (and 1 more)
-
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); });
561 downloads
(2 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
339 downloads
- Scoreboard
- Health
- (and 3 more)
(0 reviews)0 comments
Updated
-
[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; });
394 downloads
-
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.255 downloads
(5 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
87 downloads
(1 review)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)187 downloads
(2 reviews)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
-
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.
277 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.
1113 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
559 downloads
(5 reviews)0 comments
Updated
-
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
251 downloads
(4 reviews)0 comments
Updated
-
Binoculars
The scenario used here is not synced
Use the command to trigger the script :
/binocular Scroll up and down to zoom in / out.
Installation: Just put the folders where they should be, don't forget to import client side scripts in your index.js
If you have any question feel free to ask us
By AdAstra Dev Team (FR :D)
152 downloads
(1 review)0 comments
Updated
-
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.
539 downloads
(5 reviews)0 comments
Updated
-
Moods
By rootcause
This resource lets players choose their mood. Selected mood is synced to other players.
Installing
Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it Add require('moods') to client_packages/index.js All done Controls
F7 Key - Show/hide mood menu.
303 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 done226 downloads
(2 reviews)0 comments
Submitted
-
[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
-
Radio Sync
By BlackPanther
This script, sync Driver Radio to all Other Passangers...
INSTALL :
Simple....
put the files in the Folders as defined.
in client_packages/index.js put
Finish
i Hope it worked for u
EDIT : A Update is currently in work
736 downloads
(6 reviews)0 comments
Updated
