qbcore-framework / qb-vehiclekeys

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

[BUG] Improper Vehicle Key Handling on Server-Spawned Vehicles #262

Open JHansen2000 opened 2 months ago

JHansen2000 commented 2 months ago

Describe the bug When a vehicle is spawned on the server, the client is given keys but the vehicle acts as if the player does not have keys. Exiting and reentering the vehicle resolves the issue.

To Reproduce Steps to reproduce the behavior:

  1. Spawn a vehicle from the server
  2. Ensure you are teleported into the vehicle immediately
  3. Try to drive, but vehicle will not turn over
  4. Exit and reenter vehicle and problem is resolved

Expected behavior When the keyList statebag is updated, the client should reflect changes in the currently spawned vehicle.

Questions (please complete the following information):

Additional context See video posted in Discord: https://cdn.discordapp.com/attachments/1031968831595352085/1270183511957176360/Untitled_video_-_Made_with_Clipchamp_2.mp4?ex=66b2c614&is=66b17494&hm=2647e6997a383e24c3f7e52627e0634b8f93df9c18d3afd076c74d7408af24c9&

ChlxeThomson commented 1 month ago

i'm slightly having this issue too