---
title: "2 篇文件帶有標籤「protection」 | open.mp"
canonical: https://omp.itsneufox.com/zh-TW/docs/tags/protection
language: zh-TW
---

# 2 篇文件帶有標籤「protection」

[檢視所有標籤](https://omp.itsneufox.com/zh-TW/docs/tags)

[

## NPC\_IsInvulnerable

](https://omp.itsneufox.com/zh-TW/docs/scripting/functions/NPC_IsInvulnerable)

Checks if an NPC is invulnerable to damage.

[

## NPC\_SetInvulnerable

](https://omp.itsneufox.com/zh-TW/docs/scripting/functions/NPC_SetInvulnerable)

Sets whether an NPC is invulnerable to damage.
