qb-core icon indicating copy to clipboard operation
qb-core copied to clipboard

[BUG] Vehicle Livery Function

Open NoobySloth opened this issue 2 years ago • 11 comments

To Reproduce buy car > store in garage > take out of garage > bennys customs > buy cool boi livery > store in garage > take out of garage > bennys customs > livery (stock) > store in garage > take out of garage > has cool boi livery and not stock

It appears that when saving it doesn't put the livery to -1 when saving as stock.

https://medal.tv/games/gta-v/clips/eNjmZJWjDaPC9/lktjdeDuBT4Z?invite=cr-MSxkQmIsNDM4NTI1MTEs I have a video here to help understand the process.

NoobySloth avatar Mar 21 '22 12:03 NoobySloth

https://github.com/qbcore-framework/qb-core/commit/52dc610c6c97f21fdd1090850bd34332ba05195e Could you tell me if this fixes your issue?

BerkieBb avatar Mar 31 '22 16:03 BerkieBb

52dc610 Could you tell me if this fixes your issue?

why i cant store my vehicle.. ["This vehicle can't be stored",] how to fix this

RenggoStarz avatar Apr 06 '22 21:04 RenggoStarz

52dc610 Could you tell me if this fixes your issue?

Hey! I can confirm this did not fix, the same issue persists :(

NoobySloth avatar Apr 07 '22 01:04 NoobySloth

I can also confirm this does not fix the problem.

BansaGaming avatar Apr 07 '22 11:04 BansaGaming

I just downloaded a brand new fresh core to update my garage pr, its confirmed still happening.

Rav3n95 avatar Apr 08 '22 06:04 Rav3n95

I am testing this well and it is still an issue

DannysRP avatar Apr 10 '22 03:04 DannysRP

Also, appears that neon lights aren't saving after the update?

NoobySloth avatar Apr 11 '22 09:04 NoobySloth

I've also had this issue when I had a few standalone scripts messing with the vehicle like vehicle failure and other stuff which I mistakenly copied over from my ESX server to QBCore. Try removing any of those if you have them and try again

ghost avatar Apr 17 '22 06:04 ghost

Update core fully.

ItsANoBrainer avatar Jun 13 '22 15:06 ItsANoBrainer

buy car > store in garage > take out of garage > bennys customs > buy any livery without first livery > store in garage > take out of garage > bennys customs > livery (stock) > store in garage > take out of garage > has livery and not stock

But after the updated version of core , if we want to buy stock livery after buying any livery,

store in garage > take out of garage > bennys customs > buy first livery > store in garage > take out of garage > bennys customs > livery (stock) > store in garage > take out of garage > has stock livery.

It should provide for all liveries , not for first livery. How do we provide revert to stock livery after purchasing any livery?

ouzg avatar Jul 14 '22 20:07 ouzg

After my research, i found a solution for basic qb package with fully updated versions of qb scripts , when i apply this condition,

" if categoryID == 48 then SetVehicleLivery(plyVeh, modID) end "

at the end of the ApplyMod function at " qb-customs/client/cl_bennys.lua " to fixed it , my problem has been solved. Thank you @xenfovn . If we want to see more details about this solution, you can check in qb-customs pr which is 128.

ouzg avatar Jul 19 '22 22:07 ouzg