Page cover

πŸ’ΎX_HUD_HelpNotify

🌟 Overview

X_HUD_HelpNotification provides a modern, clean UI for displaying help notifications with a glass effect. It’s designed to be context-aware, meaning notifications will automatically disappear when the context is lost. This makes it ideal for proximity-based interactions, roleplay scenarios, and guiding players through specific actions.


✨ Features

  • Modern UI: Clean design with glass effect, animations, and customizable styling.

  • Context-Aware: Notifications disappear when context is lost, ensuring they only appear when relevant.

  • Position Flexibility: 9 position presets for flexible placement on the screen.

  • Developer-Friendly: Simple export and event system for easy integration.

  • Performance Optimized: Minimal resource usage ensures smooth performance.

  • Test Point: Built-in test point for quick setup verification.


πŸ› οΈ Installation

  1. Download the Script:

  2. Extract the Folder:

    • Extract the downloaded folder to your FiveM resources directory.

  3. Update server.cfg:

    • Add ensure X_HUD_HelpNotification to your server.cfg file.

  4. Restart Your Server:

    • Restart your server to load the new resource.


πŸ“– Usage

Basic Usage

The notification system requires continuous triggering to remain visible. This makes it perfect for proximity-based notifications or hints that should only appear in specific contexts.Important: This script MUST be triggered in a loop with a wait time of 0 to display properly. It’s designed to be refreshed every frame.

Example Code

Exports

Events


βš™οΈ Configuration

Server-Side Configuration (config.lua)

UI Configuration (html/config.js)


🎨 UI Customization

Notification Position

You can customize the position of the notification using the DefaultPosition setting in html/config.js. Available options include:

  • top-left

  • top-middle

  • top-right

  • middle-left

  • center

  • middle-right

  • bottom-left

  • bottom-middle

  • bottom-right

Colors and Effects

Adjust the appearance of the notification by modifying the following settings in html/config.js:

  • BackgroundColor: Background color with opacity (RGBA format)

  • TextColor: Text color (RGBA format)

  • ButtonColor: Button color with transparency (RGBA format)

  • GlowEffect: Enable or disable the glow effect

  • GlowColor: Color of the glow effect (RGBA format)

Glass Effect

The glass effect can be customized using:

  • GlassEffect: Enable or disable the glass effect

  • GlassBlur: Strength of the blur effect

  • GlassOpacity: Opacity of the glass effect


πŸ”„ Troubleshooting

Common Issues

  • Notification Not Appearing:

    • Ensure the script is properly loaded and enabled in server.cfg.

    • Check for typos in the export or event names.

    • Verify that the script is being triggered in a loop with Citizen.Wait(0).

  • Styling Issues:

    • Ensure the html/config.js file is correctly configured.

    • Check for browser console errors in the FiveM debug menu.

  • Test Point Not Working:

    • Ensure Config.EnableTestPoint is set to true in config.lua.

    • Verify that the test point coordinates are correct.


πŸ“₯ Download & Support

Last updated