Store vehicles in parsed json

This commit is contained in:
Tixx committed 2025-01-25 22:16:06 +01:00
1 parent fbce8a946e
commit 2f577a2358
8 files changed
+59 -45

No files matched your search

+1 -1
View File
@@ -682,7 +682,7 @@ sol::table TLuaEngine::StateThreadData::Lua_GetPlayerVehicles(int ID) {
sol::state_view StateView(mState);
sol::table Result = StateView.create_table();
for (const auto& v : VehicleData) {
Result[v.ID()] = v.Data().substr(3);
Result[v.ID()] = v.DataAsPacket(Client->GetRoles(), Client->GetName(), Client->GetID()).substr(3);
}
return Result;
} else