Los Angeles Mayor Antonio Villaraigosa has agreed to pay nearly $42,000 in fines to resolve state and city investigations into his practice of accepting tickets to sports events, concerts and pricey entertainment activities without reporting them as gifts, officials said Friday.

In a pact drafted by officials with the state Fair Political Practices Commission and the city Ethics Commission, Villaraigosa admitted that he failed to report free tickets to 34 events during his first five years in office, including Los Angeles Lakers games and concerts at such venues as Gibson Amphitheater.

Villaraigosa faced a maximum fine of more than $167,000 but was offered a smaller amount because investigators concluded that his violations were unintentional and that he made a “good faith” attempt to comply with the law, according to the agreement.

Villaraigosa highlighted those comments but insisted that he was “fully accountable” for his actions. “It is my responsibility to make sure I act in strict compliance with the applicable rules,” he said in a one-page statement.