PedClient

removePedElegantly

REMOVE_PED_ELEGANTLY0xAC6D445B994DF95E

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

SignatureJavaScript
removePedElegantly(ped: Ped): void
SignatureLua
removePedElegantly(ped: Ped)
⚠
Known issue

The value of ped does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
removePedElegantly(ped);
Lua
removePedElegantly(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

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.

Judging purely from a quick disassembly, if the ped is in a vehicle, the ped will be deleted immediately. If not, it'll be marked as no longer needed. - very elegant..

Reference

Namespace
Ped PED
In the game
void REMOVE_PED_ELEGANTLY(Ped* ped)
Hash
0xAC6D445B994DF95E

Open in the interactive natives reference