Open-source FiveM scripts, MLOs, vehicles & server packs for ESX, QBCore & Qbox. Browse Shop →
All Shop
CodeM TextUI — Stylish Text UI Notifications

Description

CodeM TextUI is a standalone FiveM text UI by CodeM. It shows an interaction prompt with your message and a key letter, in one of ten visual themes, and you show and hide it from any client script with two exports.

Features

  • Ten visual themes, thema-1 to thema-10; thema-1 is used when no theme is passed
  • Message text and key letter are set per call
  • Exports OpenTextUI and CloseTextUI show and hide the prompt
  • Client events codem-textui:ShowTextUI and codem-textui:CloseTextUI do the same
  • Plays a notification sound when a prompt appears
  • Shows one prompt at a time; a prompt is not shown again while one is open
  • client/example.lua contains a commented-out sample that places ten prompts with markers

Usage

exports['codem-textui']:OpenTextUI('Open Door', 'E', 'thema-1')
exports['codem-textui']:CloseTextUI()

Requirements

  • No framework and no other resources needed (Lua 5.4)
  • Players need internet access: the UI loads some of its libraries from public CDNs

Installation

  1. Copy the folder codem-textui into your resources directory. The archive contains the resource twice (codem-textui/ and codem-textui/codem-textui/), so keep only one copy, with fxmanifest.lua directly inside it.
  2. Add ensure codem-textui to your server.cfg.
  3. Call the exports from your own client scripts.

Related resources

All resources →