63 Commits

Author SHA1 Message Date
_Not_ 8888c6ce14 chore: update version to 1.14.1 across all fxmanifest files 2026-08-15 14:40:34 -05:00
Selt 07b9253401 fix(esx_progressbar): honour the requested duration and ignore cancelled runs
The processing thread counted the remaining time down in 1000 ms steps and read
the global CurrentProgress on every wake, which caused two problems.

Any duration that is not a whole number of seconds finished late, since the
thread only checked after another full second. The NUI bar runs on wall clock
time, so the bar completed and the player then stood frozen waiting for onFinish.

Cancelling did not stop the thread either. CancelProgressbar clears
CurrentProgress, but the sleeping thread only notices up to a second later, and if
a new bar was started in that window it saw a non-nil CurrentProgress and kept
decrementing the new one alongside its own thread. The new bar then finished at
roughly half its length, firing onFinish early.

The run now carries an id, so a thread stops as soon as its run is no longer the
current one, and the end is an absolute timestamp rather than a countdown.

Measured in game on artifact 25770, requested versus actual onFinish:
  before: 500 -> 1011, 4200 -> 5042, cancel then 3000 -> 1427
  after:  500 ->  519, 4200 -> 4222, cancel then 3000 -> 3058
2026-07-27 21:51:15 +02:00
ASTROWwwW 511f5fc74e chore: bump manifest version to 1.14.0 2026-07-18 16:58:18 +02:00
zykem#0643 efedf3c303 chore: bump manifest version to 1.13.5 2026-05-08 11:30:59 +02:00
Manifest Bumper 69fe76ca38 chore: bump manifest version to 1.13.4 2025-10-01 22:16:13 -05:00
Manifest Bumper 73ccea1b4e chore: bump manifest version to 1.13.3 2025-08-19 22:39:13 +00:00
Manifest Bumper 224d06fad2 chore: bump manifest version to 1.13.2 2025-08-13 15:34:40 +00:00
Manifest Bumper 830c567cfd chore: bump manifest version to 1.13.1 2025-08-02 11:09:55 +00:00
Manifest Bumper 3a9e0f316e chore: bump manifest version to 1.13.0 2025-07-26 17:05:56 +00:00
Manifest Bumper 72a1397823 chore: bump manifest version to 13.13.0 2025-07-26 17:04:08 +00:00
Arctos2win 97aaf58a02 Revert "chore: update copyright year" 2025-01-08 14:17:39 +01:00
Kasey FItton 968c558804 chore: update copyright year 2025-01-08 12:31:50 +00:00
Manifest Bumper 642b1e60ce chore: bump manifest version to 1.12.3 2025-01-06 14:45:23 +00:00
Kasey FItton 34203c199f chore: version bump 2025-01-02 04:54:22 +00:00
Manifest Bumper d6fa11fc69 chore: bump manifest version to 1.12 2025-01-01 21:57:19 +00:00
Kasey FItton 803508ba2f Merge branch 'dev' into vehicle-spawn-validation 2024-12-04 05:59:39 +00:00
Manifest Bumper 0cac6f5163 chore: bump manifest version to 1.11.4 2024-11-30 16:10:50 +00:00
Kasey Fitton 042ad3498d Merge pull request #1495 from Fellow1990/main
update: menu.lua
2024-11-21 17:51:11 +00:00
Manifest Bumper efafa58eb2 chore: bump manifest version to 1.11.3 2024-11-18 22:02:42 +00:00
Kasey Fitton 89c2f8a545 Merge pull request #1458 from esx-framework/main
Merge hotfix
2024-11-12 21:17:37 +00:00
Manifest Bumper e53a62844b chore: bump manifest version to 1.11.2 2024-11-11 21:30:56 +00:00
Kasey FItton f464bd1858 tweak(esx_progressbar): new colours 2024-11-10 08:41:04 +00:00
Kasey FItton c09ce09358 feat(esx_progressbar): New styling 2024-11-09 10:58:34 +00:00
Kasey FItton a5f5335d3b chore: version bump 2024-11-09 08:55:24 +00:00
Kasey FItton 757a8ea2f7 tweak: prep update versioning 2024-11-09 00:46:45 +00:00
JustGod e0ce2c6b27 Feat: ESX.CancelProgressbar 2024-10-25 23:36:40 +02:00
JustGod 5f660bcfac Fix progressbar always return false|nil 2024-10-25 23:35:54 +02:00
Manifest Bumper 6d86afac68 chore: bump manifest version to 1.10.10 2024-10-20 19:00:39 +00:00
Manifest Bumper 424db9cf77 chore: bump manifest version to 1.10.9 2024-10-14 20:16:29 +00:00
Manifest Bumper 1d0b275a7f chore: bump manifest version to 1.10.8 2024-10-10 16:29:56 +00:00
Arctos2win d0d0203780 fix(esx_core): correct licenses, remove license from package, update license years, create license for progressbar 2024-08-06 20:36:16 +02:00
Mirow 959344e39f refactor(client): used cached esx ped 2024-07-26 22:19:28 +02:00
Gellipapa fde64e507a 📦 Bump version to 1.10.7 2024-06-19 00:08:05 +02:00
Gellipapa f3c5424093 🚑 bump version to 1.10.6 2024-06-16 15:20:48 +02:00
Gellipapa 8e94cad87e Merge branch 'dev' into fix-dev-to-main 2024-02-29 22:37:15 +01:00
Manifest Bumper 731b6a13b8 chore: bump manifest version to 1.10.5 2024-02-17 22:53:26 +00:00
Kasey FItton 77e880a715 refactor: add better descriptions to the fxmanifests 2024-02-11 15:04:21 +00:00
Manifest Bumper 82affe3e1e chore: bump manifest version to 1.10.4 2024-01-30 20:08:06 +00:00
Gellipapa 8a91473ff7 📝 Update fxversion to 1.10.3 2024-01-25 00:34:22 +01:00
Gellipapa 9d90c9d674 🎨 Run formatter 2024-01-24 23:07:30 +01:00
Gellipapa aa84aac642 Merge branch 'dev' of https://github.com/Gellipapa/esx_core into dev 2023-10-16 23:49:23 +02:00
Gellipapa 598c2f7c9f 🔧 Add missing onCancel callback method to progressbar 2023-10-16 23:49:10 +02:00
TheFantomas b8d2c14bf3 Version fixes 2023-09-21 14:46:05 +02:00
Jean-Baptiste f5eb5db5e6 Merge branch 'main' into dev 2023-07-10 23:40:07 +02:00
Jean-Baptiste 815945de5d change version name to 1.10.1 2023-07-10 23:30:14 +02:00
Jean-Baptiste e85f6ed135 versioning changes to comply with conventions 2023-07-10 23:21:58 +02:00
TheFantomas 9049c98d76 formatting(all): Format with prettier and lua formatter 2023-07-09 17:00:36 +02:00
TheFantomas 88c8036a24 formatting(core): Format all 2023-06-29 20:20:28 +02:00
Thekuca 8f773621dd Merge pull request #1043 from FekyDEV/patch-1
feat(esx_progressbar): option to externally cancel the progressbar
2023-05-29 14:09:51 +02:00
Thekuca d979ba4ae8 Update Progress.lua 2023-05-12 23:09:38 +02:00