DarkRP.onHitFailed

From DarkRP
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of hooks.

Syntax[edit]

DescriptionWhen a hit fails for some reason
Syntax
onHitFailed(Player hitman, Player target, string reason)
ReturnsNone.

Arguments

  • hitman (Player)
  • The hitman performing the hit

  • target (Player)
  • The target of the current hit

  • reason (string)
  • why the hit failed