PedClient

isPedBeingStunned

IS_PED_BEING_STUNNED0x4FBACCE3B4138EE8

The GTA V native IS_PED_BEING_STUNNED of the PED namespace, as LS:MP client scripts call it: the global function isPedBeingStunned, in JavaScript and in Lua.

SignatureJavaScript
isPedBeingStunned(ped: Ped, p1: number): boolean
SignatureLua
isPedBeingStunned(ped: Ped, p1: integer): boolean

Usage

JavaScript
const result = isPedBeingStunned(ped, p1);
Lua
local result = isPedBeingStunned(ped, p1)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1intnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p1 is always 0

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_BEING_STUNNED(Ped ped, int p1)
Hash
0x4FBACCE3B4138EE8

Open in the interactive natives reference