Skip to content

Releases: Thymester/SimpleMenu

SimpleMenu 2.0

06 Nov 00:56
9ad3db0

Choose a tag to compare

Release Notes for SimpleMenu v1.1

Overview

This update refactors the SimpleMenu script for better organization, modularity, and maintainability. Code has been separated into logical directories, syntax errors have been fixed, and new features have been added. All changes ensure compatibility with FiveM while improving performance and usability.

New Features

  • Never Wanted Toggle: Added a new menu option in the Player Menu to toggle "Never Wanted" mode.

Structural Changes

  • Directory Organization:
    • Moved configuration lists (cars, weapons, peds, etc.) to config/config.lua.
    • Split menu logic into separate files under menus/ (admin.lua, emergency.lua, cars.lua, player.lua, civilian.lua, close.lua).
    • Created utils/utils.lua for shared utility functions (notify, giveWeapon, spawnCar, loadAnimDict, etc.).
  • Modular Loading: Updated __resource.lua to load files in the correct order via client_scripts, ensuring dependencies are resolved before execution.
  • Code Separation: Removed hardcoded lists and utility functions from the main SimpleMenu.lua, promoting separation of concerns.

Bug Fixes

  • Syntax Errors: Fixed multiple parsing errors in menu files, including incorrect else if statements (changed to elseif), missing end keywords, and unbalanced function closures.
  • Function Availability: Resolved "attempt to call a nil value" errors for functions like Admin, PlayerMenu, AddMenu_Civilian, and loadAnimDict by ensuring proper file loading and function definitions.
  • Load Order Issues: Adjusted the order of scripts in __resource.lua to prevent premature function calls.

Improvements

  • Maintainability: Easier to add/remove menu items or modify configurations without touching core logic.
  • Performance: Reduced script load times by organizing code into modules.
  • User Experience: Enhanced menu navigation with new toggles and animations, plus better error handling.

Known Issues

  • Ensure all dependencies (e.g., NativeUI) are properly installed in your FiveM server.
  • Test in a development environment before deploying to production.

Installation/Upgrade Notes

  • Replace existing SimpleMenu.lua and related files with the updated versions.
  • Restart your FiveM server/resource after applying changes.
  • No database migrations required.

For full code changes, refer to the updated files in the repository. If issues persist, check server console logs for additional errors.

Changes Since First Release [ver 0.0.1 -> 1.4]

27 Mar 03:06
968e83a

Choose a tag to compare

Latest Release:

  • Added Version Checker
  • UI Changes
  • Cleaner UI (SubMenus in SubMenus)

Past Releases:

  • Added Admin Menu
  • Cleaner UI (SubMenus in SubMenus)
  • Added Fast Swim
  • Added Fast Run
  • Moved God Mode to Admin Menu
  • Moved Invisibility to Admin Menu
  • Better UI
  • Added Highway Patrol Loadout Option
  • Added Highway Patrol Vehicle Spawn Option
  • Added Commit Suicide Option
  • Invisibility option is now Toggle On & Off via a single button
  • Godmode option is now Toggle On & Off via a single button
  • Added Ace Permissions
  • Mouse Optimization
  • Civilian Toolbox Menu (Handsup and Kneel Handup)
  • Give all Weapons option
  • Close Menu option
  • Loadouts
  • Remove Armour Option
  • Renamed Never Wanted to Remove Wanted
  • Various Car Controls added
  • Added Emergency Services SubMenu (State, EMT, Fire | State can be used for all LEO/Police Vehicles or if you know how to add new List Types you can do that | You may also message me to add more Emergency Services List Types | Must know Ace Permissions to do so)
  • Removed Ace Permissions from Ped Healing and Ped Get Armour
  • Added MORE Ace Permissions for Emergency Services SubMenu
  • Re-Added Mouse Support (Use old NativeUI Folder to keep no Mouse Support)
  • Cleaner UI
  • Added Seat Swapping
  • Added Ped Armour Set
  • Added Ped Heal
  • Added Giving Ped Armour
  • Added Healing Ped
  • Cleaner UI (Similar to last update but for Player Options)
  • Added Ped Changing [700 Peds to Choose From]
  • Added God Mode Toggle
  • Added Invisibility Toggle
  • Added Fix Vehicle
  • Added Clean Vehicle
  • Added Delete Vehicle
  • Added Teleportation to Waypoint (Either from the Menu or F10 on the Keyboard) [Its not able to be abused though, Vehicles do not TP with the Ped]
  • Added Options for Custom Peds & Custom Vehicle Spawning
  • Removed Mouse Support - [To Prevent random spinning due to mouse being on the border of the screen]
  • Added Never Wanted