131 files

  1. Simple Vehicle Performance Tuner

    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

    572 downloads

       (2 reviews)

    9 comments

    Updated

  2. CarShop Simple System

    HI all, here is a simple CarShop system, pretty optimized in client side, but not this much server-side.
     
    This CarShop adapt himself to what you give it, from the config file, let me explain:
    You define some parameters in the config file, for your carShop (Vehicles classses, marker position...), and the client side system with do the stuff.
    Here is a example of a carShop:
    "Boat": { // Shop Name "Position": { // vehicle position for the showcase, camera is auto defined from this "x": -729, "y": -1361, "z": 0.05, "rz": 136 }, "Marker": { // Marker for the player when entering shop "x": -815.93, "y": -1346.3, "z": 5.15 }, "Park": { // When you buy your vehicle, here is where you put vehicle location, it is random ! :D ANd a waypoint is created in client side to show where it is "0":{"x":-725.33,"y":-1325.299,"z":0.11,"rz":228.29}, "1":{"x":-727.42,"y":-1329.044,"z":0.11,"rz":230.54}, "2":{"x":-729.79,"y":-1333.469,"z":0.11,"rz":230.29}, "3":{"x":-731.4,"y":-1332.34,"z":0.11,"rz":228.29}, "4":{"x":-734.63,"y":-1334.34,"z":0.11,"rz":228.29}, "5":{"x":-738.73,"y":-1342.34,"z":0.11,"rz":228.29} }, "Blip": 427, // Blip for the map "Class": [ 14 ], // vehicle classes, see below for list "Name": "Boat Shop" // Displayed Name } So, aswell, when connect this will create a Marker / Blip on the marker position of the config file.
    And that's all for creating a car shop !
    Now, you can define prices easily aswell:
    In the vehicle_Shop.json file, you have the list of every vehicle which are available for selling. You have the hash, displayName, name, manufacturer & the price, define dby 15000 by default, but you can define a new price for every vehicle by yourself.
    That's all you have to do, now do /carShop [YouCarShopName], and see the magic happening.
     
    Here is the vehicles class name:
    Sedans SUVs Coupe Muscle Sport Classic Sport Super Moto Off-Road Industrial Utility Vans Cycles Boats Helicopters Planes Service Emergency Military Commercial Trains I think i gave you all the stuff to make it works, i hope you like it!
    By default you have 3 carshops, boat / low budget car/ helicopters.

    1322 downloads

       (1 review)

    9 comments

    Updated

  3. Map Editor

    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

    2752 downloads

       (29 reviews)

    7 comments

    Updated

  4. Character Creator

    Custom character creator resource, use /creator to access it.
    Installing
    Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it Add require('charcreator') to client_packages/index.js All done Notes
    There might be bugs here and there especially on clientside The code is pretty messy right now, will be improved in the future  
     

    3639 downloads

       (10 reviews)

    6 comments

    Updated

  5. Interactive Phone for CEF

    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

    1886 downloads

       (7 reviews)

    4 comments

    Submitted

  6. Vehicle F/G keys entering

    A ~20 lines client-side script to enable vehicle entering using F/G keys. Radius, max vehicle speed to enter and keys are customizable. This script doesn't search the nearest passenger seat, but the first empty (since it's just an example of how to do that at all and show that it really was customizable).

    1314 downloads

       (5 reviews)

    4 comments

    Updated

  7. Hunting

    I converted this system from a previous GTA Multiplayer Client. I never had time to update it or add new features so it comes as is.
    It adds animals that are fully synced to each client with different states such as:
    Fleeing Grazing Wandering There are two animals to start:
    Deer Boar + More can be easily added. It also includes a command that allows you to pickup an animal that is dead. (Mainly for RP servers)
     
    MAY REQUIRE SMALL TWEAKS TO WORK

    577 downloads

       (2 reviews)

    4 comments

    Updated

  8. Basic Vehicle System

    First Credits for @valdirdd for the Speedometer that i Edited....
    And a big thank for @CommanderDonkey
     
    for that fancy design of the speedometer.
    FEATURES : 
    Fuel System,
    Distance Calculation

    And a Notice to all that would use it... its a german version so... u must be change it if u want another type.

    INSTALL :
    Put the files in the served folders...
    add clientside in ur index.js
    require('basicVehSystem');


    to change to MPH use the following Tutorial...

    I Hope u enjoy the files... Bugs please send me...

    NOTICE:
    to change the gas mileage edit line 30 in ur index.js in packages/basicVehSystem/index.js
     
    let rest = (Veh_data*10); change the Multicator '10' to another value.... it calculate ur driven distance at the moment... with this multiplicator
     


     

    782 downloads

       (1 review)

    4 comments

    Updated

  9. Fingerpointing

    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.

    1016 downloads

       (5 reviews)

    4 comments

    Updated

  10. Local Voice Chat (C#)

    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.

    665 downloads

       (3 reviews)

    4 comments

    Submitted

  11. Simple Register / Login

    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

    743 downloads

       (1 review)

    4 comments

    Updated

  12. Clothing Shops

    This script lets you create your own clothing shop(s) with JSON files.
     
    Installing
    Put the files you downloaded in their respective places Download & install NativeUI if you haven't yet, this script needs it (Only if you're going to have paid items) Download & install Currency API then define a currency named cash. Add require('clothing-shops') to client_packages/index.js Set up some clothing shops (read below) All done  
    Setting Up Shops
    Shop data is loaded from packages/clothing-shops/shops, any JSON file there will be treated as a clothing shop. Shop file structure:
    { // OPTIONAL, this object will be the menu banner sprite on clientside. Search for "shopui_title_" on https://wiki.rage.mp/index.php?title=Textures "bannerSprite": { "library": "shopui_title_highendfashion", "texture": "shopui_title_highendfashion" }, // REQUIRED, this array contains the shop coordinates "shops": [ { "x": 123.4, "y": 456.7, "z": 8.9 }, { "x": 10.0, "y": 20.0, "z": 30.0 } ], // REQUIRED, this object contains item data for freemode male model "male": { // REQUIRED, this object contains all clothing item data "clothes": { // REQUIRED, this array contains item data for a component slot (https://wiki.rage.mp/index.php?title=Clothes - we're using 11 - tops here) "11": [ // REQUIRED, item object(s) for component slot 11 { "name": "Blue Burger Shot Hockey Shirt", "drawable": 282, "texture": 0 }, // This item will need the player to have some money (handled with Currency API) { "name": "Blue Cluckin' Bell Hockey Shirt", "drawable": 282, "texture": 4, "price": 500 } ] }, // REQUIRED, this property contains all prop item data (we're not gonna add any props to freemode male here, so it's just an empty object) "props": {} }, // REQUIRED, this object contains item data for freemode female model "female": { // This time we're not adding any clothes "clothes": {}, // But we're adding props "props": { // Same as above, prop slot as key (we're using 7 - bracelets) "7": [ // Prop items are defined just like clothing items { "name": "Gold Snake Cuff", "drawable": 0, "texture": 0, "price": 200 }, { "name": "Light Wrist Chain (R)", "drawable": 7, "texture": 0 }, { "name": "Spiked Gauntlet (R)", "drawable": 13, "texture": 0, "price": 85 } ] } } } If this wasn't any clear, there is a file named ExampleShopFile.json inside packages/clothing-shops/. (it's the file used in the preview video, put it to shops folder if you want to load it)
    I'd also recommend you to check out my "Clothing Names" resource for valid names.
    Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-clothing-shops

    492 downloads

       (6 reviews)

    4 comments

    Updated

  13. Basic Vehicle Sync

    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

    1724 downloads

       (3 reviews)

    3 comments

    Updated

  14. Animation Viewer

    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:
     

    703 downloads

       (3 reviews)

    3 comments

    Updated

  15. Better Notifications

    Now with 200% more color.
    Clientside Functions:
    mp.game.ui.notifications.show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) mp.game.ui.notifications.showWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Serverside Functions:
    player.notify(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) player.notifyWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) As Events:
    BN_Show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) BN_ShowWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200]) Example:
    // Clientside mp.game.ui.notifications.show("Normal message with custom text and background color.", false, 15, 20); mp.game.ui.notifications.showWithPicture("New Message", "Facebook", "You got some more of that data?", "CHAR_FACEBOOK", 1, false, 0, 139); // Serverside player.notify("This message is red which means you're doing something wrong.", false, 6); player.notifyWithPicture("Title", "Ammu-Nation", "Ammunation has all the equipment you need to protect your family from the evils of a liberal society! Fixed, mounted, and shoulder-held submachine guns. Mortars! Surface-to-air and all manner of heat-seeking missiles!", "CHAR_AMMUNATION"); Icons:
    You can specify an icon ID for picture notifications, here's a list of them:
    0, 4, 5, 6 = No Icon 1 = Speech Bubble 2 = Message 3 = Friend Request 7 = Arrow 8 = RP 9 = Money Notes:
    textColor and bgColor parameters want a HUD color ID which you can find here. (it is a bit outdated now though) You can find notification pictures here. If you can't see picture notifications, you must enable Phone Alerts from Settings > Notifications > Phone Alerts. This script changes player.notify on serverside.

    853 downloads

       (5 reviews)

    3 comments

    Updated

  16. Easy Blip Creator

    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

    870 downloads

       (2 reviews)

    3 comments

    Submitted

  17. Crouch

    Lets you crouch by pressing CTRL.
     
    Installing
    Put the files you downloaded in their respective places Add require('crouch') to client_packages/index.js All done  
    Notes
    Since both this script and walking styles script uses setMovementClipset and resetMovementClipset, they probably won't work at the same time. Crouching is synced between players.

    808 downloads

       (3 reviews)

    3 comments

    Updated

  18. G button for Passenger

    Improved version of already existing passenger script posted by George.
    * Upon pressing G button this script searches for the first closest and free seat in the vehicle. If it finds one it makes player to enter into the seat.

    641 downloads

       (0 reviews)

    3 comments

    Updated

  19. Map Editor 2 [BETA][Fixed Markers]

    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)

    666 downloads

       (16 reviews)

    3 comments

    Updated

  20. Smooth Throttle Script

    This resource will stop your vehicle from constantly skidding when acceleration. It will also stop you from reversing when you're braking. You will come to a complete stop and then you have to press reverse again to actually reverse. Automatic brake lights are included.
    Note that you can hold your handbrake (space bar) down and accelerate and this will temporarily remove the throttle limiter.

    443 downloads

       (3 reviews)

    2 comments

    Updated

  21. Vehicle Manager

    Vehicle Manager is a easy to use device to manage your vehicle easily. Control your doors, lights, Auto-seat belts, engine, and much more with one click.
    Usage:
    Press B to open/close the Manager. Click any button you want to control the vehicle.  

    1125 downloads

       (2 reviews)

    2 comments

    Submitted

  22. Console

    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.

    820 downloads

       (6 reviews)

    2 comments

    Updated

  23. MoneyAPI

    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)

    1531 downloads

       (8 reviews)

    2 comments

    Updated

  24. Walking Styles

    This resource lets players choose their walking style. Selected walking style is synced to other players.
    Installing
    Put the files you downloaded in their respective places Download & install BasicMenu or NativeUI if you haven't yet, this script needs it Add require('walkingstyles') to client_packages/index.js All done Controls
    F5 Key - Show/hide walking style menu.
    Adding/Removing Walking Styles
    You can add/remove walking styles by changing walkingStyles array inside packages/walkingstyles/index.js, make sure your AnimSet is valid!

    785 downloads

       (4 reviews)

    2 comments

    Updated

  25. 2D Text Edtior

    This script will allow you to quickly and easily work with 2D text in the game.
    Contributions:
    rootcause
    Captien
    micaww
     
    In 1.0.5 update Scale-X and Outline of 2D text doesn't work and idk where's problem, because i can't fix it...

    244 downloads

       (3 reviews)

    2 comments

    Updated