> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get all vehicles of player

> Retrieve all vehicles a player owns across all buyable garages.

Get all vehicles owned by a player ID in all buyable garages.

<CodeGroup>
  ```lua Export theme={null}
  exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId)
  ```

  ```lua Example theme={null}
  local playerId = 4
  local vehicles = exports["jobs_creator"]:getAllVehiclesOfPlayer(playerId)
  print("Player vehicles:")
  print(ESX.DumpTable(vehicles))
  ```
</CodeGroup>

### Parameters

| Name       | Data Type | Description        |
| ---------- | --------- | ------------------ |
| `playerId` | integer   | Player's server ID |

### Return value

| Name       | Data Type | Description                                                                                                         |
| ---------- | --------- | ------------------------------------------------------------------------------------------------------------------- |
| `vehicles` | table     | Table with all vehicles owned by the player in the buyable garages, key is vehicle ID and value is the vehicle data |


## Related topics

- [Buyable Vehicles](/jobs-creator/server/buyable-vehicles/index.md)
- [Get player vehicles in marker ID](/jobs-creator/server/buyable-vehicles/get-player-vehicles-in-marker-id.md)
- [Get if player is owner of vehicle plate](/jobs-creator/server/buyable-vehicles/get-if-player-is-owner-of-vehicle-plate.md)
- [Get player ID keys](/vehicles-keys/server/get-player-id-keys.md)
- [Get owned plates of local player](/vehicles-keys/client/get-owned-plates-of-local-player.md)
