Functions

Here you will find functions and example code on how to use our Notifications or Progress Bar.

Notify

exports["is_ui"]:Notify(title, message, duration, style, icon)
  • title: string or nil

  • message: string

  • duration: number or nil

  • style: string or table

  • icon: string or nil

Example Usage

-- Example 1: Using Predefined Style
exports["is_ui"]:Notify("Test", "Lorem ipsum <span>adipiscing elit</span>.", 5000, "info")

-- Example 2: Using Predefined Style with Custom Icon
exports["is_ui"]:Notify("Test", "Lorem ipsum adipiscing elit.", 5000, "info", "fa-regular fa-thumbs-up")

-- Example 3: Using Custom Style
local style = {
    icon = "fa-solid fa-sack-dollar",
    primaryColor = "#FF425D",
    backgroundIcon = { from = "#FC3955", to = "#861A20" },
    sound = { play = true, type = "notifySound6", volume = 5 }
}

exports["is_ui"]:Notify("Test", "Lorem adipiscing elit.", 5000, style)

Default Notifications

To quickly change default Notifications, go to the given file and replace the functions to call our export.

QBCore

qb-core -> client -> functions.lua

ESX

es_extended -> client -> functions.lua

OX Library

ox_lib -> resource -> interface -> client -> notify.lua

Progress Bar

The Progress Bar can only be invoked on the Client-Side!

  • data: table

    • title: string

    • icon: string or nil

      • default: fa-solid fa-user

    • duration: number or nil

      • default: 5000

    • useWhileDead: boolean or nil

      • default: false

    • canCancel: boolean or nil

      • default: false

    • prop: indexed table or nil

      • hash: string

      • bone: number or nil

        • default: 60309

      • position: table

        • x: number

          • default: 0.0

        • y: number

          • default: 0.0

        • z: number

          • default: 0.0

      • rotation: table

        • x: number

          • default: 0.0

        • y: number

          • default: 0.0

        • z: number

          • default: 0.0

    • animation: table or nil

      • dict: string

      • anim: string

      • blendIn: number or nil

        • default: 3.0

      • blendOut: number or nil

        • default: 3.0

      • duration: number or nil

        • default: -1

      • flag: number or nil

        • default: 49

      • playbackRate: number or nil

        • default: 0

      • lockX: boolean or nil

        • default: false

      • lockY: boolean or nil

        • default: false

      • lockZ: boolean or nil

        • default: false

    • scenario: table or nil

      • name: string

      • enterAnim: boolean or nil

        • default: true

    • disable: table or nil

      • move: boolean or nil

        • default: false

      • car: boolean or nil

        • default: false

      • combat: boolean or nil

        • default: false

      • mouse: boolean or nil

        • default: false

      • sprint: boolean or nil

        • default: false

Example Usage

Default Progress Bar

To quickly change default Progress Bar, go to the given file and replace the functions to call our export.

QBCore

qb-core -> client -> functions.lua

ESX

es_extended -> client -> functions.lua

OX Library

ox_lib -> resource -> interface -> client -> progress.lua

Last updated