Skip to main content

Mastering Your Clothing Script: config.lua Deep Dive

The Clothing Script offers a wealth of customization options via its config.lua file, typically found in resources/rs_clothing/config.lua. This guide will walk you through configuring every aspect to tailor the script perfectly to your server’s needs.
Always create a backup of your config.lua file before making significant changes to avoid losing your configuration.

Core System Setup

These settings form the foundational link with your ESX framework and control the script’s basic operational behaviors.

Custom ESX Event Prefixes

If your server uses custom ESX event prefixes, adjust these settings to ensure compatibility:

ESX Shared Object

The script needs to access the ESX shared object, typically handled by:
If you’re using a newer version of ESX that uses exports instead of events, you’ll need to modify this function accordingly.

Core Functionality Options

Configure the basic operational settings for the script:
Setting Config.Dimension = true creates a better user experience by isolating players while they change clothes, but requires OneSync Infinity to be enabled on your server.

Interface & Player Feedback

Customize how the script communicates with your players, from notifications to in-menu text.

Custom Notifications

Customize how notifications are displayed to players and integrate with your existing notification system:

Localization

Customize the text messages displayed to players:
To integrate with custom notification systems like pNotify, mythic_notify, or ox_lib, replace the Config.Notification function with the appropriate event trigger for your system.

Economy & Storefronts

Manage your in-game clothing economy, define store locations, and set up item availability and pricing.

Store Configuration

Define where clothing stores are located on the map. You can add multiple stores with different settings:
For finding precise coordinates, use the /coords command in-game if you have an admin resource installed, or use an online FiveM coordinate finder tool.

Item Configuration

Define clothing categories, set default prices, and create specific overrides for individual items:
Valid category IDs include: arms, tshirt_1, torso_1, pants_1, shoes_1, bags_1, chain_1, helmet_1, glasses_1, watches_1, bracelets_1, mask_1, ears_1, etc.Each category corresponds to a specific clothing component in the game. The item IDs (drawable IDs) must be valid for that component.

🚀 Pro Tips for Deep Customization

Take your clothing script setup to the next level with these advanced strategies:
  • Optimize Performance: If you have numerous clothing stores, tweak DrawDistance in Config.Locations to balance visibility and resource load.
  • Boost Economy: Leverage society payment options (GiveOutfitOwnerMoney, GiveBuyClothingMoney) to create dynamic revenue streams for player-run businesses or server funds.
  • Create Exclusive Stores: Design job-specific or gang-affiliated boutiques by using AccesableFor in Config.Categories to restrict item purchases to certain groups.
  • Strategic Pricing Models: Implement varied pricing for items and categories to influence your server’s economy and player spending habits.
  • Theme Your Stores: Use distinct blip icons, names, and marker colors for different store brands or types (e.g., high-end fashion, workwear, tactical gear).
Remember to restart the resource (e.g., restart rs_clothing) or your entire FiveM server after making configuration changes for them to take effect.