This guide explains how to create custom addon buttons and addon statistics for your Luxu Admin Panel. These features allow you to extend the admin panel with custom functionality specific to your server.

Table of Contents

  1. Addon Buttons
  2. Addon Statistics

Addon Buttons

Overview

Addon buttons are custom action buttons that appear in the Player Management panel when viewing a player. They allow you to execute custom logic when clicked, with the ability to interact with both client and server-side code.

Where they appear: Addon buttons are displayed in the Player Management panel when a player is selected.

Creating an Addon Button

Addon buttons are created in luxu_admin/config/custom_functions/client.lua using the RegisterAddonButton function.

Function Signature

RegisterAddonButton(name, label, icon, color, clientCallback, permission)

Parameters