[Server] Add Players.size() to Lua API

new-script-api
Koncord 7 years ago
parent 3495fd43f4
commit 14d47213ef

@ -18,6 +18,10 @@ void Players::Init(LuaState &lua)
for (shared_ptr<Player> player : store)
func(player);
});
playersTable.set_function("size", [](){
return store.size();
});
}

Loading…
Cancel
Save