fix MP.HttpGET (was not passing contentType)

This commit is contained in:
Lion Kortlepel
2021-10-08 08:44:20 +02:00
parent 577d4c429d
commit c4d6aab08b
2 changed files with 2 additions and 1 deletions

View File

@@ -282,6 +282,7 @@ void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TNetwork& Networ
c.SetUnicycleID(-1);
}
Network.SendToAll(nullptr, Packet, true, true);
// TODO: should this trigger on all vehicle deletions?
LuaAPI::MP::Engine->ReportErrors(LuaAPI::MP::Engine->TriggerEvent("onVehicleDeleted", "", c.GetID(), VID));
c.DeleteCar(VID);
beammp_debug(c.GetName() + (" deleted car with ID ") + std::to_string(VID));