SET_PED_AS_NO_LONGER_NEEDED
Releases the ped so the game can clean it up when appropriate.
Signature
void SET_PED_AS_NO_LONGER_NEEDED(Ped* ped); // 0x2595DD4236549CE3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped* (out pointer) |
Facts
| 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.
local ped = Citizen.InvokeNative(0x2595DD4236549CE3, -- SET_PED_AS_NO_LONGER_NEEDED
Citizen.PointerValueInt() -- Ped* ped
)
print(ped)const ped = Citizen.invokeNative("0x2595DD4236549CE3", // SET_PED_AS_NO_LONGER_NEEDED
Citizen.pointerValueInt() // Ped* ped
);
console.log(ped)var pedArg = new OutputArgument();
Function.Call((Hash)0x2595DD4236549CE3, // SET_PED_AS_NO_LONGER_NEEDED
pedArg // Ped* ped
);
int ped = pedArg.GetResult<int>();Related ENTITY natives
- SET_ENTITY_AS_NO_LONGER_NEEDED
- SET_OBJECT_AS_NO_LONGER_NEEDED
- SET_VEHICLE_AS_NO_LONGER_NEEDED
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_COORDS_NO_OFFSET
- SET_ENTITY_NO_COLLISION_ENTITY
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- SET_CAN_AUTO_VAULT_ON_ENTITY
- SET_CAN_CLIMB_ON_ENTITY
- SET_ENTITY_ALPHA
- SET_ENTITY_ALWAYS_PRERENDER
- SET_ENTITY_CAN_BE_DAMAGED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.