---
title: "GetVehicleModelsUsed | open.mp"
description: "获取服务器上已使用的车辆模型数量。"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GetVehicleModelsUsed
language: zh-CN
---

# GetVehicleModelsUsed

注意

这个函数是在omp v1.1.0.2612中添加的，在以前的版本中不起作用！

## 描述

获取服务器上已使用的车辆模型数量。

## 示例

```c
public OnGameModeInit()
{
    printf("已使用车辆模型数: %d", GetVehicleModelsUsed());
}
```

## 相关函数

-   [GetVehicleModelCount](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GetVehicleModelCount): 获取指定车辆模型的计数
