RE:CORD
REC_Library

Exports

Arguments, return values and execution sides for REC_Library exports.
Added
Updated

Client side

showTextUI

Shows text with optional display settings.

ArgumentType
textstring
options?REC_Library.Lib.TextUI.Options
exports.REC_Library:showTextUI(text, options)

hideTextUI

Hides the text UI.

Takes no arguments.

exports.REC_Library:hideTextUI()

isTextUIOpen

Returns whether text is visible and the displayed text.

Takes no arguments.

Returns: boolean isOpen, string|nil text.

exports.REC_Library:isTextUIOpen()

alertDialog

Opens a confirmation dialog and waits for confirm or cancel.

ArgumentType
dataREC_Library.Lib.Alert.Data

Returns: "confirm" | "cancel".

exports.REC_Library:alertDialog(data)

closeAlertDialog

Closes the active confirmation dialog.

Takes no arguments.

exports.REC_Library:closeAlertDialog()

showGauge

Shows a gauge; the same ID replaces the existing gauge.

ArgumentType
dataREC_Library.Lib.Gauge.Data

Returns: string id.

exports.REC_Library:showGauge(data)

updateGauge

Updates a gauge’s value or display settings. A number is treated as its value.

ArgumentType
idstring
patchREC_Library.Lib.Gauge.Patch | number a number is taken as the value

Returns: boolean.

exports.REC_Library:updateGauge(id, patch)

hideGauge

Hides the specified gauge, or all gauges when no ID is supplied.

ArgumentType
id?string

Returns: boolean.

exports.REC_Library:hideGauge(id)

isGaugeOpen

Checks whether the specified gauge, or any gauge, is visible and returns the visible IDs.

ArgumentType
id?string

Returns: boolean isOpen, string[] ids.

exports.REC_Library:isGaugeOpen(id)

registerContext

Registers one or more context menus.

ArgumentType
contextREC_Library.Lib.Context.Menu | REC_Library.Lib.Context.Menu[]
exports.REC_Library:registerContext(context)

showContext

Opens a registered context menu by ID.

ArgumentType
idstring
exports.REC_Library:showContext(id)

hideContext

Closes the context menu; onExit controls whether its exit callback runs.

ArgumentType
onExit?boolean run the menu's onExit
exports.REC_Library:hideContext(onExit)

getOpenContextMenu

Returns the open context menu ID, or nil.

Takes no arguments.

Returns: string|nil.

exports.REC_Library:getOpenContextMenu()

inputDialog

Opens an input form and waits for submitted values; cancellation returns nil.

ArgumentType
headingstring
rows(string | REC_Library.Lib.Input.Row)[]
options?REC_Library.Lib.Input.Options

Returns: any[]|nil.

exports.REC_Library:inputDialog(heading, rows, options)

closeInputDialog

Closes the input dialog.

Takes no arguments.

exports.REC_Library:closeInputDialog()

progressBar

Displays a progress bar and waits; returns whether it completed.

ArgumentType
dataREC_Library.Lib.Progress.Data

Returns: boolean.

exports.REC_Library:progressBar(data)

progressCircle

Displays circular progress and waits; returns whether it completed.

ArgumentType
dataREC_Library.Lib.Progress.Data

Returns: boolean.

exports.REC_Library:progressCircle(data)

progressActive

Checks whether progress is active.

Takes no arguments.

Returns: boolean.

exports.REC_Library:progressActive()

cancelProgress

Cancels active progress.

Takes no arguments.

exports.REC_Library:cancelProgress()

getTheme

Returns the configured NUI theme.

Takes no arguments.

Returns: REC_Library.Client.UI.Nui.Theme.

exports.REC_Library:getTheme()

setClipboard

Copies text to the clipboard through NUI.

ArgumentType
textstring
exports.REC_Library:setClipboard(text)

showSubtitle

Shows a subtitle, replacing the current subtitle.

ArgumentType
dataREC_Library.Lib.Subtitle.Data

Returns: string|nil id.

exports.REC_Library:showSubtitle(data)

hideSubtitle

Hides the subtitle. An ID restricts dismissal to that subtitle.

ArgumentType
id?string

Returns: boolean.

exports.REC_Library:hideSubtitle(id)

isSubtitleOpen

Returns subtitle visibility and its ID.

Takes no arguments.

Returns: boolean isOpen, string|nil id.

exports.REC_Library:isSubtitleOpen()

showHelpText

Shows a control hint, replacing the current hint.

ArgumentType
dataREC_Library.Lib.HelpText.Data

Returns: string|nil id.

exports.REC_Library:showHelpText(data)

hideHelpText

Hides the control hint. An ID restricts dismissal to that hint.

ArgumentType
id?string

Returns: boolean.

exports.REC_Library:hideHelpText(id)

isHelpTextOpen

Returns control-hint visibility and its ID.

Takes no arguments.

Returns: boolean isOpen, string|nil id.

exports.REC_Library:isHelpTextOpen()

registerMenu

Register or replace a menu configuration/builder.

ArgumentsReturns
config: REC_Library.Client.Class.UI.MenuConfigBuilderboolean

showMenu

Open a menu registered by this resource.

ArgumentsReturns
id: stringboolean

hideMenu

Close this resource’s active menu.

ArgumentsReturns
—boolean

getOpenMenu

Return this resource’s active menu ID.

ArgumentsReturns
—string|nil

unregisterMenu

Remove a menu, closing it if active.

ArgumentsReturns
id: stringboolean

getMenuValue

Return an item’s current value.

ArgumentsReturns
id: string, itemId: stringboolean|number|string|nil

updateMenuItem

Patch an item. Its ID cannot change.

ArgumentsReturns
id: string, itemId: string, patch: tableboolean
©2026 RE:CORD Development Group. All rights reserved.