mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-15 03:04:55 +00:00
Json vehicle state and apply paint packet (#416)
Converts the vehicle stored client side from a raw string to parsed json data. This allows us to more easily edit the vehicle state serverside, which I've started using in this PR for updating the state after a paint packet. --- By creating this pull request, I understand that code that is AI generated or otherwise automatically generated may be rejected without further discussion. I declare that I fully understand all code I pushed into this PR, and wrote all this code myself and own the rights to this code.
This commit is contained in:
+1
-1
@@ -974,7 +974,7 @@ bool TNetwork::SyncClient(const std::weak_ptr<TClient>& c) {
|
||||
res = false;
|
||||
return false;
|
||||
}
|
||||
res = Respond(*LockedClient, StringToVector(v.Data()), true, true);
|
||||
res = Respond(*LockedClient, StringToVector(v.DataAsPacket(client->GetRoles(), client->GetName(), client->GetID())), true, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user