> For the complete documentation index, see [llms.txt](https://docs.shawnsscripting.com/shawns-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shawnsscripting.com/shawns-scripts/products/shawns-chat-v2/admwarn-for-illenium-appearance.md).

# AdmWarn for illenium-appearance

This is for [illenium-appearance](https://github.com/iLLeniumStudios/illenium-appearance):

Go to illenium-appearance > server > server.lua

Find the pedmenu command and replace it with this:

```
ESX = exports["es_extended"]:getSharedObject()

if Config.EnablePedMenu then
    lib.addCommand("pedmenu", {
        help = _L("commands.pedmenu.title"),
        params = {
            {
                name = "playerID",
                type = "number",
                help = "Target player's server id",
                optional = true
            },
        },
        restricted = Config.PedMenuGroup
    }, function(source, args)
        local target = source

        if args.playerID then
            local citizenID = Framework.GetPlayerID(args.playerID)
            if citizenID then
                target = args.playerID
            else
                lib.notify(source, {
                    title = _L("commands.pedmenu.failure.title"),
                    description = _L("commands.pedmenu.failure.description"),
                    type = "error",
                    position = Config.NotifyOptions.position
                })
                return
            end
        end

        TriggerClientEvent("illenium-appearance:client:openClothingShopMenu", target, true)

        TriggerEvent("shawn_rpchat:admwarn:forceskin", source, target)
    end)
end
```
