AdmWarn for illenium-appearance

This is for 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

Last updated