add back car deletion

This commit is contained in:
Lion Kortlepel
2024-09-18 16:46:11 +02:00
parent 0cc73e70c9
commit 3068a0e5c4
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -657,6 +657,8 @@ void TNetwork::OnDisconnect(const std::weak_ptr<TClient>& ClientPtr) {
} // End Vehicle Data Lock Scope
for (auto& v : VehicleData) {
LuaAPI::MP::Engine->ReportErrors(LuaAPI::MP::Engine->TriggerEvent("onVehicleDeleted", "", c.GetID(), v.ID()));
Packet = "Od:" + std::to_string(c.GetID()) + "-" + std::to_string(v.ID());
SendToAll(&c, StringToVector(Packet), false, true);
}
Packet = ("L") + c.GetName() + (" left the server!");
SendToAll(&c, StringToVector(Packet), false, true);