JonasDev17 / qb-garages

GNU General Public License v3.0
96 stars 70 forks source link

QB Phone Not Working with Vehicles #141

Open jigglyblunt opened 6 months ago

jigglyblunt commented 6 months ago

Hello,

i'm not sure why but when you click the vehicle icon within QB phone, there is nothing displayed. No client side or server side issues arise to point to. I otherwise am enjoying your garages, better then the core downloaded one.

thanks for all you do and hope to see a solution soon :)

Marky2701 commented 6 months ago

It happens to me too.

JonasDev17 commented 6 months ago

I'll look into it.

rapeurtueur commented 6 months ago

Hello I fixed by my self so I shared it to you

Just missing an "S" from

server.lua - line 415

QBCore.Functions.CreateCallback('qb-garage:server:GetPlayerVehicles', function(source, cb)

change by

QBCore.Functions.CreateCallback('qb-garages:server:GetPlayerVehicles', function(source, cb)

rapeurtueur commented 6 months ago

Can you help me in return? I can't debug the functionality to track the vehicle from the phone

JonasDev17 commented 6 months ago

There is an export in my garages script (TrackVehicleByPlate) Screenshot_20240105-160222_Brave

use it like this:

exports['qb-garages']:TrackVehicleByPlate(plate)

Marky2701 commented 6 months ago

May I ask maybe for a template to set up a garage for a gang please? I don't quite understand well how it works