# ENTITY::SET_PED_AS_NO_LONGER_NEEDED

- **Hash:** `0x2595DD4236549CE3`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetPedAsNoLongerNeeded`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/SET_PED_AS_NO_LONGER_NEEDED

## Signature

```c
void SET_PED_AS_NO_LONGER_NEEDED(Ped* ped);
```

## Parameters

- `ped` (`Ped*`)

## Returns

`void`

## Description

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

## Usage

### Lua

```lua
local ped = SetPedAsNoLongerNeeded(ped)

-- always available, by hash
local ped = Citizen.InvokeNative(0x2595DD4236549CE3, Citizen.PointerValueIntInitialized(ped))
```

### JavaScript

```js
const ped = SetPedAsNoLongerNeeded(ped);

// by hash
const ped = Citizen.invokeNative('0x2595DD4236549CE3', Citizen.pointerValueIntInitialized(ped));
```

### C#

```csharp
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.*
