Store vehicles in parsed json

This commit is contained in:
Tixx
2025-01-18 22:05:56 +01:00
parent fbce8a946e
commit 2f577a2358
8 changed files with 59 additions and 45 deletions

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