qb-garages icon indicating copy to clipboard operation
qb-garages copied to clipboard

[BUG] Customised Plate Vehicles Not Giving Keys

Open jrd-s opened this issue 1 year ago • 1 comments

I've been meaning to add customised plates to a development instance I have active so after some trial and error, it occurred to me to at least make sure that 8 character plates can be appropriately retrieved. This is the case. It appears that any value below 8, it spawns a vehicle with that plate, but it does not appropriately give the keys.

Steps to reproduce the behavior:

  1. Have a vehicle stored
  2. Modify the 2 plate fields in the database (plate, mods > plate)
  3. Save
  4. Pull out the customised plate vehicle

By default, the player teleports into the the vehicle (testing purposes, I've kept this as is), and with a custom plate, this should behave the same.

It does spawn the vehicle with the plate, however, no keys are given and it spawns as though it's an NPC vehicle (locked)

image

image

  • When you last updated: Fresh install within the last 4 hours
  • Are you using custom resource? which ones? nothing that would interfere
  • Have you renamed qb- to something custom? no

I've used the database to change the values after writing a small script to do it also, neither works unless the plate is 8 characters.

jrd-s avatar Mar 24 '24 02:03 jrd-s

I've got a work around by commenting out "Citizen.Await(CheckPlate(veh, vehPlate))" in the takeOutGarage function. Not sure of the reason for this line as I've just been casually looking it over but storing and pulling customised plates work.

jrd-s avatar Mar 24 '24 20:03 jrd-s

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

github-actions[bot] avatar May 24 '24 15:05 github-actions[bot]