> For the complete documentation index, see [llms.txt](https://tru-development.gitbook.io/tru-development-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tru-development.gitbook.io/tru-development-docs/tru-fakeplates/usage-and-integrations.md). Agents can also search and read this documentation through its [MCP server](https://tru-development.gitbook.io/tru-development-docs/~gitbook/mcp).

# Usage and Integrations

Documentation / Tru-Fakeplates

## Usage and Integrations

The fake plate resource does not require garage integrations. It works on active spawned vehicles and restores the real plate when the fake plate is removed.

If a server owner wants to block garage storage or valet while a fake plate is active, enable:

```lua
Config.GarageProtection.Enabled = true
```

Then add one of these checks in the garage script before storing or valet spawning a vehicle.

### Before storing <a href="#before-storing" id="before-storing"></a>

```lua
if not exports['Tru-Fakeplates']:CheckStoreVehicle(source, plate, 'garage-name') then
    return
end
```

### Before valet / retrieval <a href="#before-valet-retrieval" id="before-valet-retrieval"></a>

```lua
if not exports['Tru-Fakeplates']:CheckValetVehicle(source, plate, 'garage-name') then
    return
end
```

### Read-only exports <a href="#read-only-exports" id="read-only-exports"></a>

```lua
local hasFakePlate = exports['Tru-Fakeplates']:HasFakePlate(plate)
local realPlate = exports['Tru-Fakeplates']:GetOriginalPlate(plate)
local canStore, reason = exports['Tru-Fakeplates']:CanStoreVehicle(source, plate)
```

Supported by snippet, not hard dependency: qb-garages, qbx\_garages, cd\_garage, jg-advancedgarages, okokGarage, loaf\_garage, qs-advancedgarages, and rcore\_garage.

### In-game verification <a href="#in-game-verification" id="in-game-verification"></a>

Apply a plate to a test vehicle, inspect it as an authorized officer, remove or confiscate it and confirm the original plate returns.

### Integration guidance <a href="#integration-guidance" id="integration-guidance"></a>

Test with a normal player and an officer. If persistence is enabled, restart and verify the mapping before enabling garage restrictions. Keep custom integration changes separate from protected resource logic. When calling an export, use the actual running resource name.

### Garage integration boundaries <a href="#garage-integration-boundaries" id="garage-integration-boundaries"></a>

Garage protection is optional and requires the garage resource to call the provided checks at the relevant server-side points. Test both a vehicle with an active fake plate and one without before enabling the integration for players. Confirm that removal restores the original in-game plate and that ordinary garage behavior remains unaffected.
