Car dealer bug

Hello i have a problem with the car dealer(esx_vehicleshop), i put some addon cars on my server and when i spawn em using command they are fine but if i go to the car dealer after about 10 cars i start getting texture loss , i tried removing all the suspicious vehicles but the problem doesnt seem to be gone. any help please?

Probably because all those models are loaded and never unloaded after they aren’t used anymore

how can i unload them?

Probably SetModelAsNoLongerNeeded(model)

I tried my hand at the model unloading https://gitlab.com/FiveM-Eagledude4/ESX/esx_vehicleshop/blob/master/client/main.lua
but it didn’t seem to work

I need this too :slight_smile: BUMP

this is the solution guys, cheers! HAVE FUN https://github.com/ESX-Org/esx_vehicleshop/pull/118/commits/b2d7d66f19be68f0510f85daba96221254a89f19

my dealership doesnt let me access a menu it just has the icon thats all

1 Like

did you find da solution to this i have the same problem

no sadly i didnt