zVoxty / qb-car-license-plate

Plugin written on the QB framework to handle car licence plates within FiveM game
GNU General Public License v3.0
10 stars 5 forks source link

"You do not have keys to this vehicle" after changing plates #2

Open lildiznick opened 2 years ago

lildiznick commented 2 years ago

Latest version of qbCore. After changing plates, player gets a "you do not have keys to this vehicle" notification. Player has to lock pick vehicle and it begins working normally after that. Server uses qb-vehiclekeys, and updated it as well.

PhysiksTV commented 1 year ago

Change your NetEvent to this:

RegisterNetEvent('clp:client:ResetVehicleOwner', function(plate) TriggerEvent("vehiclekeys:client:SetOwner", plate) QBCore.Functions.Notify('YOU WILL NOT BE ABLE TO GARAGE WITH FAKE PLATE', 'error') end)

This works so that crims cant garage a vehicle with fake plates. The car must be HIDDEN after nefarious activities

ZuluNiner commented 1 year ago

This doesn't actually work with QB-Core as expected or with ps-mdt. The fake plate still gets registered back to the individual (because of the SetOwner callback) so isn't really fake and can still be tracked back to the individual. Also you CAN store the car even with a fake plate installed.

PhysiksTV commented 1 year ago

Yes but it will reset the plate, I rewrote it so you can change the plate without the database linking player

On Wed, Sep 13, 2023, 6:42 PM ZuluNiner @.***> wrote:

This doesn't actually work with QB-Core as expected or with ps-mdt. The fake plate still gets registered back to the individual (because of the SetOwner callback) so isn't really fake and can still be tracked back to the individual. Also you CAN store the car even with a fake plate installed.

— Reply to this email directly, view it on GitHub https://github.com/zVoxty/qb-car-license-plate/issues/2#issuecomment-1718406745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFMSZIKQGKP37QVESAPH4LX2IZG7ANCNFSM5XM6AQGQ . You are receiving this because you commented.Message ID: @.***>