DELETE_OBJECT
Deletes the object referenced by the pointer and clears the handle.
Only works on objects the script owns, so mark world objects as mission entities first.
Signature
void DELETE_OBJECT(Object* object); // 0x931914268722C263 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | object | Object* (out pointer) |
Facts
| Name | DELETE_OBJECT |
|---|---|
| Hash | 0x931914268722C263 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local objectOut = Citizen.InvokeNative(0x931914268722C263, -- DELETE_OBJECT
Citizen.PointerValueInt() -- Object* object
)
print(objectOut)const objectOut = Citizen.invokeNative("0x931914268722C263", // DELETE_OBJECT
Citizen.pointerValueInt() // Object* object
);
console.log(objectOut)var objectOutArg = new OutputArgument();
Function.Call((Hash)0x931914268722C263, // DELETE_OBJECT
objectOutArg // Object* object
);
int objectOut = objectOutArg.GetResult<int>();Related OBJECT natives
- DOES_OBJECT_OF_TYPE_EXIST_AT_COORDS
- DOES_PICKUP_OBJECT_EXIST
- DOES_RAYFIRE_MAP_OBJECT_EXIST
- _DAMAGE_OBJECT_FRAGMENT_BY_INDEX
- _GET_LIGHT_INTENSITY_FROM_OBJECT
- _GET_OBJECT_FRAGMENT_COUNT
- _GET_OBJECT_LIGHT_INTENSITY
- _HIDE_PICKUP_OBJECT
- _RESET_OBJECT_VELOCITY
- _SET_LIGHT_INTENSITY_FOR_OBJECT
- _SET_LIGHT_SCATTERING_DISABLED_FOR_OBJECT
- _SET_LIGHT_TRANSLUCENCY_FOR_OBJECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.