DELETE_VEHICLE
Deletes the vehicle pointed to by vehicle.
The script usually needs to own the entity; call SET_ENTITY_AS_MISSION_ENTITY first if needed.
Signature
void DELETE_VEHICLE(Vehicle* vehicle); // 0xE20A909D8C4A70F8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | vehicle | Vehicle* (out pointer) |
Facts
| Name | DELETE_VEHICLE |
|---|---|
| Hash | 0xE20A909D8C4A70F8 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local vehicle = Citizen.InvokeNative(0xE20A909D8C4A70F8, -- DELETE_VEHICLE
Citizen.PointerValueInt() -- Vehicle* vehicle
)
print(vehicle)const vehicle = Citizen.invokeNative("0xE20A909D8C4A70F8", // DELETE_VEHICLE
Citizen.pointerValueInt() // Vehicle* vehicle
);
console.log(vehicle)var vehicleArg = new OutputArgument();
Function.Call((Hash)0xE20A909D8C4A70F8, // DELETE_VEHICLE
vehicleArg // Vehicle* vehicle
);
int vehicle = vehicleArg.GetResult<int>();Related VEHICLE natives
- _DELETE_VEHICLE_LANTERNS
- GET_VEHICLE_TRAILER_VEHICLE
- DELETE_ALL_TRAINS
- DELETE_MISSION_TRAIN
- DISABLE_VEHICLE_WEAPON
- _ARE_ANY_VEHICLE_WHEELS_DESTROYED
- _ATTACH_DRAFT_VEHICLE_HARNESS_PED
- _BREAK_LOCKS_ON_VEHICLE
- _BREAK_OFF_VEHICLE_WHEEL
- _BREAK_VEHICLE_STRAPS
- _CREATE_DRAFT_VEHICLE
- _DETACH_DRAFT_VEHICLE_HARNESS_FROM_INDEX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.