# Vehicle Photo Guide

This guide explains how to generate high-quality images for all vehicles in your server using the built-in automated photo system.

### Overview

The `is-garages` script includes a powerful automation tool that spawns every vehicle in your server's database, takes a high-quality capture, and saves it for use in the garage UI.

Due to technical limitations within the GTA V engine, this process requires a specific workflow involving intentional client crashes.

***

### 🚀 How to start

To begin the automated photo capture process, follow these steps:

1. **Join the server** as an administrator.
2. Ensure you are in a clear area (the script will teleport you to a dedicated photo room anyway).
3. Open your console or chat and run:

   ```
   /takeallphotos
   ```

***

### ⚠️ The "Crash" Limitation

> \[!IMPORTANT] **GTA V has a hard limit on how many different vehicle models can be loaded in a single session (usually around 200-250 models).**

Because of this engine limitation:

* **Your game WILL crash** after processing approximately 200 vehicles.
* **This is normal and expected.** It is not a bug in the script, but a restriction of the game itself.

#### What to do when you crash:

1. **Do NOT reboot the server.** The server stays up and keeps track of the progress.
2. **Simply restart your game.**
3. **Reconnect to the server.**
4. Run the command again:

   ```
   /takeallphotos
   ```
5. The script will **automatically resume** from where it left off.
6. **Automatic Skipping:** If a specific vehicle model is corrupted and causes an immediate crash, the script will detect this and skip it upon the next attempt.
7. Repeat this until all vehicles in your database have been processed.

***

### ✅ Completion

Once the script has finished capturing every vehicle:

1. You will receive a notification that the process is complete.
2. **Perform a full server reboot.** This ensures all cache is cleared and the new images are properly indexed.
3. Your garage UI will now display the custom photos for every vehicle!

***

### 💡 Pro Tips

* **Stay Focused:** Avoid alt-tabbing frequently during the process to ensure the captures are framed correctly.
* **Performance:** If you have a lot of vehicles (1000+), expect 4 to 5 crashes. Just keep reconnecting and running the command!
* **Future Updates:** If you add new vehicles to your server later, simply run `/takeallphotos` again. The script will **ignore vehicles that already have a photo** and only process the new ones.
* **Quality:** The photos are taken using your current game settings. For the best results, turn up your graphics settings before starting the process.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://imperiumscripts.gitbook.io/imperium-scripts/scripts/imperium-garages/vehicle-photo-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
