TasksClient

isPedInWrithe

IS_PED_IN_WRITHE0xDEB6D52126E7D640

The GTA V native IS_PED_IN_WRITHE of the TASK namespace, as LS:MP client scripts call it: the global function isPedInWrithe, in JavaScript and in Lua.

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

Usage

JavaScript
const result = isPedInWrithe(ped);
Lua
local result = isPedInWrithe(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.

This native checks if a ped is on the ground, in pain from a (gunshot) wound.
Returns true if the ped is in writhe, false otherwise.

Reference

Namespace
Tasks TASK
In the game
BOOL IS_PED_IN_WRITHE(Ped ped)
Hash
0xDEB6D52126E7D640

Open in the interactive natives reference