Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 500 Bytes

DeleteVehicle.md

File metadata and controls

22 lines (18 loc) · 500 Bytes
ns
VEHICLE

DELETE_VEHICLE

// 0xEA386986E786A54F 0x9803AF60
void DELETE_VEHICLE(Vehicle* vehicle);
Deletes a vehicle.  
The vehicle must be a mission entity to delete, so call this before deleting: SET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true);  
eg how to use:  
SET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true);  
DELETE_VEHICLE(&vehicle);  
Deletes the specified vehicle, then sets the handle pointed to by the pointer to NULL.  

Parameters

  • vehicle: