CodeWorks
YoutubeDiscordTebex
  • Welcome!
  • Main
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
  • Errors
    • You lack the required entitlement to use cdw-*
  • Scripts
    • Boss Menu
      • Installation
      • Configuration
      • Language Files
      • Events / Export List
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
        • cl_mugshot.lua
    • Hud System
      • Installation
      • Configuration
      • Language Files
      • Events / Export List
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
      • Integrations
        • QB Core
          • Notification
          • Progressbar
        • ESX
          • Notification
          • Progressbar
        • ox_lib
          • Notification
          • Progressbar
  • GPS & Bodycam
    • GPS System
      • Installation
      • Configuration
      • Language Files
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
    • Bodycam System
      • Installation
      • Configuration
      • Language Files
      • Editable Files
        • sv_utils.lua
        • cl_utils.lua
Powered by GitBook
On this page
  • 1. Navigate to es_extended/client/functions.lua
  • 2. Find the ESX.Progressbar function and replace it with this:
  1. Scripts
  2. Hud System
  3. Integrations
  4. ESX

Progressbar

1. Navigate to es_extended/client/functions.lua

2. Find the ESX.Progressbar function and replace it with this:

function ESX.Progressbar(message, length, options)
     exports['cdw-hud']:Progress({
        name = "random_id" .. math.random(1, 99999),
        duration = length,
        label = message,
        useWhileDead = Options.useWhileDead,
        canCancel = Options.canCancel,
        controlDisables = Options.FreezePlayer,
        animation = Options.animation, -- ?
        prop = Options.prop,       -- ?
        propTwo = Options.propTwo, -- ?
    }, function(cancelled)
        if not cancelled then
            if Options.onFinish then
                Options.onFinish()
            end
        else
            if Options.onCancel then
                Options.onCancel()
            end
        end
    end)
end
PreviousNotificationNextox_lib

Last updated 4 months ago

Page cover image