qbcore-framework / qb-vehiclekeys

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

[BUG] #167

Closed Xoogle5M closed 2 years ago

Xoogle5M commented 2 years ago

Describe the bug The shared vehicle keys for jobs doesn't seem to be working. Tried while on duty and off duty, neither worked.

To Reproduce Steps to reproduce the behavior:

  1. Make sure the correct vehicles are put into the config.lua
  2. Make sure both players have the correct job (police)
  3. Check if the player that did not grab the vehicle has keys
  4. Player 2 ends up not having keys

Expected behavior Everyone with the same job should have shared keys to the vehicles listed under their job in Config.SharedKeys

Questions (please complete the following information):

tom-osborne commented 2 years ago

Is this happening with an addon vehicle? If so, then check this issue, where a potential cause was explained. #164 This was also fixed in a recent PR, so you can simply update to fix the issue

Xoogle5M commented 2 years ago

Is this happening with an addon vehicle? If so, then check this issue, where a potential cause was explained. #164 This was also fixed in a recent PR, so you can simply update to fix the issue

Yeah, they are addon vehicles. Should they be in shared/vehicles.lua by the way? I haven't put them in there cause I didn't want them available in shops.

tom-osborne commented 2 years ago

Yes they should. Also, grab a copy of the latest version of qb-vehiclekeys and you should have the shared jobs fixed.

tom-osborne commented 2 years ago

@Xoogle5M Did that fix your issue?