---
title: "AreInteriorWeaponsAllowed | open.mp"
description: "检测是否允许在室内场景使用武器"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/AreInteriorWeaponsAllowed
language: zh-CN
---

# AreInteriorWeaponsAllowed

注意

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

## 描述

检测当前服务器是否允许在室内场景使用武器。

## 返回值

true：允许使用武器

false：禁止使用武器

## 示例

```c
if (AreInteriorWeaponsAllowed())
{
    // 执行与室内武器相关的操作
}
```

## 相关函数

-   [AllowInteriorWeapons](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/AllowInteriorWeapons): 控制室内武器使用权限开关
