PedClient

isPedShooting

IS_PED_SHOOTING0x34616828CD07F1A1

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

SignatureJavaScript
isPedShooting(ped: Ped): boolean
SignatureLua
isPedShooting(ped: Ped): boolean

Usage

JavaScript
const result = isPedShooting(ped);
Lua
local result = isPedShooting(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

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.

Returns whether the specified ped is shooting.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_SHOOTING(Ped ped)
Hash
0x34616828CD07F1A1

Open in the interactive natives reference