Vehicle Image System

CS-Garages includes a vehicle image system with fallback support. This guide covers image configuration and management.

Configuration

Enable or disable vehicle images in config.lua:

Config.Utils = {
    ["useImages"] = true, -- Enable/disable vehicle images in UI
}

Image System Setup

Adding Custom Vehicle Images

To add custom vehicle images:

  1. Add an image into the images/vehiclemodel.png directory

Adding Standard GTA Vehicle Images

To add missing Standard GTA vehicle images:

  1. Check F8 console for missing model name

  2. Add mapping in Config.VehicleImageNotworking

Fallback System

Configure image fallbacks for vehicles:

Config.VehicleImageNotworking = {
    ["brokenmodel"] = "correctmodel"    -- Map incorrect to correct model names
}

Private Garage Images

Configure UI images for private garages:

["garageImages"] = {              
    ["building"] = {
        "url1",
        "url2"
    },
    ["interiors"] = {
        ["style_id"] = "image_url"
    }
}

Troubleshooting

If vehicle images are not loading:

  1. Check F8 console for model name

  2. Verify model exists in FiveM docs

  3. Add mapping in Config.VehicleImageNotworking if needed

For support, please include:

  • Server console output

  • Configuration settings

  • List of installed dependencies

  • Steps to reproduce the issue