/// <summary> /// Gets the id that a player is holding in their hands or inventory. /// Order: Hands > ID slot > PDA in ID slot /// </summary> /// <param name="player">The player to check in.</param> /// <param name="id">The id card component.</param> /// <returns>true if found, false otherwise.</returns> public static bool TryGetHeldId(this EntityUid player, [NotNullWhen(true)] out IdCardComponent?id) { return((id = player.GetHeldId()) != null); }