Update TServer.cpp

This commit is contained in:
Anonymous275 authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent fe4a1b28b5
commit 57fc0ea74d
1 file changed
+1 -1
+1 -1
View File
@@ -235,7 +235,7 @@ void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TTCPServer& TCPS
VID = stoi(vid);
}
if (PID != -1 && VID != -1 && PID == c.GetID()) {
Data = Packet.substr(Packet.find(':',4)+1);
Data = Data.substr(Data.find('{'));
TriggerLuaEvent("onVehicleReset", false, nullptr,
std::make_unique<TLuaArg>(TLuaArg {{ c.GetID(), VID, Data}}),
false);