qb-core
qb-core copied to clipboard
[BUG] Vehicle Livery Function
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.
https://github.com/qbcore-framework/qb-core/commit/52dc610c6c97f21fdd1090850bd34332ba05195e Could you tell me if this fixes your issue?
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
52dc610 Could you tell me if this fixes your issue?
Hey! I can confirm this did not fix, the same issue persists :(
I can also confirm this does not fix the problem.
I just downloaded a brand new fresh core to update my garage pr, its confirmed still happening.
I am testing this well and it is still an issue
Also, appears that neon lights aren't saving after the update?
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
Update core fully.
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?
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.