139 files
-
RC-Bandito
By Captien
This resource makes you create/experience the rc-bandito. It can be used to do some spying or even suicide bomb...
// Server-side mp.vehicles.createRC(player); // Adds player to experience the bandito Controls:
INPUT_CONTEXT aka. E (Detonates the bomb) INPUT_ENTER aka. F (Returns to player) Thank to root for signing the Chinese weapon contract, and thank George men for continuous motivation...
You know what to do when you have issues (don't contact me obv.)
Thanks for reading this...
84 downloads
- captienproductions
- rc-bandito
- (and 3 more)
(1 review)0 comments
Updated
-
[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.
78 downloads
(0 reviews)0 comments
Submitted
-
Bitcoin Exchange
By rootcause
This is a small script that allows players to buy/sell bitcoins.
Requirements
Currency API (define a currency named "cash" after installing) node-fetch (after installing, go to packages/bitcoin folder, launch command prompt/powershell from shift+rightclick and write "npm install", should download it)
Installing
Drag & drop to your server files folder.
Config
The config.json file provides some options:
updateInterval - The time between BTC price updates, in milliseconds. Default value is 300000 aka 5 minutes. markerColor - Color of the markers, [r, g, b, a] format. markerRange - Range of the markers. exchangeCoords - Positions where players can buy/sell bitcoins. Default values add 2 exchange locations: Lester's house and garment factory.
Commands
buybtc [amount] sellbtc [amount] Both commands need you to be inside a Bitcoin Exchange marker.
Notes
This script does not save data (bought bitcoins etc), saving should be handled by your gamemode since Currency API provides functions for that. BTC price is provided by CoinDesk. Currency API does not support floats so players can't buy less than 1 BTC. Bogdanoff is watching73 downloads
-
Scaleform Hud
By Captien
This resource introduces the well known scaleform hud for mission/heists. Makes it easy to create it in-game
Known Issues:
Mission end doesn't display black background due to unknown reason, still addressing it. API:
Client-side API
// Client side // Credits to kemper for his amazing scaleform class... /* * Creates an intro that you see on mission start. * style: int (1-20) Adds background to the intro banner * header: Mission title * subHeader: Mission secondary title */ mp.banners.createIntro(style, header, subHeader).then(done => { }); /* * Creates an objective banner * style: (1-20) Adds background to the intro banner * header: Mission title * objective: Mission secondary title */ mp.banners.createObjective(style, header, objective).then(done => { }); /* * Creates an objective banner * style: int (1-20) Adds background to the intro banner * missionName: Mission title * reason: Reason of pass/fail * passed: boolean */ mp.banners.missionResult(style, missionName, reason, passed).then(done => { }); /* * Creates an mission end banner. * style: int (1-20) Adds background to the intro banner * cashWon: Cash Earned * level: Object * { rpGain: (int), rpStart: (int), rpMin: (int), rpMax: (int), currentRank: (int), nextRank: (int), rankUpText: (string), rankUpExtraText: (string) } */ mp.banners.missionEnd(style, cashWon, level).then(done => { });
Banner Images:
Intro:
Objective
Mission Complete
Mission End
If you have any issues you know what to do....
Thanks for reading this at least....
69 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"
68 downloads
(0 reviews)0 comments
Updated
-
Rage Horse
By Mos
Preview video https://streamable.com/b1b0i
Github repo https://github.com/ItsMos/ragemp-horse
Horse mod for rage multiplayer Notes This replaces the 'deer' model because it is fast-moving. Horses should be synced, this doesnt work well with `online` skins, you can fix that tho, feel free to contribute. You think that you're actually riding the horse? no, think again, the horse is riding you (your ped) Usage // server code let pkg = require('ragemp-horse') let allHorses = pgk.horses, Horse = pkg.Horse // To create a horse let myPony = new Horse(position, dimension) // delete a horse myPony.delete() Press Interact button (default `E`) to mount/dismount a horse Credits Horse model converted by Quechus1366 downloads
-
Car Compare (0-100, 0-200, Vmax)
By MrGenzo
Copy folder to "client_packages" and add
require("./genzocarcompare"); to your "client_packages/index.js";
60 downloads
(0 reviews)0 comments
Submitted
-
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
-
[JS] Regional Restrictions
By unkaid
Simple solution to check incoming connections from unwanted countries.
I. Install geoip-Lite: npm i geoip-lite
II. Edit country_ban list with the specified country codes https://dev.maxmind.com/geoip/legacy/codes/iso3166/
III. Save and put this script to "server-files\packages" and add require('./countryBan'); in index.js
38 downloads
- server-side
- javascript
- (and 5 more)
(1 review)0 comments
Submitted
-
Combat Helmets
By rootcause
Installing
Put the files you downloaded in their respective places Add require('combathelmets') to client_packages/index.js All done
Using
You can toggle visor/goggles by pressing F10 while on foot.
Adding More Helmets
Even though this is a combat helmet mod, you can add other helmets (such as motorcycle helmets) by editing packages/combathelmets/helmetData.json.
{ // Skin hash (mp_m_freemode_01) "1885233650": { /* Visor/goggles up drawable as key. Visor/goggles down drawable as "closed" property. Animation name as "anim" property. Available names: goggles, visor Optional "type" property for screen FX. Available types: nightvision, thermal Hat/helmet drawables: https://wiki.rage.mp/index.php?title=Male_Hats https://wiki.rage.mp/index.php?title=Female_Hats */ "117": { "closed": 116, "type": "nightvision", "anim": "goggles" }, "119": { "closed": 118, "type": "thermal", "anim": "goggles" }, "124": { "closed": 123, "anim": "visor" }, "126": { "closed": 125, "anim": "visor" } }, // Skin hash (mp_f_freemode_01) "2627665880": { /* Visor/goggles up drawable as key. Visor/goggles down drawable as "closed" property. Animation name as "anim" property. Available names: goggles, visor Optional "type" property for screen FX. Available types: nightvision, thermal Hat/helmet drawables: https://wiki.rage.mp/index.php?title=Male_Hats https://wiki.rage.mp/index.php?title=Female_Hats */ "116": { "closed": 115, "type": "nightvision", "anim": "goggles" }, "118": { "closed": 117, "type": "thermal", "anim": "goggles" }, "123": { "closed": 122, "anim": "visor" }, "125": { "closed": 124, "anim": "visor" } } }
Adding More Vehicles
You can add/remove supported vehicles by editing the vehicle animation dictionary object located in client_packages/combathelmets/index.js line 33. (vehAnimDictName object)
Issues
The animation won't be synced to other players in 0.3.7 but it should in future versions with improved task sync. FIXED IN v2.0 Visor up/down animation is used for both visors and goggles right now, even though this is a small visual thing it might be fixed in the future. FIXED IN v2.0 Players are not able to toggle visor/goggle state in vehicles right now, might change in the future. This would probably be most useful for bikes. Available on GitHub: https://github.com/root-cause/ragemp-combat-helmets25 downloads
(3 reviews)0 comments
Updated
-
[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.
24 downloads
- CS
- GetClosestObjectOfType
- (and 1 more)
(0 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(); });
10 downloads
(7 reviews)0 comments
Submitted
