From b4e478f9f2078c4fc02f04c26159524664580e5b Mon Sep 17 00:00:00 2001 From: Omar <132762376+d-3fault@users.noreply.github.com> Date: Sat, 21 Mar 2026 20:51:53 +0000 Subject: [PATCH] Update OnNPCGiveDamage.md --- frontend/docs/scripting/callbacks/OnNPCGiveDamage.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/docs/scripting/callbacks/OnNPCGiveDamage.md b/frontend/docs/scripting/callbacks/OnNPCGiveDamage.md index a31fa45a29c..5468dd45d18 100644 --- a/frontend/docs/scripting/callbacks/OnNPCGiveDamage.md +++ b/frontend/docs/scripting/callbacks/OnNPCGiveDamage.md @@ -21,7 +21,11 @@ This callback is called when an NPC gives damage to a player. ## 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 @@ -47,7 +51,7 @@ public OnNPCGiveDamage(npcid, damagedid, Float:amount, WEAPON:weaponid, bodypart ## Notes - This callback is called before the damage is actually applied to the player -- Returning `false` will prevent the damage from being applied +- Returning `false` will NOT prevent the damage from being applied - The `bodypart` parameter uses the same values as `OnPlayerTakeDamage` ## Related Functions