Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

New Leaf HUD for FiveM

By Luke

New Leaf-Inspired HUD for FiveM
On this page

The matching public source for this New Leaf-inspired HUD is livened/NewLeafHUD. Its resource directory is cyvixHUD and the manifest names Cyvix as author. The README lists a player HUD (health, armor, hunger, thirst, stamina), a vehicle HUD (speed, gear, street name, fuel, lights, seatbelt), a direction compass and a radar that only shows while you are in a vehicle.

Requirements

The manifest loads @ox_lib/init.lua, and the vehicle HUD is driven by lib.onCache('vehicle'), so ox_lib has to start first. Hunger and thirst are read through the esx_status:getStatus event, and the HUD starts on esx:playerLoaded. As published it is an ESX resource and does not run on QBCore out of the box: without ESX the start event never fires and the status values stay at 0 unless you rewrite the GetStatus function and the start trigger in client/hud.lua. If you need a HUD for another framework without that rewrite, compare other FiveM HUD resources first. The repository has no licence file; the last code changes, described as temporary minimap fixes, are from 28 June 2025.

Install

  1. Copy the cyvixHUD folder from the repository into the resources directory of a test server.
  2. Start it after its dependencies: ensure ox_lib, ensure es_extended and ensure esx_status, then ensure cyvixHUD.
  3. Join and check that the HUD appears about one second after the character loads. /huddebug runs the same start routine by hand.

Configuration

There is no config file; the settings are in the code. The seatbelt is the toggleseatbelt command, mapped to B through RegisterKeyMapping, so players can rebind it in the FiveM key bindings. Speed is converted to mph (currentSpeed * 2.23694). Fuel comes from the native GetVehicleFuelLevel, so compare it with your fuel script. The minimap position and the round mask are set in client/hud.lua and stream/circlemap.ytd. The README mentions exports for other resources, but the client files contain no export declarations.

What to check before going live

  • /hidehud and /showhud work, and the HUD hides in the pause menu.
  • Hunger and thirst change when a player eats and drinks.
  • Entering and leaving a vehicle switches the radar and vehicle HUD; speed, gear, street name and lights update.
  • The seatbelt key changes windscreen ejection in a crash test.
  • The minimap looks right at your players' aspect ratios.
  • The F8 and server consoles show no missing dependencies, ox_lib or minimap errors. The manifest lists a data/* folder that is not in the repository.

Sources

Original source

  • PC-INFOHUD for FiveM

    PC-INFOHUD for FiveM

    PC-INFOHUD is Procastinator’s information HUD for QBCore, with ESX support since June 2025. Install name, CSS layout variables and the checks to run before going live.

  • View Twitch Chat In Game for FiveM

    View Twitch Chat In Game for FiveM

    ApolloStudios-TwitchIntegration provides an in-game browser interface for Twitch integration. In its client code, the twitch command gives the interface mouse and keyboard focus and sends ShowEverything. The stopUIControl callback releases focus. Those paths are the starting point for checking how players open and close the interface.