Scripts
207 files
-
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.
929 downloads
(2 reviews)0 comments
Updated
-
Windows style cursor pack
By hartority
An example of a cursor pack that replaces the default cursor.
Replaced cursors:
default (CT_POINTER) help (CT_HELP) none (CT_NONE) pointer (CT_HAND) text (CT_IBEAM) move (CT_MOVE) ew-resize (CT_EASTWESTRESIZE) ns-resize (CT_NORTHSOUTHRESIZE) not-allowed (CT_NOTALLOWED) This resource also has a browser page with a list of all possible cursors for the test.
Have fun customizing your cursors!
222 downloads
(2 reviews)0 comments
Updated
-
Vice City Minimap
By adri1
Video: https://streamable.com/2cg3g
This is a cef minimap for vice city in js.
Helth and armour progress bars don't work you can make it work easily
497 downloads
(6 reviews)0 comments
Updated
-
Inventory System
By shrox
RAGE Multiplayer Inventory System
A simple inventory system with plenty of features and a neat UI!
*This script does not provide a saving or loading system, that's your doing, there's a 'save' method in the inventory class where you can implement your own saving system depending on what database you're using.
*Comes in typescript & javascript version.
*The keys binded in the clientside script are temporary, you should change them based on your preference.
*Easy to use & implement.
> Will be generally maintained and updated.
Items
Down below is a list of item properties, each property has its own unique use so read it please.
type: ITEM_TYPES; //item type typeCategory: ITEM_TYPE_CATEGORY; //item category see ITEM_TYPE_CATEGORY enum in index.d.ts isPlaced: boolean; //whether item is 'placed' in clothes quality: number; //item quality level image: string; //item image hash: string; //unique item hash, also used as linked to a child item key: string; //item key which contains clothes data only (such as component id, drawable and texture) render: string; //item render image which later on can be used in CDN if you have plenty items. name: string; //item name description: string; //item description count: number; //item count, also determines whether you can split an item up weight: number; //item weight maxStack: number; //max stack determines how many items can be stacked in one slot options: string[]; //item options (to be used when you right click an item) such gender: number | null; //item gender, used on clothes whether the clothe is for female or male modelHash?: string; //prop model name or hash that will be used to create object when dropping item ammoType?: string; //ammo type that a weapon will contain ammoInClip?: number; //ammo in weapon clip amount?: number; //used for armor to contain its amount effect?: { //a feature to be developed whether the item will have an effect or not [key: string]: number; }; components?: Array<number>; //will be used for weapon attachments in future
Class Structure
The Inventory class is the main class for managing player inventories in a game. It extends from other classes such as InventoryClothes, QuickUse, and InventoryItem.
InventoryBase: Base class for inventory management. It initializes the inventory structure and handles basic operations. InventoryItem: Extends InventoryBase and adds methods for managing individual items in the inventory. QuickUse: Extends InventoryItem and adds methods for managing quick-use slots. InventoryClothes: Extends QuickUse and adds methods for managing clothing items in the inventory. This class provides comprehensive functionality for managing player inventories, including adding, removing, equipping, and using items.
Properties
items: Contains the player's inventory items, divided into pockets and clothes. quickUse: Contains items assigned to quick-use slots. weight: Represents the total weight capacity of the inventory. equippedWeapons: Keeps track of equipped weapons. Constructor
Initializes the inventory with player-specific data such as clothes, pockets, and quick-use items. Methods
addItem: Adds an item to the inventory's pockets. addClothingItem: Adds a clothing item to the inventory. removeClothes: Removes a clothing item from the player's character. loadClothes: Loads clothing items onto the player's character. setClothes: Sets clothing items on the player's character. reloadClothes: Reloads clothing items onto the player's character. getFreeSlot: Retrieves a free slot in the inventory pockets. getTotalFreeSlots: Counts the total number of free slots in the inventory. getClothingIndex: Retrieves the index of a specific clothing item type. resetItemData, resetClothingItemData, resetBackpackItemData: Resets item data in the inventory. updateOnScreenPed: Updates the player's character appearance on-screen. getItemModel: Retrieves the model hash of an item type. getItemAndStack, getItemsByHashName, getItemsInCategoryByHashName, getItemsByHashNameEx: Methods for retrieving items by their type or category. getItemByUUID: Retrieves an item by its UUID. hasPistolItem, hasShotgun, hasAssault, hasSMG, hasWeaponInFastSlot: Methods for checking if the inventory contains specific weapon types. getActualWeight, getWeight, getItemsWeight: Methods for calculating the weight of the inventory and its items. checkWeight: Checks if adding a new item will exceed the weight limit. getFreeSlotCount: Retrieves the count of free slots in the inventory. dropItem, splitStack, addPlayerItem, addPlayerItemEx, addMultipleItems, addCountToPlayerItem, manageFastSlots, pickupItem, moveItem, openItem, useItem: Methods for managing inventory actions such as dropping, splitting, adding, and using items. deleteItemStack, deleteItem: Methods for deleting items from the inventory. checkQuickUse: Checks if an item is in a quick-use slot.
Adding new items:
Javscript
-> Navigate to Items.module.js located inside inventory folder, there you can see a list of already added items, and you can follow the path, after adding an item there make sure the item image exists in the frontend, if it doesn't then add it and rebuild the frontend.
Typescript
-> Navigate to Items.module.ts located inside inventory folder, there you can see a list of already added items, and you can follow the path, after adding an item there make sure the item image exists in the frontend, if it doesn't then add it and rebuild the frontend.
Getting Started with Development
Install the required packages by executing `npm install`
If you're on typescript version after installing packages you can execute `npm run watch:server` to watch/build server side and `npm run watch:client` to watch/build client side, if you're on the javascript version, you don't have to do anything.
Getting started with frontend.
In your terminal navigate to the frontend folder (cd frontend)
Run frontend in development mode by executing: `npm run start`
Build the frontend (inventory ui) by executing `npm run build`
After you're done see the gifs below what to do next:
Creating package2 folder:
https://github.com/shr0x/ragemp-inventory-system/raw/main/gifs/create_package2.gif
Building Inventory UI:
https://github.com/shr0x/ragemp-inventory-system/raw/main/gifs/build_frontend.gif
Moving built files to package2:
https://github.com/shr0x/ragemp-inventory-system/raw/main/gifs/move_to_package2.gif
1173 downloads
(1 review)0 comments
Updated
-
RageMP new hairstyles!
By Soupiest
- Up to 20 NEW hairstyles for males!
- Up to 19 NEW hairstyles for females!
- Root's character creator adaption supported!
Installation:
1) Unpack the rar.
2) If you haven't already, create a "dlcpacks" folder inside your "client_packages" folder.
3) Drop the "gtahairs" folder inside "dlcpacks"
1622 downloads
(5 reviews)0 comments
Updated
-
[Perfect for RP Servers]
By Wdoyle
What is this amazing script?
You are also able to control the steering (unable to set straight afterwards due to setSteeringAngle not being implemented yet) so you can move the vehicle to the side of the road.
If you are an RP server then this is perfect for you!
With some wizard maths, the text and position is at the correct end of each car and is based on distance (This has taken over 6 hours to get right).
Configuration
I have already built in configuration to set whether you can allow it on locked vehicles, low health vehicles, whether the engine is off and certain vehicle classes.
These can all be configured in the config section of the file:
this.config = { AllowVehicleClass: [0, 1, 2, 3, 4, 5, 6, 9, 18], // These are the normal vehicles in the game classes - to disable it, set it to false MaxVehicleCubedSize: 25, // This is the vehicle length * width - as an idea an ambulance is 21 LockHandbrakeProtection: false, // If set - you can't push a locked vehicle (Theft prevention or ditching cars) EngineProtection: false, // If set - you can only push if the enginer is turned off VehicleHealthProtection: false, // Must be less than 1000 or false which de-activates checking vehicle health PushEventName: false, // Set this to send an event to your server with the relevant Vehicle and Player attached (ie 'pushing_car') LabelsDisplayed: true, // Show labels near the pushing positions when close enough DebugPositions: false, // View pushing positions as markers so they are more visible AllowVehicleSteering: true, // Allows the player to turn the wheels of the vehicle using A and D keys }
In Action
To see how it looks working just checkout:
https://streamable.com/ab2v5
Questions
Lastly if you have any questions feel free to give me a shout on discord (wdoyle2) or respond in the comment section.
This is currently not on github but more than happy to post it for any future pull requests.
1404 downloads
(9 reviews)0 comments
Updated
-
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"
687 downloads
(2 reviews)0 comments
Updated
