qbcore-framework / qb-vehiclekeys

Vehicle Keys System For QB-Core :key:
GNU General Public License v3.0
36 stars 225 forks source link

[BUG] Reloading manifest while playing #246

Closed Madbull16 closed 6 months ago

Madbull16 commented 8 months ago

Describe the bug Players have the problem that sometimes the lock / unlock doesn't work at the first "succes" message. I noticed that the content manifest sometimes reloads even when playing and triggers the togglelock event.

MainThrd/ OnConnectionProgress: Downloading content manifest... MainThrd/ OnConnectionProgress: Downloading content manifest (13.07 kB) UV loop: httpClient/ Required resources: qb-vehiclekeys MainThrd/ OnConnectionProgress: Loading content manifest... MainThrd/ OnConnectionProgress: Downloading qb-vehiclekeys (0 of 1 - 0.00/0.25 MiB) MainThrd/ OnConnectionProgress: Downloading qb-vehiclekeys (0 of 1 - 0.20/0.25 MiB) 6676/ ResourceCache::AddEntry: Saved cache:v1:8820a94f40cc42573eea50153260e18c9621e15d to the index cache. MainThrd/ Creating script environments for qb-vehiclekeys MainThrd/ OnConnectionProgress: Mounted qb-vehiclekeys (1 of 1) MainThrd/ Debug: client toggle vehicle door

To Reproduce I was not able to reproduce it on purpose, just made some debug prints and searched the logs.

Expected behavior even if there is some reload (I dont know why) there should not be a toggledoorlock trigger without player using it.

TKDubsta commented 8 months ago

Hey, we need steps to reproduce this issue in order to assist.

Madbull16 commented 8 months ago

I looked forward that maybe you could tell me how to reproduce this issue as this "UV Loop" and "redownloading while active playing" does not happen in any other scripts. The impact is only that sometime the vehicles are not closed or we have to push the button once more, but it's grinding me that i don't understand this behavior.

github-actions[bot] commented 6 months ago

This issue has had 60 days of inactivity & will close within 7 days