Custom Vehicle Images
How it works
Steps
2
Troubleshooting
Symptom
Likely cause
Bulk-registering many vehicles
Last updated
By default the tablet UI fetches vehicle images from https://docs.fivem.net/vehicles/<respname>.webp β that covers every stock GTA V vehicle, but not modded cars on your server.
This page shows how to ship your own images for custom vehicles.
You put an image file at web/build/images/vehicles/<respname>.webp.
You register the respname in Config.CustomVehicleImages.
The UI loads listed respnames from your local resource and falls back to docs.fivem.net for everything else.
Save it as <respname>.webp in:
koja-carmarket/web/build/images/vehicles/The filename must match the spawn model exactly, in lowercase:
web/build/images/vehicles/mymodcar1.webp β
web/build/images/vehicles/MyModCar1.webp β (case mismatch)
web/build/images/vehicles/mymodcar1.png β (wrong format unless you set up otherwise)If you're contributing to the source tree, drop it in web/public/images/vehicles/ instead β Vite will copy it to web/build/ during bun run build.
restart koja-carmarket. Open the tablet β your custom vehicle should now show with the local image instead of a missing-image placeholder.
If you only added the config entry but not the actual file, the tablet will silently show the missing-image fallback. Double-check the file path.
Image shows for stock cars but not modded
Respname missing from Config.CustomVehicleImages
Modded car shows placeholder icon
File not in web/build/images/vehicles/ or name mismatch (case-sensitive)
Everything broken after rebuild
Did you forget to restart koja-carmarket after building?
If you have a vehicle pack with dozens of cars, just list them all:
No artificial cap β the lookup is an O(1) Set on the frontend.
Last updated
Config.CustomVehicleImages = {
'audi_r8', 'bmw_m4', 'mercedes_amg',
'ferrari_488', 'lambo_huracan', 'porsche_911',
-- ...
}