Agents can also search and read this documentation through its MCP server.
Installation
Installation
General Setup
- Extract the resource into your server's
resourcesfolder. - Make sure the folder name is strictly
hkn_progressbar. - Open your
server.cfg. - Make sure the default FiveM resources are started before this script.
- Add the following line:
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure baseevents
ensure hkn_progressbar
Usage
You can start a progress bar from any of your client-side scripts with the export.
exports.hkn_progressbar:Progress("UNLOCKING VEHICLE...", 5000, function(success)
if success then
print("Action completed successfully!")
else
print("Action was cancelled.")
end
end)
Parameters
| Parameter | Description |
|---|---|
label |
Text shown on the progress bar. Uses the loading locale text when left empty. |
duration |
Duration of the progress bar in milliseconds. |
callback |
Function called when the bar ends. Receives true when completed, false when cancelled. |
Note: Only one progress bar can run at a time. A new call is ignored while another one is still active.
Commands
| Command | Description |
|---|---|
/testprogress |
Starts a 5 second test progress bar. |
Configuration
Below are all available configuration options for hkn_progressbar.
Update Check
Enable or disable the version check on resource start.
Config.UpdateCheck = true
Language
Select the language used by the default texts.
Config.Locale = "en"
Theme Color
Customize the progress bar fill and glow color.
Config.ThemeColor = "#ff0066"
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.