hhfw1 / hh_vehextras

Comes with usefull features
13 stars 7 forks source link

Wont save in Garage #4

Open lordnikon77 opened 2 years ago

lordnikon77 commented 2 years ago

Beautiful script love it... but, it wont allow me to save any of the cars in the garage

IceDragnon2061 commented 2 years ago

me to

benzz2022 commented 2 years ago

have u guys fixed the problem. i had the same problem it wasnt saving in the garage but then i fixed it so was wondering if you fixed yours aswell or still needed help.

IceDragnon2061 commented 2 years ago

I have found a way, yes, but can you tell me your solution?

benzz2022 commented 2 years ago

yh i just changed the sql qeureys from mysql-async to oxmysql i think also it didnt help that i made a plate without having 8 letters in the plate. any less than 8 letters i dont think it works.

benzz2022 commented 2 years ago

qbcore dont use mysql-async they use oxmysql so i changed it to that and it worked. but then i did also change the plate format from 4 to 8 and then it worked however i dont run mysql-async so i know it wouldnt of been that prob

IceDragnon2061 commented 2 years ago

I do nothing with the code, I look at it and say OK exactly 8 Letters or numbers or both, but it must exactly 8. And what i have found. You must look what name the veh has. IMPORTEN for Custom cars.

It looks like this in the code that you must add in Client on line 14 "print(vehname)" that is the name you need. After you has the name, you must go in the vehicle.meta and change gamename and modelname to the name you get. If it is the same you have luck. If not, you have many works. Reason of this is the shity shared lua for qb i hate it so much. Because you must set the veh in the vehicles.lua so that the scipt finde it and also the garage script

pfckiko commented 1 year ago

i am having the same issue and i made a workaround by using /admincar then /transfervihecle id amount. but it would be awsome to get it fix. i am not sure what to do exactly with the information [IceDragnon2061] is giving.