Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/09/21 in all areas

  1. Version 1.0.0

    132 downloads

    For more informations, please visit the tutorial thread! These are the files used in my tutorial, with the Flash Pro project and scaleform included, you can use these as a template and start making your own custom scaleforms. Requirements for client_packages folder: Better Clientside Commands by rootcause Rage V1.1+
    3 points
  2. Version 1.0.0

    547 downloads

    Overview This is a highly customizable and responsive interact menu script that does not require any CEF magic. All of the components of this menu come from mp.game.graphics. There is an example.js included in the repository files that set up a menu manager along with two menus that you can switch between. Installation Place the interact folder inside your client_packages folder. Paste the below code into your client_packages/index.js file. require('./interact/example'); Controls These can be easily customized through RAGE, but if you are trying the example, hold the B key while using your mouse to navigate and press left mouse button to confirm selection. API Usage Getting required classes const Menu = require('./interact/menu'); const MenuManager = require('./interact/manager'); Setting up a menu /** * @param {Number} [maxItems] Max amount of items that will show when the menu is open. * @param {Number} [itemScale] Size of each selectable item in the menu. * @param {Number} [wheelScale] Size of texture in the center of the menu. * @param {Number} [radius] Size of each selectable item in the menu. * @param {RGBA} [color] Default color for all items (unless altered for each individual item added) * @param {RGBA} [hoverColor] Default hover color for all items (unless altered for each individual item added) * @param {Array} [wheelTexture] [textureDict, textureName] of the menu's center. * @param {Array} [backgroundTexture] [textureDict, textureName] of the optional background for items. */ const sampleMenu = new Menu(maxItems, itemScale, wheelScale, radius, color, hoverColor, wheelTexture, backgroundTexture); Adding items to the menu /** * @param {String} name Item identifier. * @param {String} textureDict Item icon texture dictionary. * @param {String} textureName Item icon texture name. * @param {Boolean} [background] Whether the item should have the optional background (recommended for icons without backgrounds). * @param {Boolean} [closeMenu] Whether the menu should be closed on item select. * @param {RGBA} [color] Color for the item in the menu (default takes color from the menu). * @param {RGBA} [hoverColor] Hover color for the item in the menu (default takes hover color from the menu). * @param {Function} callback Callback to execute on item select. */ sampleMenu.add(name, textureDict, textureName, background, closeMenu, color, hoverColor, () => { mp.game.graphics.notify('Button 1'); }); Setting up the menu manager /** * @param {Menu} mainMenu The menu that opens when manager is displayed. */ const menuManager = new MenuManager(mainMenu); Using the menu manager /** * @param {Menu} menu The menu to switch to (use this in callback if you want complex menus). */ menuManager.switch(menu); /** * @param {Boolean} toggle Toggle menu visibility. */ menuManager.display(toggle); // Running this executes the callback associated with the selected item. menuManager.select(); // This must be placed in the clientside render event menuManager.render() Github Link
    2 points
  3. Version 0.1

    244 downloads

    V2 Menu to show and select between all bones avaliable (https://wiki.rage.mp/index.php?title=Bones) Camera focus on the bone you select. Added more keys to edit the object. Menu to edit or remove objects that were already placed. Object information save on *attachments.txt* on serverside. Keys /attach [object_name] · Command to start editing the object. TAB · Key to open the menu to edit objects placed. Enter · Key to finish the editing the current object. Cancel · Key to cancel the editing the current object. Space · Key to reset the pos and rot the current object. R · Key to change mode between pos and rot. L · Key to change the camera's fov. UP | DOWN · Edit pos/rot X the current object. LEFT | RIGHT · Edit pos/rot Y the current object PageUp | PageDown · Edit pos/rot Z the current object. Shift · Increase speed the editing. AltLeft + X · Reset pos/rot X the current object. AltLeft + Y · Reset pos/rot Y the current object. AltLeft + Z · Reset pos/rot Z the current object. Notes Also on GitHub: https://github.com/1PepeCortez/Attachments-editor
    1 point
  4. 1 point
  5. Hello, I'm hoping someone can help with this issue. I installed a few basic mods (higher res water + blood etc) and the single player game works perfectly fine. No errors or crashes. However, RageMP does not seem to work now and instead gives me an error upon startup that I have corrupt game data. My data isn't corrupt though as the game runs perfectly fine and all the mods work with no crashes. Please can someone explain what is going on? Thanks in advance!
    1 point
×
×
  • Create New...