Qbox-project / qbx_vehiclekeys

GNU General Public License v3.0
5 stars 41 forks source link

fix: apply correct plate in access if changed after spawn #128

Closed aka-lucifer closed 1 month ago

aka-lucifer commented 1 month ago

Description

Resolves an issue caused when a vehicle is spawned and then the plate is changed.

Essentially when a vehicle is initiailly spawned and the hotwire check is ran, the original vehicles plate is passed, however if the plate is updated by an external resource such as a personal vehicle from a garage, it doesn't process this always showing as no key access.

Checklist

aka-lucifer commented 1 month ago

Would be a better solution, albeit bigger change, be to change vehicle key identifier from plate to netId?

Yeah definitely although I'd recommend using statebags, I can look into this implementation if you would prefer.

aka-lucifer commented 1 month ago

Nevermind I see you've already done it LOL