The Lab
ENTITY native

SET_PED_AS_NO_LONGER_NEEDED

returns void1 parambuild 1207

Releases the ped so the game can clean it up when appropriate.

Signature

C
void SET_PED_AS_NO_LONGER_NEEDED(Ped* ped); // 0x2595DD4236549CE3 b1207

Parameters

#NameType
1pedPed* (out pointer)

Facts

Facts about SET_PED_AS_NO_LONGER_NEEDED
Name
SET_PED_AS_NO_LONGER_NEEDED
Hash
0x2595DD4236549CE3
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local ped = Citizen.InvokeNative(0x2595DD4236549CE3, -- SET_PED_AS_NO_LONGER_NEEDED
  Citizen.PointerValueInt() -- Ped* ped
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x2595DD4236549CE3", // SET_PED_AS_NO_LONGER_NEEDED
  Citizen.pointerValueInt() // Ped* ped
);
console.log(ped)
C#
var pedArg = new OutputArgument();
Function.Call((Hash)0x2595DD4236549CE3, // SET_PED_AS_NO_LONGER_NEEDED
  pedArg // Ped* ped
);
int ped = pedArg.GetResult<int>();
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.