lation scripts
scriptsmembershipdocs
see the scripts
Skip to Content
lation ui
ThemingConfigurationChangelog

Developer API

Shared optionsNotificationsProgress barAlert dialogInput dialogContext menuList menuRadial menuText UITimelineDrawerMinigames
lation interact
lation banking
lation shops
lation jobs
lation weed
lation chop shop

classics

money laundering
drug sales
coke processing
meth crafting
metal detecting
scuba diving
lation ui

Shared options

The icon, icon animation, color, text formatting and position values that every lation ui component accepts, and how its exports are called.

Several options work the same way in every component. They're described once here and linked from each component page.

Every export on the component pages is a client export: call it as exports.lation_ui:name(...) from a client script. The exceptions are getServerTheme and setServerTheme, and notifications, which the server can send through an event.

The exports that wait for the player (alert, input, progressBar and the minigames) return only when the player is done, so call them from a thread, a command or an event handler, never from a loop that must keep running.

Icons

lation ui bundles the free Font Awesome 6 solid, regular and brands icons. Pass an icon as a class string:

icon = 'fas fa-wrench'   -- solid
icon = 'far fa-bell'     -- regular
icon = 'fab fa-discord'  -- brands
A context menu with an icon from each set: Solid with a wrench, fas fa-wrench; Regular with an outlined bell, far fa-bell; and Brands with the Discord logo, fab fa-discord
One icon from each set

The class string works everywhere. Most components also take a bare solid icon name such as 'wrench', but the alert dialog's icon needs the class string.

Context menus, list menus and the radial menu also take an image URL as an icon. Any value that contains ://, .png, .webp, .jpg, .jpeg, .gif or .svg is drawn as an image.

Icon animations

Fields named iconAnimation (and headerIconAnimation on context menus) take one of these Font Awesome animations:

ValueDoes
spinTurns clockwise
spinPulseTurns in eight steps
spinReverseTurns counter-clockwise
pulseTurns in steps, like spinPulse
beatGrows and shrinks
fadeFades in and out
beatFadeGrows and fades together
bounceBounces
shakeShakes

Colors

Per-call colors such as iconColor, progressColor or badgeColor take any CSS color string, for example '#EF4444' or 'rgb(239, 68, 68)'. Two exceptions:

  • Notification bgColor, txtColor and titleColor take six-digit hex (#RRGGBB) only. Anything else is ignored and the theme colors are used.
  • Text UI bgColor is drawn exactly as passed, so it ignores the theme's panel opacity.

When you don't pass a color, the component uses the theme. On a light theme such as Paper or Poster, the colors you pass are drawn 30% darker so they still read on a light panel; on a dark theme they're drawn exactly as passed. A notification or text UI with its own bgColor always keeps them as passed.

Text formatting

Most text fields take a small set of Markdown:

SyntaxResult
**bold**Bold
*italic*Italic
`code`Inline code
# Heading, ## Heading, ### HeadingA heading, when the line starts with it
![alt](https://...)An image, up to 200 px tall
\nA line break

These fields take it:

ComponentFields
Notificationstitle, message
Alert dialogheader, content, callout label and description
Context menutitle, subtitle, option title and description
List menutitle, subtitle, option label and description
Text UItitle, description, option label
Timelinetitle, description, task label and description
Drawertitle, subtitle, content, text sections, callouts, image captions

Progress bars, input dialogs, the radial menu and the minigames show text as written.

Positions

ComponentValuesDefaultConvar override
Notificationstop-left, top, top-right, center-left, center-right, bottom-left, bottom, bottom-righttop-rightlation:position:notify
Context menutop-left, top-right, offcenter-left, offcenter-righttop-rightlation:position:menu
List menutop-left, top-right, bottom-left, bottom-righttop-leftlation:position:listmenu
Text UItop-left, top-center, top-right, left-center, center, right-center, bottom-left, bottom-center, bottom-rightright-centerlation:position:textui
TimelineThe same nine as text UIright-centerNone
Drawerleft, right, bottomrightNone
A 1920 by 1080 screen with a text UI at each of its nine positions, each reading its value: top-left, top-center and top-right along the top, left-center, center and right-center across the middle, and bottom-left, bottom-center and bottom-right along the bottom
The nine text UI positions, which the timeline shares

The progress bar always sits at the bottom center of the screen, and alert and input dialogs in the middle.

A convar override replaces the position for every call to that component, whatever the script passes. Set it with setr; see convars.

Notifications also take top-center and bottom-center as older names for top and bottom. An unknown notification position, passed or set in the convar, falls back to top-right.

Still stuck? Ask in our Discord: the people who write the scripts answer.

Last updated November 10, 2026

Changelog

Every lation ui release, newest first, with what it added, changed and fixed.

Notifications

Show, update and style lation ui notifications from client or server scripts with the notify export and the lation_ui:notify event.

On this page

IconsIcon animationsColorsText formattingPositions
lation scripts

FiveM scripts for Qbox, QBCore and ESX servers, made to look and work like one product.

store

  • all scripts
  • membership
  • classics

help

  • docs
  • discord
  • email support

legal

  • terms
  • refunds
  • privacy
© 2026 Lation Labslationscripts.com
  • home
  • scripts
  • membership
  • docs