PedClient

setPedCapsule

SET_PED_CAPSULE0x364DF566EC833DE2

The 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.

SignatureJavaScript
setPedCapsule(ped: Ped, value: number): void
SignatureLua
setPedCapsule(ped: Ped, value: number)

Usage

JavaScript
setPedCapsule(ped, value);
Lua
setPedCapsule(ped, value)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
valuefloatnumbernumber

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

Open in the interactive natives reference