# Commands & Event Triggers

#### **Commands**

* **ExecuteCommand('wave')**
  * Triggers an emote or action labeled *Wave*.
  * Example usage within the script:

    ```lua
    {
      label = 'Wave',
      icon = 'fa-solid fa-hand-wave',
      action = function(parent, self)
        ExecuteCommand('wave')
      end
    }
    ```

#### **Client Events**

* **TriggerEvent("myClientEvent")**
  * A placeholder event for any client-side interaction you might add.
  * Example usage:

    ```lua
    TriggerEvent("myClientEvent", someData)
    ```

#### **Server Events**

* **TriggerServerEvent("myServerEvent")**
  * For server-side logic, such as database updates, logging, or job checks.
  * Example usage:

    ```lua
    TriggerServerEvent("myServerEvent", additionalData)
    ```
