mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
Lua: Add MP.PrintRaw
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user