# Server

There are no server exports. These are the server event and callback other scripts use.

For client exports see [Client](./client.mdx).

## Appearance [#appearance]
<div className="flex flex-col gap-2 p-3 rounded-xl border bg-fd-card text-fd-card-foreground not-prose">
    ### illenium-appearance:server:saveAppearance [#illenium-appearanceserversaveappearance]
    <p className="text-fd-muted-foreground text-sm">Saves the appearance as the player's active one. Trigger it from the client, the player who triggers it is the one saved.</p>
    ```lua
    ---@param appearance table Full appearance
    TriggerServerEvent('illenium-appearance:server:saveAppearance', appearance)
    ```
</div>
<br />
<div className="flex flex-col gap-2 p-3 rounded-xl border bg-fd-card text-fd-card-foreground not-prose">
    ### illenium-appearance:server:getAppearance [#illenium-appearanceservergetappearance]
    <p className="text-fd-muted-foreground text-sm">ox_lib callback. Returns the player's saved appearance, or the one saved for <code>model</code> (QB and ox only, ESX keeps one appearance).</p>
    ```lua
    ---@param model? string Model name, defaults to the active appearance
    ---@return table? appearance
    local appearance = lib.callback.await('illenium-appearance:server:getAppearance', false)
    ```
</div>
