PedClient

deletePed

DELETE_PED0x9614299DCB53E54B

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

SignatureJavaScript
deletePed(ped: Ped): void
SignatureLua
deletePed(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
deletePed(ped);
Lua
deletePed(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.

Deletes the specified ped, then sets the handle pointed to by the pointer to NULL.

Reference

Namespace
Ped PED
In the game
void DELETE_PED(Ped* ped)
Hash
0x9614299DCB53E54B

Open in the interactive natives reference