mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-16 13:23:26 +00:00
Update TServer.cpp
This commit is contained in:
committed by
Anonymous275
parent
fe4a1b28b5
commit
57fc0ea74d
@@ -235,7 +235,7 @@ void TServer::ParseVehicle(TClient& c, const std::string& Pckt, TTCPServer& TCPS
|
|||||||
VID = stoi(vid);
|
VID = stoi(vid);
|
||||||
}
|
}
|
||||||
if (PID != -1 && VID != -1 && PID == c.GetID()) {
|
if (PID != -1 && VID != -1 && PID == c.GetID()) {
|
||||||
Data = Packet.substr(Packet.find(':',4)+1);
|
Data = Data.substr(Data.find('{'));
|
||||||
TriggerLuaEvent("onVehicleReset", false, nullptr,
|
TriggerLuaEvent("onVehicleReset", false, nullptr,
|
||||||
std::make_unique<TLuaArg>(TLuaArg {{ c.GetID(), VID, Data}}),
|
std::make_unique<TLuaArg>(TLuaArg {{ c.GetID(), VID, Data}}),
|
||||||
false);
|
false);
|
||||||
|
|||||||
Reference in New Issue
Block a user