Infinity Store
Tebex StoreDiscord
  • CFX Auth
  • Resources
    • Scoreboard
      • Installation
      • Configuration
      • Robbery Integration
      • Exports
    • Squad system
      • Installation
      • Configuration
      • Exports
    • Notification
      • Installation
      • Configuration
      • Exports
    • Dashboard V2
      • Installation
      • Configuration
      • Webhooks
      • Exports
    • Job choice
      • Installation
      • Configuration
      • Exports
    • Pausemenu
      • Installation
      • Configuration
      • Exports
    • Playtime Shop
      • Installation
      • Configuration
      • Client events
      • SQL
      • Exports
    • Identity
      • Installation
      • Configuration
      • Exports
    • Keyguide
      • Installation
      • Configuration
      • Exports
    • HUD + UI LIB
      • Installation
      • Configuration
      • Customization
      • Exports
  • Military resources
    • Mortar
      • Installiation
      • Configuration
      • Exports
    • Bomb drone
      • Installiation
      • Configuration
      • Exports
    • Claymore
      • Installiation
      • Configuration
      • Exports
Powered by GitBook
On this page

Was this helpful?

  1. Resources
  2. HUD + UI LIB

Exports

Notification exports

Client side exports:

Notify

Types:

  • success

  • error

  • warning

  • announcement

  • server

notifyExample = {
    type = "success",
    message = '<div><span class="text-primary font-[700]">Welcome back</span> in the city!</div>',
    duration = 3000,
}

exports['thescriptname']:SendNotify(notifyExample)

Show Task

local policeTasks = {
    {
        text = '<div><span class="text-primary font-[700]">Go</span> to the <span class="text-primary font-[700]">Police station!</span></div>',
        completed = false,
    },
    {
        text = '<div><span class="text-primary font-[700]">Collect</span> all paper!</div>',
        completed = false,
    },
    {
        text = '<div><span class="text-primary font-[700]">Go </span> back to <span class="text-primary font-[700]">Legion Square!</span></div>',
        completed = false,
    },
}

local taskExample = {
    title = 'Police Evidance',
    tasks = policeTasks,
    active = true
}

exports['thescriptname']:ShowTask(taskExample)

Update Task

local policeTasks = {
    {
        text = '<div><span class="text-primary font-[700]">Go</span> to the <span class="text-primary font-[700]">Police station!</span></div>',
        completed = true,
    },
    {
        text = '<div><span class="text-primary font-[700]">Collect</span> all paper!</div>',
        completed = true,
    },
    {
        text = '<div><span class="text-primary font-[700]">Go </span> back to <span class="text-primary font-[700]">Legion Square!</span></div>',
        completed = false,
    },
}
exports['thescriptname']:UpdateTask(policeTasks)

Delete Task

exports['thescriptname']:DeleteTask()

TextUI

local textui3d = {
    key = "E",
    text = "Collect</span> the evidance!",
    active = true,
}

local textui = {
    key = "E",
    text = "Collect the evidance!",
    active = true
}

exports['thescriptname']:Show3DTextUI(vector3(447.2098, -974.4277, 30.5495), textui)
exports['thescriptname']:ShowTextUI(textui)

Progressbar

local progressAction = {
    duration = 3000,
    label = "Collecting evidance!",
    useWhileDead = false,
    canCancel = true,
    controlDisables = {
        disableMovement = false,
        disableCarMovement = false,
        disableMouse = false,
        disableCombat = false,
    },
    animation = {
        animdict = 'anim@gangops@facility@servers@bodysearch@',
        anim = 'device_search'
    },
}

exports['thescriptname']:CreateProgress(progressAction, function()
   -- do something if progress finished
end)
PreviousCustomizationNextMortar

Last updated 6 hours ago

Was this helpful?