📱
Shawn's Scripting
  • Overview
    • 💡Documentation
  • Products
    • 🛠️Shawn's Chat V2
      • ✔️Dependencies
      • 🧠Installation
      • 📝Admin Groups
      • 🔨Ace Perms Usage
      • ESX Notify To Overextended Notify
      • AdmWarn for ox_inventory giveitem
      • AdmWarn for fivem_appearance
      • AdmWarn for illenium-appearance
      • AdmWarn for /car
Powered by GitBook
On this page
  1. Products
  2. Shawn's Chat V2

AdmWarn for illenium-appearance

PreviousAdmWarn for fivem_appearanceNextAdmWarn for /car

Last updated 2 months ago

This is for :

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

🛠️
illenium-appearance