SearchByName
Shared
Player|table|nil Lyn.Player.SearchByName(string name)FunctionDescription
Searches for players by name (case-insensitive, partial match).
Params
stringname
Returns
Single Player if one match, table of Players if multiple matches, nil if no match.
Example:
local result = Lyn.Player.SearchByName("john")
if not result then
print("No players found")
elseif istable(result) then
print("Multiple players found:", #result)
else
print("Found:", result:Nick())
end