RedM Natives

DELETE_PED

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

Hash0xCC0EF140F99365C5
Runtime nameDeletePed
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9614299DCB53E54B

Signature

void DELETE_PED(Ped* ped);

Parameters

NameTypeDescription
pedPed*—

Returns void

Description

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

Usage

Lua
local ped = DeletePed(ped)

-- always works, by hash
local ped = Citizen.InvokeNative(0xCC0EF140F99365C5, Citizen.PointerValueIntInitialized(ped))
JavaScript and C#
JavaScript
const ped = DeletePed(ped);

// by hash
const ped = Citizen.invokeNative('0xCC0EF140F99365C5', Citizen.pointerValueIntInitialized(ped));
C#
var ped = new OutputArgument();
Function.Call((Hash)0xCC0EF140F99365C5, ped);
// ped.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.