qbcore-framework / qb-vehiclekeys

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

[BUG] Vehicle Keys #233

Closed mfel2k closed 10 months ago

mfel2k commented 1 year ago

Every Job I do, including the ones included with the qbcore script, fail to give keys to vehicles when you do a job that gives a vehicle. I am not sure what is causing it and would blame it on the script, but i have 2 addon job scripts, as well as the regular qbcore one that makes you search for keys when you get into the work vehicle.

GitMocha commented 1 year ago

Which QB Scripts are not giving you keys when spawning a vehicle? this is usually caused by the script not getting the plate of the vehicle properly when triggering this event "TriggerEvent("vehiclekeys:client:SetOwner".

mfel2k commented 1 year ago

To be honest even the qb core jobs from city hall have this issue. Qs drugs, buty jobs. Also

GhzGarage commented 1 year ago

We've tested this with the different jobs and haven't been able to reproduce not receiving keys

KingRyuShin commented 1 year ago

same, i had to change the event to use the server one for acquirevehiclekeys

mfel2k commented 1 year ago

What did you do to make it work king??

mfel2k commented 1 year ago

And instead the of calling it invalid I can let you log into my server and see what happens. I ain't trying to cause issues for u just legitimately want to solve the issue

KingRyuShin commented 1 year ago

Just use the AcquireVehicleKeys from server side instead of the SetOwner on client side

TreP-coder commented 9 months ago

exports my brother... set it client side of the script.. if escrowed let the person who made it know