❤️HUD

Crosshair Customization

Repositioning Elements

Pause Menu & Waypoint Color

triangle-exclamation
circle-exclamation

Text Prompt

circle-exclamation
  • data (table): The configuration for the text prompt.

    • text (string, required): The text to display in the prompt.

    • position (string, optional): The position of the prompt on the screen. Default: 'bottom-center'.

      • Accepted values:

        • 'right-center'

        • 'left-center'

        • 'top-center'

        • 'bottom-center'

Example Usages:

circle-info

For the Key to be displayed it needs to be encased in [ ]

Eg. [F1] , [E], [G] etc. all of these would be positioned in the key component


Notifications

  • data (table): The notification configuration.

    • title (string, optional): The title of the notification. Default: 'Notification'.

    • description (string, optional): The description or body of the notification. Default: 'No description provided.'.

    • type (string, optional): Type of the notification. Determines the color and style. Default: 'info'.

      • Accepted values:

        • 'info': Informational messages.

        • 'success': Positive feedback messages.

        • 'error': Error messages.

        • 'warning': Warning or cautionary messages.

    • length (number, optional): Duration of the notification in milliseconds. Default: 5000.

    • icon (string, optional): FontAwesome icon to display with the notification. Default: 'fa-solid fa-info-circle'

Example Usages:

Code to replace to have in qb-core to use my notifications default (Optional)

Code to replace to have in qbx-core to use my notifications default (Optional)

Code to replace to have in ox_lib to use my notifications default (Optional)


Progress Bar

  • data: A table containing the following keys:

    • duration (optional, default: 5000): The duration of the progress bar in milliseconds.

    • label (optional): The label that appears on the progress bar (e.g., "Crafting", "Loading").

    • anim (optional): An animation configuration.

      • dict (required): The animation dictionary name.

      • clip (required): The animation clip name.

      • blendIn (optional): The blend-in time (default is 3.0).

      • blendOut (optional): The blend-out time (default is 1.0).

      • duration (optional): The animation duration (default is -1 for infinite).

      • flag (optional): Animation flag (default is 49).

      • lockX, lockY, lockZ (optional): Whether to lock certain axes (default: false).

    • prop (optional): A table containing prop information.

      • model (required): The model name of the prop.

      • bone (required): The bone index to attach the prop to.

      • pos (required): The position offset from the ped (e.g., {x=0, y=0, z=0}).

      • rot (required): The rotation of the prop (e.g., {xRot=0, yRot=0, zRot=0}).

    • disable (optional): A table specifying which controls to disable during the progress bar.

      • car: If true, disables car controls (e.g., driving).

      • move: If true, disables movement controls (e.g., walking).

      • mouse: If true, disables mouse controls (e.g., aiming).

      • combat: If true, disables combat-related controls (e.g., shooting).

      • sprint: If true, disables sprinting.

Example Usages:

Code to replace to have in ox_lib to use my progress bar using default ox lib exports (Optional)

Code to replace to have in qb-core to use my progress bar using default qbcore trigger (Optional)

Other HUD Exports

Last updated