NS-Progress bar [STANDALONE]

NS-Progress bar [STANDALONE]

This item is free.

Add to Basket

🌟 NYKS Universal Progress Bar


Are you looking for a sleek, modern, and functional loading interface for actions on your server? The NYKS Progress Bar is a universal solution designed to be compatible with all your scripts on your RedM server.

This isn't just a script for a single purpose; it's a centralized system that all your other resources can use.


🎯 Why Choose This Script?


Universal Compatibility (Export Support): The best feature of our script is the export 'Progress' function defined in the fxmanifest.lua file. This allows all other scripts on your server (crafting, heists, item usage, police actions, etc.) to easily call this progress bar.

You no longer need to code a separate progress bar for every script. Install one central system and use it for all your actions!

Technical Features & Usage:

This script provides a function that can be easily triggered from your other resources.

  • Function: Progress(text, duration, callback)

  • text: The text displayed on-screen during the action (e.g., "Repairing vehicle...").

  • duration: The duration of the action in milliseconds (ms) (e.g., 10000 = 10 seconds).

  • callback (Optional): The function you want to trigger when the time is up (e.g., the code that gives the item to the player).

Example Usage (From another script):

Let's say you have a "woodcutting" script. When the player uses the axe, they need to wait 5 seconds and then receive wood. All you need to do is add this line to that script:


-- 'nyks_progress' is the folder name of this script

exports['nyks_progress']:Progress('Chopping wood...', 5000, function()

    -- This part runs after the 5 seconds are over

    print('Successfully collected wood!')

    -- You can add your code to give wood to the player here

end)


Other Key Features:

  • Action Security: While the progress bar is active, it locks the player's controls (DisableAllControlActions). This prevents the player from moving during the action and exploiting the mechanic.

  • Modern UI: Uses NUI technology via the html/index.html file. (You can fully customize the appearance by editing the CSS/JS files).

  • Performance: Runs only when needed and does not strain your system.

This script is the perfect foundational tool to standardize your server's mechanics and elevate the player experience to a professional level.