{"hash":"0xE20A909D8C4A70F8","ns":"VEHICLE","name":"DELETE_VEHICLE","slug":"DELETE_VEHICLE","official":true,"named":true,"luaName":"DeleteVehicle","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"vehicle","type":"Vehicle*"}],"summary":"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…","descriptions":[{"source":"alloc8or","format":"text","body":"Deletes a vehicle.\nThe vehicle must be a mission entity to delete, so call this before deleting: SET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true);\n\neg how to use:\nSET_ENTITY_AS_MISSION_ENTITY(vehicle, true, true);\nDELETE_VEHICLE(&vehicle);\n\nDeletes the specified vehicle, then sets the handle pointed to by the pointer to NULL."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xEA386986E786A54F","gtaJhash":"0x9803AF60","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/DELETE_VEHICLE","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/DELETE_VEHICLE.md","snippets":{"lua":"local vehicle = DeleteVehicle(vehicle)","luaInvoke":"local vehicle = Citizen.InvokeNative(0xE20A909D8C4A70F8, Citizen.PointerValueIntInitialized(vehicle))","js":"const vehicle = DeleteVehicle(vehicle);","jsInvoke":"const vehicle = Citizen.invokeNative('0xE20A909D8C4A70F8', Citizen.pointerValueIntInitialized(vehicle));","csharp":"var vehicle = new OutputArgument();\nFunction.Call((Hash)0xE20A909D8C4A70F8, vehicle);\n// vehicle.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}