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
-
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
2910 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
679 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.
2221 downloads
(6 reviews)0 comments
Updated
-
Animation Viewer
By Hazes
Hi everyone,
I've decided to share my Animator resource which basically lets you play all animations avaliable in this list:
https://wiki.gtanet.work/index.php?title=Animations
I have converted it from GTA Network to RAGEMP recently. It's a very simple but useful script. Searching through the animations list is like looking for needle in the haystack, considering about 2/5 of all anims cannot be applied to ped and 1/2 of those you wouldn't really find use for. It's a great solution if you don't want to install any mods to view anims. Just include the file and preview! Save included.
There are 12,365 animations to play. Some of anims do not work on player as they are intended to be used on props, vehicles, weapons etc.
You can also experience a few seconds delay on some animations, but none of them causes crashes.
After launching the Animator a drawText will appear in bottom-right corner of the screen, showing you which animation you are viewing including ID, animation group and name.
How to install:
UnZip the file and move the animation-viewer folder to bridge -> resources folder. Include animation-viewer resource in settings.xml. Move animator.js from animation-viewer folder to clientside_packages folder and include it in index.js.
How to use:
Type /animator to launch or close the animator. Type /animator help for in-game help. Type /animator skip [number] to skip to animation id. Type /animator save [savename] to save the animation. ( saves in server root folder in Saved_Animations.txt. ) Type /animator stop to stop currently playing animation. Use LEFT and RIGHT arrow keys to cycle through animations. Use UP and DOWN arrow keys to cycle through 100 animations at once.
Notes:
All animations are looped. Clientside file is minified. This resource is made for server developers. It sends huge amounts of data to clientside when launching so use it only to preview/save animations. You can see the code here: https://gitlab.com/Hazes/animator-viewer
Changelog:
[v1.0]
Code has been sorted and is a bit more optimized. Fixed assembly reference error for those who didn't have System.IO.dll included in their main resource. Parsing the number in /animator skip now works correctly.
Presentation:
768 downloads
- animation
- animations
- (and 4 more)
-
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
956 downloads
-
CEF wepSpawner
By Anzo
Installing:
Place the files you downloaded in their locations.
Add "require('.wepSpawner');" to client_packages/index.js.
Controls:
F4 to toggle menu.
Everything else is done in cef interface.
Features:
Spawn any weapon from https://wiki.rage.mp/index.php?title=Weapons (2019-05-05).
Get all weapons instantly by clicking "All Weapons".
Get all weapons from a category by entering the category and clicking "All *Category name*".
Get any weapon you choose.
Ability to remove all weapons and start over.
219 downloads
(1 review)0 comments
Submitted
-
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
1888 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
606 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
-
Weapon Spawner
By rootcause
Requirements
You need to download & install these resources first:
NativeUI Weapon Component Sync Weapon Tint Sync
Installing
Put the files you downloaded in their respective places Add require('weaponspawner') to client_packages/index.js All done
Using
You can use the /weapons command to access the weapon spawner menu.
Issues
Some components might not have a visible name because Rockstar didn't give them one. Equipped component displaying might not be accurate at first but will be fixed after you apply/remove a component.
Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-weapon-spawner
262 downloads
-
[JS, CEF] Internet Radio
By unkaid
Internet radio over colshapes using CEF.
Scope of application: custom clubs, interiors.
Default location is the Galileo Observatory (behind the monument).
Default radio station - Wacken Radio (DE).
Installation:
I. Put server files to: server-files\packages\yourGameMode
II. Add require('./rStreamColshapes'); to your server's index.js
III. Put client files to: client_packages then edit your client's index.js and add require('./rStream');
To change radio stream url, edit index.html here: client_packages\cef\rStream\index.html
GitHub
169 downloads
(2 reviews)0 comments
Updated
-
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
321 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.
1784 downloads
(2 reviews)0 comments
Submitted
-
Simple Vehicle Performance Tuner
By Rozi
Hello, I've decided to upload one of my first creations on Rage, it being the CEF-based vehicle performance tuning menu.
You are free to use this to your liking and edit it as long as you leave the credits in.
Download:
https://github.com/Roziiii/ragecarmenu
!!!IMPORTANT!!! The download on here will only be updated when bigger changes occur, but if you want the latest updates you should always download from the github.
CURRENT VERSION ON HERE: 1.0.4
CURRENT GITHUB VERSION: 1.0.4
618 downloads
-
Character Previewer
By MarkCavalli
This resource will help work with player clothes. I hope, someone will add all clothes screens to wiki 😀
359 downloads
(1 review)0 comments
Updated
-
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.
842 downloads
-
Simple Rainbow Text
Hey !
So this script adds simply a Rainbow Text usefull for display some text like ur discord server or server name ...
Installing:
Just drag the RainbowText folder to ur client_package and don't forget to add the require('RainbowText/rainbowtext.js'); to ur index.js
Notes:
I’ve done my best to explain to you everything you need to know about the code. If you have any questions, just post it.
The script can probably be improved, I’m still new to JS I’m learning from day to day, if you have any advisors do not hesitate. 😅
For french people just go to my Github to see how the installation work or just translate it lul 😋:
https://github.com/SuperCoolNinja/SimpleRainbowText
40 downloads
(2 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
-
[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
-
[C#] Key API
By ufteers
Key.Bind - This function binds the key.
keycode - hexadecimal code of key. keydown/keyup - true trigges on keydown, false triggers on keyup (bool) handler - function-handler. public class KeyTest: RAGE.Events.Script { public KeyTest() { Key.Bind(Keys.VK_ESCAPE, true, () => { // Code here return 1; }); } } To bind multiple keys:
Key.Bind(new Keys[] { Keys.VK_T, Keys.VK_F6 }, true, ...)
Key.IsUp - Returns true if the key specified has been released. Otherwise, returns false.
keycode - code of the key (Keys.VK_T or 0x54) private void Tick(List<Events.TickNametagData> nametags) { if(Key.IsUp(0x62)) { // NUMPAD2 up } } Key.IsDown - Returns true if the key specified is pressed. Otherwise, returns false.
keycode - code of the key private void Tick(List<Events.TickNametagData> nametags) { if(Key.IsDown(new int[] { 0x60, 0x61 })) { // NUMPAD0 & NUMPAD1 pressed. } }
80 downloads
(1 review)0 comments
Submitted
-
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.
85 downloads
(0 reviews)0 comments
Submitted
-
[C#] Example/Wrapper for fetching world objects.
Just an example/wrapper on how to properly use "GetClosestObjectOfType" and fetch data from an object.
I've been using this in my server for a while now to make it easier to get XYZ and rotation of objects in bulk, instead of having to go through them in codewalker which can be a pain.
Installation
Move client_packages to your client_packages folder Move Serverside C#/GetWorldObjects.cs to your gamemode or script. Move objectLocations.json to your server root directory.
Usage
The JSON file included in the zip contains the pacific bank vault door as an example object. Use the /getworldobjects or /gwo command to run through all the items in the JSON file and fetch the X, Y, Z and XYZ Rotation of the object.
As of right now it'll simply log the object to your server console and continue to the next object in the list, you can extend this functionality by editing the "REMOTE_EVENT_OnWorldObjectFetched" method in GetWorldObjects.cs server-side script.
JSON file object info
public class ObjectLocation { // The model name to look for, you can fetch this from CodeWalker or RAGEMP objectdb for example. public string Model { get; set; } // The model that should replace the model at this location, optional. I personally used this to store in the database and then on server start it'd delete the world object and replace it with the object model specified here. public string ReplacementModel { get; set; } = ""; // A position within X distance of the object you want to get the data of, distance can be specified by the Radius. public Vector3 Position { get; set; } // An optional type you can pass to the method so you can use it later on for data storage purposes(eg keep objects of certain types separated by an ID) public int Type { get; set; } = 0; // The radius to find the object, doesn't have to be too precise altho I generally recommend putting the player's teleport coordinates as close to the object as possible and decreasing range to 5 or 10. public int Radius { get; set; } } [ { "Model": "v_ilev_bk_vaultdoor", "ReplacementModel": "v_ilev_bk_vaultdoor", "Type": 0, "Radius": 25, "Position": { "X": 254.2859, "Y": 225.3845, "Z": 101.8757 } }, { "Model": "another_object_model_name", "ReplacementModel": "another_object_model_name_to_replace", "Type": 0, "Radius": 10, "Position": { "X": 1234.567, "Y": 123.456, "Z": 12.345 } }, ... ] All you have to do is add more items to the JSON file and it'll run thru all of them.
25 downloads
- CS
- GetClosestObjectOfType
- (and 1 more)
(0 reviews)0 comments
Updated
-
Car Compare (0-100, 0-200, Vmax)
By MrGenzo
Copy folder to "client_packages" and add
require("./genzocarcompare"); to your "client_packages/index.js";
63 downloads
(0 reviews)0 comments
Submitted
-
Simple Chat Advert
By MorHo
Simple Chat Advert
basically it'll prints out whatever you want into to chat.
Please do not change the code edit just config.json
170 downloads
(0 reviews)0 comments
Updated
