Skip to content

DepthUI – Holographic UI for FiveM

Features

Installation

  1. Download this repository as a ZIP.
  2. Extract the DepthUI folder into your server’s resources directory.
  3. Add ensure DepthUI to your server.cfg (or equivalent) and restart the server.

Configuration

All visual parameters are managed in config.js. Example:

const Config = {
  backgroundColor: 'rgba(0, 0, 0, 0.7)',
  borderColor: '#00e5ff',
  titleSize: '1.5rem',
  lineHeight: '1.25',
  padding: '0.75rem',
  width: '300px',
  fadeInDuration: 300,
  fadeOutDuration: 300
};

Define your hologram zones in client.lua:

zones = {
  {
    coord = vector3(200.0, -1000.0, 30.0),
    range = 5.0,
    textLines = {
      'Welcome to the tutorial area',
      'Press E to interact',
      'Follow the markers on your HUD'
    }
  }
};

Usage

RegisterNetEvent('depthui:toggleZone', (data) => {
  SendNUIMessage({
    action: data.show ? 'show' : 'hide',
    content: data.textLines
  });
});

Use Cases

License

This project is released under the MIT License. Feel free to modify and redistribute.

Credits

Developed and maintained by the DepthUI team. Contributions welcome on GitHub.