[ESX/QB] 3D HUD

[ESX/QB] 3D HUD

$12.99

Add to Basket

PREVIEW | 3D HUD

FEATURES:

  • Framework Compatibility:
    • ESX Framework: The script is compatible with the ESX framework and fetches player status (health, armor, hunger, and thirst) using ESX events.
    • QB Framework: The script is also compatible with the QB framework and fetches player status (health, armor, hunger, and thirst) using QB events and metadata.

  • HUD Visibility Toggle:

    • Command: Players can toggle the visibility of the HUD using the `/togglehud` command.
    • Key Binding: The HUD visibility can also be toggled using a key binding (default is TAB).

  • Player Status Display:

    • Health: Displays the player's current health.
    • Armor: Displays the player's current armor level.
    • Hunger: Displays the player's current hunger level.
    • Thirst: Displays the player's current thirst level.

  • Vehicle Status Display:

    • Speed: Displays the current speed of the vehicle the player is in (in km/h).
    • Fuel Level: Displays the current fuel level of the vehicle.

  • Dynamic HUD Positioning:

    • On Foot: When the player is on foot, the HUD is displayed in front of the player.
    • In Vehicle: When the player is in a vehicle, the player status HUD is moved to the left to avoid overlapping with the vehicle status HUD.

  • Optimized Performance:

    • Reduced Frequency of Status Checks: Player status is updated every second instead of every frame.
    • Reduced Frequency of HUD Updates: The HUD is updated every x milliseconds instead of every frame.
    • Local Variables: Frequently accessed data is stored in local variables to reduce global lookups.
    • Conditional Calculations: HUD positions are calculated only when necessary.