Search the Community
Showing results for tags 'Menu'.
-
Version 1.0.0
834 downloads
This is a vehicle spawner menu made entirely under Scaleform, the native GUI for GTA V, based on Flash, which makes up nearly all of the displays used in the game. This menu works similar to vehicle websites in GTA Online, like Legendary Motorsport, note that this is not a modification of an existing Scaleform but a brand new custom one made entirely from scratch 👌! I made this mostly as an exercise to mimic the games' UI functionalities by using Rockstar's own tools (and also showcase to you guys, other alternatives to opening web browsers in your game), however this is just one of the many examples that can be used with Scaleform, so I'm plaining in making more experiments with it. This Scaleform features: Updated vehicle list. Built-in cursor with supported mouse inputs and scroll. Multiple pages. Selectable buttons. Improved Scaleform code to handle return variables. Image import from .ytd files. Requirement but optional : Better Clientside Commands by rootcause to call the menu on client-side but you can replace the call by a server-side command or a button prompt. Github Repository, with the Scaleform source code included. So you can try your hands on Scaleform, it's not as hard as it looks like, trust me! Vehicle images taken from the Rage MP Wiki and the GTA Wiki. [Obligatory Certified Halal logo here] -
-
Version 1.0.0
512 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- 3 reviews
-
- 4
-
- custom
- custommenu
-
(and 8 more)
Tagged with:
-
Version 1.0.0
670 downloads
Improvements over the previous nativeui: Added `UIMenuDynamicListItem`. Descriptions are no longer cut off at 99 characters, but now support 99 * 3. `UIMenuListItem` and `UIMenuSliderItem` can now store extra data. Improved description line wrapping. Description caption is now only updated when necessary. Description background is now only updated (recalculated) when necessary. Bettered the position of the left arrow for list items. Added new badges (Sale, Arrows and Voice Icons). Added `Menu.RemoveItem(item: UIMenuItem)`. When binding an item to a menu, automatically add that item if it isn't in the menu items list already. Added `MenuOpen` event when `menu.Visible` is changed. When hovering over the currently selected ListItem's title text, the cursor will be MiddleFinger, just like in the original menus. `GoLeft` and `GoRight` now correctly handles disabled items. Added experimental automated menu pool system (It's a bit effy right now). MENUS ARE NO LONGER SHOWN BY DEFAULT. Added `closeChildren: boolean = false` parameter to `menu.Close()`. An optional parameter specifiing whether or not you want to close all children with the menu. NOTE BRIEFLY: The description and optimization updates for me saved over 20-30 FPS while a menu is open. You might want to be careful with menu pools right now. I haven't went deep into it but for simple menu pools it works GREAT. `MenuClose` event is NOT emitted when Visible is set to false. This is to allow users to reopen menus at it's same state, for e.g searching through a store. The GitHub will not match the file here. So please download the file from GitHub (dist/index.ts) or compile it yourself. https://github.com/karscopsandrobbers/RAGEMP-NativeUI -
Version 1.0
999 downloads
🔶 Custom Pause Menu 🔶 Using the game file pausemenu.xml to remove unnecessary/faulty items from the pause menu (esc) in RAGE Multiplayer. Also fixed the radio volume control 😁 What was changed 🛠 Remote location 🗑 History, statistics, game, network, friends, gallery, store, rockstar editor Deleted sub-items 🗑 Voice chat, notifications, rockstar editor, save and launch Deleted options 🗑 ❌ (TODO) Key assignment -> everything related to GTA Online Audio -> everything related to GTA Online & Self Radio Video -> Subs Added items 🛠 Video -> Language Fixed options 🛠 Audio -> Music volume Audio -> Radiostation Requirements ⚙️ RAGE Multiplayer server version 1.1+ Installation 💾 Copy the client_packages folder to the server folder Good guy's ❤️ hromik for the help Despair for playing World Of Tanks README 📒 README (RU) LICENSES 📝 MIT License GITHUB 📰 CLICK ME, BOY! -
Version 1.0.0
396 downloads
Need some dialog menus with 2 buttons, for example to show user your server's rules and 2 buttons, "accept" and "not accept"? DialogUI can help you with that! Example of using: const dialogUILib = require('dialogui'); // Load the library var dialog = new dialogUILib.DialogUI("My Title", ["Line number 1", "Line number 2","Line number 3"], "Left Button", "Right Button"); // Make a new instance of dialogUI. dialog.show(); // Show the dialog Your players use enter and escape keys? DialogUI support them. You can know which button is pressed by using the OnDialogResponse client-side event, which have 1 parameter of type Boolean, which indicate if the left button pressed. -
Version 1.0.0
1023 downloads
n0minal's Interior Browser Hello Dear Ragers, Today I bring you guys a simple - but useful - browser for interiors to preview. I spent something like ~2 hours to make it, so it might contain bugs, if you find a bug please post it in here or contact me by PM and I'll fix it as soon as possible. Commands ⌨️ There are two commands (and binds for it): /interior (or shortened: /i): Loads the Interior Browser menu, in which you can interact and select an interior to preview. /leave (or shortened: /l): Leaves the current interior and gets teleported back to your first position when you called the browser for the first time. The Script 📰 Download the .zip file and extract it inside your client-packages folder, after that, create (or edit) a index.js file in your client_packages root folder with the following content: //requires interior-browser package require("interior-browser"); and you're ready to go! Github Link: https://github.com/n0minal/interior-browser That's all, See you on the next release! -
Hey im new with RageMP i was developping on FiveM before and i make an admin menu and so.. i have a question There is a way with NativeUI to do something like if UIMenuItem is Pressed then execute Function if yes how can i do because every ways i saw with nativeui was only in Boolean.....
-
Чтобы открыть меню в сервере на котором я играю нужно нажать на кнопку F2. У меня F2 отвечает за понижение звука и из-за этого я не могу полноценно играть. Пожалуйста, подскажите что мне делать? --------------------------------------------------------------------------------------------------- To open the menu in the server on which I'm playing, I need to press the F2 button. I have F2 responsible for lowering the sound and because of this I can not fully play. Please, tell me what to do?