# ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED

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

## Signature

```c
void SET_OBJECT_AS_NO_LONGER_NEEDED(Object* object);
```

## Parameters

- `object` (`Object*`)

## Returns

`void`

## Description

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

## Usage

### Lua

```lua
local object = SetObjectAsNoLongerNeeded(object)

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

### JavaScript

```js
const object = SetObjectAsNoLongerNeeded(object);

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

### C#

```csharp
var object = new OutputArgument();
Function.Call((Hash)0x3AE22DEB5BA5A3E6, object);
// object.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.*
