Skip to Content

Client exports

Notification

Notify

Also Notificar.

---@param type string -- "success", "warning", "error"... (see Configuration) ---@param text string ---@param time? number -- ms (default: Config.notificacao.tempoPadrao) ---@param title? string exports.gui_interface:Notify("success", "You received $500", 5000) exports.gui_interface:Notify("warning", "Low fuel", nil, "Gas station")

Items

Item

---@param action string -- "+" received, "-" lost (or "Recebeu", "Usou"...) ---@param item string -- item image name ---@param amount? number ---@param name? string -- name shown on screen exports.gui_interface:Item("+", "water", 2) exports.gui_interface:Item("-", "bread", 1)

Progress

Progress

Also Progresso. Bar only. Does not wait or lock.

---@param ms number ---@param text? string exports.gui_interface:Progress(5000, "Eating")

ProgressAction

Also ProgressoAcao. Waits, locks controls, animation and prop. Options in Progress with actions.

---@param options table -- same format as lib.progressBar ---@return boolean -- true finished, false cancelled local ok = exports.gui_interface:ProgressAction({ duration = 5000, label = "Repairing", canCancel = true })

ProgressActive

Also ProgressoAtivo.

---@return boolean local running = exports.gui_interface:ProgressActive()

StopProgress

Also PararProgresso.

exports.gui_interface:StopProgress()

Skill check

SkillCheck

Also Habilidade.

---@param rounds number -- 1 to 10 ---@param difficulty string -- "facil" (easy), "normal" or "dificil" (hard) ---@return boolean local passed = exports.gui_interface:SkillCheck(3, "normal")

Bridges

Used by the lines in Bridges. Do not call them directly in your scripts.

ExportFor
EsxNotify(notifyType, length, message, title)ESX.ShowNotification
EsxProgress(message, length, options)ESX.Progressbar
QBNotify(text, texttype, length)QBCore.Functions.Notify
QBProgress(action, onFinish, onStart, onTick)the progressbar resource
OxNotify(data)lib.notify
OxProgress(data)lib.progressBar and lib.progressCircle