RedM Natives

SET_PED_AS_NO_LONGER_NEEDED

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Hash0x2595DD4236549CE3
Runtime nameSetPedAsNoLongerNeeded
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2595DD4236549CE3

Signature

void SET_PED_AS_NO_LONGER_NEEDED(Ped* ped);

Parameters

NameTypeDescription
pedPed*—

Returns void

Description

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Usage

Lua
local ped = SetPedAsNoLongerNeeded(ped)

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

// by hash
const ped = Citizen.invokeNative('0x2595DD4236549CE3', Citizen.pointerValueIntInitialized(ped));
C#
var ped = new OutputArgument();
Function.Call((Hash)0x2595DD4236549CE3, 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.