PedClient

setPedDucking

SET_PED_DUCKING0x030983CA930B692D

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

SignatureJavaScript
setPedDucking(ped: Ped, toggle: boolean): void
SignatureLua
setPedDucking(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedDucking(ped, toggle);
Lua
setPedDucking(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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.

This is the SET_CHAR_DUCKING from GTA IV, that makes Peds duck. This function does nothing in GTA V. It cannot set the ped as ducking in vehicles, and isPedDucking will always return false.

Reference

Namespace
Ped PED
In the game
void SET_PED_DUCKING(Ped ped, BOOL toggle)
Hash
0x030983CA930B692D

Open in the interactive natives reference