140 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.
180 downloads
(4 reviews)0 comments
Updated
-
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
2091 downloads
-
Job Taxi
By Idle
Job Taxi:
1. Call taxi;
2. Set the route by coordinates;
3. Accept call;
4. Good system of money calculation;
5. Reasonableness of the main features.
254 downloads
(1 review)0 comments
Updated
-
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.242 downloads
-
Levels
By rootcause
Installing
Put the files you downloaded in their respective places Add require('levels') to client_packages/index.js Open packages/levels/database.js and put your MySQL config All done
API
/* Player level and XP is accessed through currentLevel and currentXP shared data keys. You should not change the value of these shared data keys, just use them to get data and use the API to set data. */ player.data.currentLevel OR player.getVariable("currentLevel") // returns level of the player player.data.currentXP OR player.getVariable("currentXP") // returns XP of the player /* setLevel(newLevel) Sets the player's level to newLevel. (will also change player's XP to level XP) */ player.setLevel(newLevel) /* setXP(newXP) Sets the player's experience to newXP. (will update player's level) */ player.setXP(newXP) /* changeXP(xpAmount) Changes the player's experience by xpAmount. (will update player's level) */ player.changeXP(xpAmount) /* hasReachedMaxLevel() Returns whether the player has reached max level or not. */ player.hasReachedMaxLevel() /* saveLevelAndXP() Saves the player's level and XP data. Automatically called a player disconnects. */ player.saveLevelAndXP()
Events
These events are called on serverside when a player's level or XP changes.
/* playerXPChange This event is called when a player's XP changes. */ mp.events.add("playerXPChange", (player, oldXP, newXP, difference) => { // code }); /* playerLevelChange This event is called when a player's level changes. */ mp.events.add("playerLevelChange", (player, oldLevel, newLevel) => { // code });
Example Script
Here's a script that lets you change your level/XP and writes it to console:
mp.events.addCommand("setlevel", (player, newLevel) => { newLevel = Number(newLevel); if (!isNaN(newLevel)) { player.setLevel(newLevel); } else { player.outputChatBox("SYNTAX: /setlevel [new level]"); } }); mp.events.addCommand("changexp", (player, amount) => { amount = Number(amount); if (!isNaN(amount)) { player.changeXP(amount); } else { player.outputChatBox("SYNTAX: /changexp [amount]"); } }); mp.events.addCommand("setxp", (player, amount) => { amount = Number(amount); if (!isNaN(amount)) { player.setXP(amount); } else { player.outputChatBox("SYNTAX: /setxp [new xp amount]"); } }); mp.events.add("playerXPChange", (player, oldXP, newXP, difference) => { console.log(`${player.name} ${difference < 0 ? "lost" : "gained"} some XP. Old: ${oldXP} - New: ${newXP} - Difference: ${difference}`); }); mp.events.add("playerLevelChange", (player, oldLevel, newLevel) => { console.log(`${player.name} had a level change. Old: ${oldLevel} - New: ${newLevel}`); });
Credits
Unknown Modder - RP List IllusiveTea - Rank bar scaleform
Notes
This script will load and save level and XP data of players on its own but a function to save player data yourself is provided. Like said before, don't change the values of currentLevel and currentXP shared data keys. Maximum reachable level is 7999 but a player can earn XP until his rank bar is full, kinda reaching 8000. Use player.hasReachedMaxLevel() to detect if a player is level 7999 and his rank bar is full.
483 downloads
(5 reviews)0 comments
Submitted
-
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:
398 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.
2262 downloads
(6 reviews)0 comments
Updated
-
Local Voice Chat (C#)
By ragempdev
A C# version of the local voice chat resource:
Note that you need client-side C# access to run it which is not public yet as of 22nd November 2018.
727 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.1061 downloads
(7 reviews)0 comments
Updated
-
Login / Register html template
By Tenchuu
https://www.dropbox.com/s/3ump4anqb45mm9x/1uJJ7nb7a9.mp4?dl=0
This is just a template for your login / register system.
110 downloads
(0 reviews)0 comments
Submitted
-
Manage Weather Time
By Nov4tO266
Basic script to sync time of the game in custom cicles
That script just change the time of the game based on the configuration cicle time and real life.
every 0 hour and 12 hours the weather is changed in random mod to another weather.
The cicle of Timeout will adjust to read the script every hour in the game.
How to use:
Just place de script in your server-side (Package) and change the "const cicleTime" to your
size of a day cicle. Use real life minutes for that. Exemple: "30" will be 15 minutes in real life day
and 15 minutes night.
Notes:
If you place some value in cicle time that a hour in the game last less then one minute in real life,
dont will work (if you know how to fix comment please ).
Future Updates:
Smoth transition, show time and date on UI
551 downloads
(1 review)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
258 downloads
(4 reviews)0 comments
Updated
-
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
2943 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)
915 downloads
-
MapEditor
By PrototypeX
Working version of the MapEditor by PrototypeX!
Developed for the project SMOTRArage
Old resource:
404 downloads
(4 reviews)0 comments
Updated
-
MC's Blackjack Mod
By MCtheBoss
~~PLEASE LEAVE FEEDBACK ON MULTIPLAYER FUNCTIONALITY~~
Hello! I'm MC, and I developed this blackjack mod from scratch. The goal was to create an interactive blackjack experience with full UI support. If you decide to give it a go, please make sure to leave some feedback as to whether it works properly or not. Thanks!
Here's a demo of the mod in action:
Features:
When a player creates a table, they will automatically be assigned the HOUSE role for that table. The house player has the following UI options:
- OPEN TABLE: If the table is currently closed, it will open the table. All tables are open by default.
- CLOSE TABLE: The table will close for all players, except for the house player. This is used to prevent players from joining a private game, or a game in progress. It can also be used to temporarily close the table for an extended period of time.
- RESHUFFLE: The tables deck is reshuffled, with all players hands being reset and the house having a new hand dealt. This reuses the same number of decks that was originally equipped with the table.
- DESTROY TABLE: Destroys the table, deleting all resources associated with it. This will close any open UI for all players currently in the table, and the house player.
- LEAVE GAME: This just leaves the table. If the house player leaves the table, the current state of the table is lost.
Clicking on any player name will 'hit' the player. Additionally, clicking on a card on the table will flip the card over.Players will only see the house's hand and their own hand. They only have the option to leave the game.
That's it! Any future adjustments to this mod will be based purely on the feedback received.
Check me out on Twitch if you ever want to catch me occasionally coding RageMP mods live, support future mod development, or if you just want to come say hi: https://www.twitch.tv/mctheboss
102 downloads
(2 reviews)0 comments
Updated
-
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)1697 downloads
-
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.
309 downloads
(5 reviews)0 comments
Updated
-
More Immersive Emergency Lights
By dArkyunn
More Immersive Emergency Lights for RageMP
A script for GTA V's multiplayer modification RageMP, that adds more immersive controls of emergency lights and sirens for default and non-els vehicles. Both lights and sirens are synchronized between players!
Read the documentation, check out the code or get the newest version, go here: GitHub
Credits:
- RageMP team for creating this awesome mod
- Mos#2649 on Discord for this keybinding idea
147 downloads
(1 review)0 comments
Updated
-
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(); } });
237 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!
538 downloads
-
No reticle for all weapons.
By Soupiest
Every weapon has no reticle when aiming. (Working with snipers too.)
Installation:
1) Unpack the zip.
2) If you haven't already, create a "dlcpacks" folder inside your "client_packages" folder.
3) Drop the "nosight" folder inside "dlcpacks"
76 downloads
(0 reviews)0 comments
Updated
-
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.
87 downloads
(2 reviews)0 comments
Submitted
