PA Scripts
Scripts
  • Overview
  • Hookers
    • 🔧 Installation
    • ðŸŽŪ Gameplay & Usage
    • ⚙ Configuration Details
  • Multiplayer Roof Running
    • 🔧 Installation
    • 🔍 Gameplay & Usage
    • ⚙ïļ Configuration Details
  • Crafting System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Lockpick System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Racing System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Hacking System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Details
  • Money Laundering System
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Options
  • Radial Menu
    • 🔧 Installation
    • 🔍 Usage
    • ⚙ïļ Configuration Options
  • Prop System
    • 🔧 Installation
    • 🔍 Usage
    • Configuration Details
  • Hq App + Art Asylum Heist
    • ⚔ïļGeneral information page
    • 🧠Installation
  • Inventory
    • Readme file
    • 🧠Installation
    • ðŸŠķConfig Settings
  • Craft System
    • ðŸ’ŧGeneral features
    • 🧠Installation
    • ðŸŠķConfig Settings
    • ðŸŸĶBlueprints
  • UI Pack
    • ⚙ïļSetting for Core
    • ðŸŠķUsage examples
Powered by GitBook
On this page
  • QB Notify example edit
  • Open qb-core/client/functions.lua, find the QBCore.Functions.Progressbar function and replace it with the following
  • QB Progressbar edit
  • Open qb-core/client/functions.lua, find the QBCore.Functions.Progressbar function and replace it with the following

Was this helpful?

  1. UI Pack

Setting for Core

QB Notify example edit

Open qb-core/client/functions.lua, find the QBCore.Functions.Progressbar function and replace it with the following

function QBCore.Functions.Notify(text, texttype, length)
    length = length or 5000
    texttype = texttype or 'info'

    if texttype == "primary" then 
        texttype = "info"
    end

    TriggerEvent('pa-lib:notify', text , length, texttype)
end

QB Progressbar edit

Open qb-core/client/functions.lua, find the QBCore.Functions.Progressbar function and replace it with the following

function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)
    if GetResourceState('pa-uipack') ~= 'started' then error('progressbar needs to be started in order for QBCore.Functions.Progressbar to work') end
    exports['pa-uipack']:Progress({
        name = name:lower(),
        duration = duration,
        label = label,
        useWhileDead = useWhileDead,
        canCancel = canCancel,
        controlDisables = disableControls,
        animation = animation,
        prop = prop,
        propTwo = propTwo,
    }, function(cancelled)
        if not cancelled then
            if onFinish then
                onFinish()
            end
        else
            if onCancel then
                onCancel()
            end
        end
    end)
end
PreviousUI PackNextUsage examples

Last updated 10 months ago

Was this helpful?

⚙ïļ