# External Garage Integration

> Reference for External Garage Integration in sky_jobs_base.

[All client exports](/docs/base/jobs-base/client-exports)

## External Garage Integration

These exports allow third-party garage systems to register their vehicles for trunk prop functionality. When a vehicle is spawned by an external garage, call `registerExternalTrunkVehicle` so the trunk interaction point is created and props can be used.

### `registerExternalTrunkVehicle(vehicle)`

- **Purpose**: Registers an externally-spawned vehicle for trunk and prop interactions. Adds the vehicle model to the allowed list and creates the trunk interaction point.
- **Arguments**:

  - `vehicle` (`number`) — the vehicle entity handle.
- **Returns**: `boolean` — `true` on success, `false` if the entity is invalid.

<code-group>

```lua [client.lua]
-- After your garage spawns the vehicle:
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)

local success = exports["sky_jobs_base"]:registerExternalTrunkVehicle(vehicle)

if success then
    print("Trunk props enabled for this vehicle")
end
```

</code-group>

<callout color="info" icon="i-lucide-info">

The player must be on-duty for the correct job. The server-side export `registerExternalVehicle` must also be called for full trunk functionality (inventory, transfers).

</callout>

### `unregisterExternalTrunkVehicle(vehicle)`

- **Purpose**: Removes the trunk interaction point for an externally-registered vehicle. Call this when the vehicle is despawned or parked.
- **Arguments**:

  - `vehicle` (`number`) — the vehicle entity handle.
- **Returns**: `boolean` — `true` on success, `false` if the entity or network ID is invalid.

```lua
exports["sky_jobs_base"]:unregisterExternalTrunkVehicle(vehicle)
```

<br />
