diff --git a/src/lua/functions/creatures/player/player_functions.cpp b/src/lua/functions/creatures/player/player_functions.cpp index c229af5dfeb..0ebfc4c9918 100644 --- a/src/lua/functions/creatures/player/player_functions.cpp +++ b/src/lua/functions/creatures/player/player_functions.cpp @@ -4157,9 +4157,9 @@ int PlayerFunctions::luaPlayerKV(lua_State* L) { return 1; } -int PlayerFunctions::luaPlayerTakeScreenshot(lua_State* L) { - // player:takeScreenshot(screenshotType) - std::shared_ptr player = getUserdataShared(L, 1); +int PlayerFunctions::luaSendPlayerTakeScreenshot(lua_State* L) { + // player:sendTakeScreenshot(screenshotType) + const auto& player = getUserdataShared(L, 1); if (!player) { lua_pushnil(L); return 1;