Lua: Add MP.PrintRaw

This commit is contained in:
Lion Kortlepel
2021-09-19 01:20:17 +02:00
parent dd70e88e4c
commit 1ff5107707
3 changed files with 11 additions and 7 deletions

View File

@@ -234,3 +234,12 @@ bool LuaAPI::MP::IsPlayerGuest(int ID) {
return false;
}
}
void LuaAPI::MP::PrintRaw(sol::variadic_args Args) {
std::string ToPrint = "";
for (const auto& Arg : Args) {
ToPrint += LuaToString(static_cast<const sol::object>(Arg));
ToPrint += "\t";
}
Application::Console().WriteRaw(ToPrint);
}