PedClient

setPedMinGroundTimeForStungun

SET_PED_MIN_GROUND_TIME_FOR_STUNGUN0xFA0675AB151073FA

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

SignatureJavaScript
setPedMinGroundTimeForStungun(ped: Ped, ms: number): void
SignatureLua
setPedMinGroundTimeForStungun(ped: Ped, ms: integer)

Usage

JavaScript
setPedMinGroundTimeForStungun(ped, ms);
Lua
setPedMinGroundTimeForStungun(ped, ms)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
msintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Ped will stay on the ground after being stunned for at lest ms time. (in milliseconds)

Reference

Namespace
Ped PED
In the game
void SET_PED_MIN_GROUND_TIME_FOR_STUNGUN(Ped ped, int ms)
Hash
0xFA0675AB151073FA

Open in the interactive natives reference