Unsuitable Clothing & Clothing Hashes via a Script
Enabling or Disabling Unsuitable Clothing Check
You can enable or disable the unsuitable clothing check by setting the Config.EnableUnsuitableClothingCheck
option in the config.lua
file.
Defining Unsuitable Clothing
You can define unsuitable clothing for both extreme heat and extreme cold conditions. The clothing items should be specified by their drawable variation hashes or names.
Getting Clothing Hashes
Using Ped Component Variations
Each ped component (such as tops, pants, etc.) has an ID, drawable, and texture variation. You can retrieve the drawable variation for a specific component using the following method:
Step-by-Step Guide
Change the player's clothing: Use a development tool such as the FiveM Native Trainer or a similar resource that allows you to view and change player clothing.
Use the script: Run the following script to get the drawable variation for the desired component.
Example Script
You can add this script to your client-side code to print the drawable variations of different components:
Output Example
When you run the above script, it will print the drawable and texture variations for each component:
Customizing Unsuitable Clothing Definitions
You can define unsuitable clothing using the drawable variations retrieved from the script above. Here's how you can update the config.lua
with these values:
Last updated