Skip to content

negbook/nprogressbar_native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages