Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script NProgressbar | drawing progress bar with game base native

Ares

VAG
Admin
Joined
May 6, 2021
Messages
547
Reaction score
97,401
Points
411
Location
root
Website
vag.gg
ezgif-5-8a58383efaae







NProgressbar | drawing progress bar with game base native​

Install:

#method1:
resources.cfg

client_script "@nprogressbar_native/progressbar.lua"

then Call

CreateProgress(...)

#method2:

exports.nprogressbar_native:CreateProgress(...)

#method3:

TriggerEvent('CreateProgress',...)

functions:

CreateProgress(duration,text,cb,font,p1,p2,transparent,color1,color2,color3)

duration (number): the time progress remain
text (string): background text
Optinals:
cb (function): callback function
font (string/number): custom font name or default font “$Font2” or fontid just like SetTextFont(here)
p1,p2 (string/number): “L”,“B” / “L”,“T” / “C”,“C” / “C”,“B” / “C”,“T” / “R”,“T” / “R”,“B” or 0.35,0.45
transparent (number): opacity value of colors 0.0~1.0
color1 (table): color of value bar
color2 (table): color of trough bar/background
color3 (table): textcolor {255,0,123} or {255,0,0,120}

#Example:

Code:
CreateThread(function()
    TriggerEvent('CreateProgress',3000,'Waiting for this...',function(text)
        print(text)
    end,"$Font2","C","T")
    CreateProgress(4000,'loading233333333333333333333333333',function(text)
        print(text)
    end)
    CreateProgress(7764,'Go1!',function(text)
        print(text)
    end,"$Font2","C","B",0.5,{0,255,255},{0,0,0})
    CreateProgress(5566,'Go2!',function(text)
        print(text)
    end,"$Font2","L","T",0.5,{0,255,255},{0,0,0})
    CreateProgress(2323,'Go3!',function(text)
        print(text)
    end,"$Font2","R","T",0.5,{0,255,255},{0,0,0})
    CreateProgress(7115,'Go4!',function(text)
        print(text)
    end,"$Font2","L","C",0.5,{0,255,255},{0,0,0})
    CreateProgress(2222,'Go5!',function(text)
        print(text)
    end,"$Font5","R","C",0.5,{0,255,255},{0,0,0})
    CreateProgress(4444,'Go6!',function(text)
        print(text)
    end,"$Font2","L","B",0.5,{0,255,255},{0,0,0},{0,255,255})
    CreateProgress(3333,'GoBBB!',function(text)
        print(text)
    end,"$Font2",0.7,0.2,0.5,{0,255,255},{0,0,0},{0,255,255,255})
end)
 

xemodz2

Silver Elite
Joined
May 25, 2022
Messages
21
Reaction score
9
Points
156
Location
belg
ezgif-5-8a58383efaae





*** Hidden text: cannot be quoted. ***


NProgressbar | drawing progress bar with game base native​

Install:

#method1:
resources.cfg

client_script "@nprogressbar_native/progressbar.lua"

then Call

CreateProgress(...)

#method2:

exports.nprogressbar_native:CreateProgress(...)

#method3:

TriggerEvent('CreateProgress',...)

functions:

CreateProgress(duration,text,cb,font,p1,p2,transparent,color1,color2,color3)

duration (number): the time progress remain
text (string): background text
Optinals:
cb (function): callback function
font (string/number): custom font name or default font “$Font2” or fontid just like SetTextFont(here)
p1,p2 (string/number): “L”,“B” / “L”,“T” / “C”,“C” / “C”,“B” / “C”,“T” / “R”,“T” / “R”,“B” or 0.35,0.45
transparent (number): opacity value of colors 0.0~1.0
color1 (table): color of value bar
color2 (table): color of trough bar/background
color3 (table): textcolor {255,0,123} or {255,0,0,120}

#Example:

Code:
CreateThread(function()
    TriggerEvent('CreateProgress',3000,'Waiting for this...',function(text)
        print(text)
    end,"$Font2","C","T")
    CreateProgress(4000,'loading233333333333333333333333333',function(text)
        print(text)
    end)
    CreateProgress(7764,'Go1!',function(text)
        print(text)
    end,"$Font2","C","B",0.5,{0,255,255},{0,0,0})
    CreateProgress(5566,'Go2!',function(text)
        print(text)
    end,"$Font2","L","T",0.5,{0,255,255},{0,0,0})
    CreateProgress(2323,'Go3!',function(text)
        print(text)
    end,"$Font2","R","T",0.5,{0,255,255},{0,0,0})
    CreateProgress(7115,'Go4!',function(text)
        print(text)
    end,"$Font2","L","C",0.5,{0,255,255},{0,0,0})
    CreateProgress(2222,'Go5!',function(text)
        print(text)
    end,"$Font5","R","C",0.5,{0,255,255},{0,0,0})
    CreateProgress(4444,'Go6!',function(text)
        print(text)
    end,"$Font2","L","B",0.5,{0,255,255},{0,0,0},{0,255,255})
    CreateProgress(3333,'GoBBB!',function(text)
        print(text)
    end,"$Font2",0.7,0.2,0.5,{0,255,255},{0,0,0},{0,255,255,255})
end)
 
Top