From 813b2d7d465b9663c14348d251187095c54761f3 Mon Sep 17 00:00:00 2001 From: Omar <132762376+d-3fault@users.noreply.github.com> Date: Sat, 21 Mar 2026 20:50:17 +0000 Subject: [PATCH] Update OnNPCTakeDamage.md --- frontend/docs/scripting/callbacks/OnNPCTakeDamage.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/docs/scripting/callbacks/OnNPCTakeDamage.md b/frontend/docs/scripting/callbacks/OnNPCTakeDamage.md index fd7abcada60..8a07e4730da 100644 --- a/frontend/docs/scripting/callbacks/OnNPCTakeDamage.md +++ b/frontend/docs/scripting/callbacks/OnNPCTakeDamage.md @@ -21,7 +21,11 @@ This callback is called when an NPC takes damage from a player or another NPC. ## Returns -Return `false` to prevent the damage from being applied, or `true` to allow it. +1 - Callback will not be called in other filterscripts. + +0 - Allows this callback to be called in other filterscripts. + +It is always called first in filterscripts so returning 1 there blocks other filterscripts from processing it. ## Examples @@ -55,7 +59,7 @@ public OnNPCTakeDamage(npcid, issuerid, Float:amount, WEAPON:weaponid, bodypart) ## Notes - This callback is called before the damage is actually applied to the NPC -- Returning `false` will prevent the damage from being applied +- Returning `false` will NOT prevent the damage from being applied - The `issuerid` parameter will be `INVALID_PLAYER_ID` if damage is not caused by player - Body parts use the same constants as `OnPlayerTakeDamage`