SocketIO work

This commit is contained in:
Anonymous275
2021-02-26 22:16:08 +02:00
committed by Anonymous275
parent 57fc0ea74d
commit aadcd1abe5
2 changed files with 8 additions and 11 deletions

View File

@@ -11,6 +11,7 @@
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
namespace json = rapidjson;
TServer::TServer(int argc, char** argv) {
@@ -234,6 +235,7 @@ void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TTCPServer& TCPS
PID = stoi(pid);
VID = stoi(vid);
}
if (PID != -1 && VID != -1 && PID == c.GetID()) {
Data = Data.substr(Data.find('{'));
TriggerLuaEvent("onVehicleReset", false, nullptr,