Exports

  1. "openMenu" - Opens the menu of the target, this can be used both Server & Client Sided. Note: If using on the server, you need to state a target to open the menu on.

Example Usage (Lua) [Client]:

local skinmenu = exports['trase-skin']

local OpenSkinMenu = WarMenu.Button('Skin Menu')
if (OpenSkinMenu) then
    skinmenu:openMenu() -- Opens Skin Menu
    WarMenu.CloseMenu() -- Closes Previous Menu
end

2. "maxOutfits" - Returns the amount of the most outfits the target is permitted to have.

Example Usage (Lua) [Server]:

local skinmenu = exports['trase-skin']

RegisterCommand('maxOutfits', function(source)
    local src = source
    if not src then return end

    print(skinmenu:maxOutfits(src))
end)

Last updated