---
title: "NPC_IsReloadEnabled | open.mp"
description: "Checks if automatic reloading is enabled for an NPC."
canonical: https://omp.itsneufox.com/docs/scripting/functions/NPC_IsReloadEnabled
language: en
---

# NPC\_IsReloadEnabled

warning

This function was added in omp v1.5.8.3079 and will not work in earlier versions!

## Description

Checks if automatic reloading is enabled for an NPC.

| Name | Description |
| --- | --- |
| npcid | The ID of the NPC |

## Returns

Returns `true` if auto-reload is enabled, `false` otherwise.

## Examples

```c
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext, "/checkreloadenabled", true))
    {
        new npcid = PlayerNPC[playerid];
        if (npcid == INVALID_NPC_ID)
            return SendClientMessage(playerid, 0xFF0000FF, "You are not debugging a NPC.");

        if (!NPC_IsValid(npcid))
            return SendClientMessage(playerid, 0xFF0000FF, "Invalid NPC.");

        new bool:isReloadEnabled = NPC_IsReloadEnabled(npcid);

        SendClientMessage(playerid, 0x00FF00FF, "NPC %d reload enabled: %s", npcid, isReloadEnabled ? "Yes" : "No");
        return 1;
    }
    return 0;
}
```

## Notes

-   Auto-reload makes NPCs automatically reload when their clip is empty
-   NPCs without auto-reload will stop shooting when their clip runs out
-   This only affects clip ammunition, not total ammunition
-   Use `NPC_EnableReloading` to change the reload setting

## Related Functions

-   [NPC\_EnableReloading](https://omp.itsneufox.com/docs/scripting/functions/NPC_EnableReloading): Enable/disable auto-reload
-   [NPC\_IsReloading](https://omp.itsneufox.com/docs/scripting/functions/NPC_IsReloading): Check if currently reloading
-   [NPC\_GetAmmoInClip](https://omp.itsneufox.com/docs/scripting/functions/NPC_GetAmmoInClip): Get clip ammunition
-   [NPC\_SetAmmoInClip](https://omp.itsneufox.com/docs/scripting/functions/NPC_SetAmmoInClip): Set clip ammunition

## Related Callbacks

-   [OnNPCWeaponShot](https://omp.itsneufox.com/docs/scripting/callbacks/OnNPCWeaponShot): Called when NPC fires
