setPedCapsule
SET_PED_CAPSULE0x364DF566EC833DE2The GTA V native SET_PED_CAPSULE of the PED namespace, as LS:MP client scripts call it: the global function setPedCapsule, in JavaScript and in Lua.
setPedCapsule(ped: Ped, value: number): voidsetPedCapsule(ped: Ped, value: number)Usage
JavaScript
setPedCapsule(ped, value);Lua
setPedCapsule(ped, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
value | float | number | number |
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.
Overrides the ped's collision capsule radius for the current tick.
Must be called every tick to be effective.
Setting this to 0.001 will allow warping through some objects.
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_CAPSULE(Ped ped, float value)- Hash
0x364DF566EC833DE2