RVT Armário

Installation

From download to first test in a few steps.

  1. Download the resource

    In My account, download the RVT Armário zip. Your license key comes in the token.lua file at the root of the folder (Config.License = "..."), filled in by the store when you download. It is used on the server only: do not edit it.

  2. Place the folder on your server

    Extract the rvt_clothes folder into resources, keeping its name. The resource data folder must be writable by the server.

  3. Choose the framework

    Open config.lua. The default is 'standalone': built-in JSON storage and no framework. To integrate your base, pick creative (vRP), qbox, qb or esx; 'auto' detects the started framework, but prefer an explicit choice when more than one is running. Config.Resources holds each framework's resource name. Change:

    config.lua
    Config.Framework = 'standalone'   -- default. Others: auto, creative (vRP), qbox, qb, esx
    Config.Storage   = 'json'
    Config.Money     = { Mode = 'auto', Account = 'bank' }
    -- Mode: auto, standalone, framework, ox_inventory
    -- Account: bank or cash (QBCore/QBox); bank or money (ESX)
  4. Start the resource in server.cfg

    Keep the order: framework first, then optional helpers, then the resource.

    server.cfg
    set onesync on
    
    # Framework first (only the one you use; standalone needs none), then optional helpers, then the wardrobe
    ensure qbx_core            # or qb-core / es_extended / vrp
    ensure ox_lib              # optional: notifications
    ensure screenshot-basic    # optional: market listing photos
    ensure rvt_clothes
  5. Grant the admin permission

    Admin commands require the rvt_clothes.admin permission.

    server.cfg
    # Admin commands
    add_ace group.admin rvt_clothes.admin allow
    add_principal identifier.license:abc123 group.admin
    
    # Optional: extra slots for a group (see Config.PremiumSlots)
    add_ace group.vip rvt_clothes.premium allow
  6. Restart and test

    • Restart the server and look for the [rvt_clothes] line in the console showing the detected framework.
    • Join with a character and use /armario.
    • Save your outfit in a slot, change clothes and apply the slot.
    • Rejoin the server: the last outfit should be restored.

OneSync is required

Without OneSync enabled (set onesync on) the resource does not start.

Updating

Back up the data folder, your config.lua and any files you adapted in open/, shared/ and locales/. Replace the other files with the new version (token.lua comes filled in with the new download, unedited), reapply your settings and restart the resource. Never edit data/state.json while the resource is running: the next save overwrites your edit.