mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
better documentation layout
- seperated the 2000+ lines in ReadMe.md into seperate files. - useful if things expand - better readability for users - more organised layout
This commit is contained in:
23
documentation/main_functions/progressbars.md
Normal file
23
documentation/main_functions/progressbars.md
Normal file
@@ -0,0 +1,23 @@
|
||||
### progressBars.lua
|
||||
This module provides a unified progress bar system compatible with various UI frameworks.
|
||||
|
||||
❔It also contains an experimental "Shared Progressbar" system which was created for things like "giving an item to another player"
|
||||
|
||||
- **progressBar(data)**
|
||||
- Displays a progress bar using the current configured system (e.g., ox_lib, qb, etc).
|
||||
- **Example:**
|
||||
```lua
|
||||
local success = progressBar({
|
||||
label = "Processing...",
|
||||
time = 5000,
|
||||
dict = "amb@world_human_hang_out_street@female_hold_arm@base",
|
||||
anim = "base",
|
||||
flag = 49,
|
||||
cancel = true,
|
||||
})
|
||||
if success then
|
||||
print("Success!")
|
||||
else
|
||||
print("Cancelled")
|
||||
end
|
||||
```
|
||||
Reference in New Issue
Block a user