setPedDucking
SET_PED_DUCKING0x030983CA930B692DThe 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.
setPedDucking(ped: Ped, toggle: boolean): voidsetPedDucking(ped: Ped, toggle: boolean)Usage
JavaScript
setPedDucking(ped, toggle);Lua
setPedDucking(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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