RedM documentation
Murphy's Clothing
Advanced
API Documentation
This document provides comprehensive documentation for all exports and events available in murphy_clothing for use by developers in other scripts.
Table of Contents
- Client-Side Exports
- Server-Side Exports
- Client-Side Events
- Server-Side Events
- Callbacks
- Usage Examples
Client-Side Exports
Naked State Management
IsPlayerNaked()
Checks if the player is currently naked (no clothes equipped, only MP body visible).
ToggleNaked(notify)
Toggles between naked state and clothed state.
Parameters:
| Name | Type | Description |
|---|---|---|
| notify | boolean | If true, displays a notification to the player |
SetNaked(naked, notify)
Sets a specific naked state for the player.
Parameters:
| Name | Type | Description |
|---|---|---|
| naked | boolean | true to undress, false to dress |
| notify | boolean | If true, displays a notification to the player |
Clothing Information
GetEquippedCategories()
Returns a table of all currently equipped clothing categories with their model and texture data.
GetEquippedClothing()
Returns detailed information about all equipped clothing items.
IsClothingCategoryEquipped(category)
Checks if a specific clothing category is currently equipped.
Parameters:
| Name | Type | Description |
|---|---|---|
| category | string | The clothing category to check (e.g., "hats", "coats", "shirts_full") |
GetClothingInfo(category)
Returns detailed information about a specific clothing category if equipped.
Clothing Application
EquipMultipleClothes(clothesData, ped)
Equips multiple clothing items at once with support for model, texture (palette), and tint values.
Parameters:
| Name | Type | Description |
|---|---|---|
| clothesData | table | Table of clothing categories with model/texture/tint data |
| ped | number | (Optional) Ped entity to apply clothes to, defaults to PlayerPedId() |
Bandana/Mask Detection
IsBandanaEquipped()
Checks if the player has a bandana or mask equipped.
Temperature/Metabolism System
GetTemperatureProtection()
Returns the player's temperature protection data based on equipped clothing.
Server-Side Exports
Bandana/Mask Detection
IsBandanaEquipped(source)
Server-side check for bandana/mask equipment status.
Parameters:
| Name | Type | Description |
|---|---|---|
| source | number | Player server ID |
Temperature/Metabolism System
GetPlayerTemperatureProtection(source)
Server-side function to get a player's temperature protection data.
Client-Side Events
Wardrobe Mode
You can open the outfit list in wardrobe mode, where players can equip their saved outfits for free (no purchase required). This is perfect for housing, hotel rooms, or any changing area.
Clothing Loading
murphy_clothing:loadclothes
Triggers the loading of the player's current clothes from the database.
Naked State Management
murphy_clothing:toggleNaked
Toggles the player's naked state.
murphy_clothing:setNaked
Sets a specific naked state.
murphy_clothing:getNakedState
Gets the current naked state.
Clothing Application
murphy_clothes:clotheitem
Applies a complete outfit to a ped.
Parameters:
| Name | Type | Description |
|---|---|---|
| clothesTable | table | Table containing clothing data for each category |
| outfitId | string/number | The outfit ID |
| targetPed | number | (Optional) Target ped entity |
| charId | string/number | (Optional) Character ID |
murphy_clothes:itemclothes
Equips or unequips a single clothing category.
Parameters:
| Name | Type | Description |
|---|---|---|
| category | string | The clothing category (e.g., "hats", "coats") |
| model | number | The model index |
| texture | number/table | The texture index or table with palette/tint data |
murphy_clothes:EquipMultipleClothes
Event version of EquipMultipleClothes export.
murphy_clothes:Equip-UnequipCategory
Toggles a specific clothing category on/off.
Wearable States
murphy_clothes:applyWearable
Applies wearable state data (bodies_upper, bodies_lower variations).
Menu Management
murphy_clothes:OpenClothingMenu
Opens the clothing menu.
murphy_clothing:OpenClothesMenuCreator
Opens the clothing menu in creator mode.
murphy_clothing:ResetClothesMenuCreator
Resets the creator mode data.
murphy_clothing:SaveClothesCreator
Saves the current outfit from creator mode.
Body Parts
murphy:clothing:RemoveAllClothes
Removes all clothes except essential categories.
murphy_clothes:LoadBasSkin
Loads and caches the base MP body skin.
murphy_clothes:Loadlowerbody
Sets the lower body component in baseskin cache.
murphy_clothes:Loadupperbody
Sets the upper body component in baseskin cache.
Character ID Based Loading
murphy_clothes:ApplyClothesToCharid
Applies clothes to a ped using a character ID.
Bandana/Mask Events
murphy_clothes:CheckBandana
Triggers a check for bandana status.
murphy_clothes:BandanaStatus
Receives bandana status (listener event).
murphy_clothes:ToggleBandana
Triggered when bandana state changes. Also triggers syn_robbery:bandana for compatibility.
Temperature/Metabolism Events
murphy_clothes:GetTemperatureProtection
Requests temperature protection data.
murphy_clothes:TemperatureProtectionData
Receives temperature protection data (listener event).
murphy_clothes:OnClothingChanged
Triggered when any clothing category changes.
murphy_clothes:TemperatureUpdate
Triggered after clothing changes with updated temperature data.
Outfit Change Events
murphy_clothes:outfitchanged
Triggered when an outfit is changed/loaded.
Server-Side Events
Clothes Update
murphy_clothes:updateclothes
Updates the player's clothes in the database.
Callbacks
Murphy Clothing uses a custom callback system. Here are the available server callbacks:
murphy_clothing:GetCurrentClothes
Gets the current clothes for the player.
murphy_clothing:GetCurrentClothesCharid
Gets clothes for a specific character ID.
murphy_clothing:GetOutfit
Gets a specific outfit by ID.
murphy_clothing:GetCurrentOutfitList
Gets list of all saved outfits for the player.
murphy_clothing:GetWearable
Gets wearable state data for an outfit.
murphy_clothing:IsBandanaEquipped
Server-side callback to check bandana status.
murphy_clothing:GetPlayerTemperatureProtection
Gets temperature protection data from server.
Usage Examples
Example 1: Check and React to Bandana State
Example 2: Metabolism/Temperature Integration
Example 3: Apply Custom Outfit Programmatically
Example 4: Toggle Specific Clothing
Example 5: Get/Set Naked State for Medic/Hospital Scripts
Example 6: Load Clothes for Another Character (Admin/Staff)
Clothing Categories Reference
Here is a list of common clothing categories:
| Category | Description |
|---|---|
hats |
Hats |
hat_accessories |
Hat accessories |
masks |
Masks/Bandanas |
masks_large |
Large masks |
eyewear |
Glasses/Eyewear |
headwear |
Headwear |
coats |
Coats |
coats_closed |
Closed coats |
coats_heavy |
Heavy coats |
shirts_full |
Full shirts |
vests |
Vests |
suspenders |
Suspenders |
ponchos |
Ponchos |
cloaks |
Cloaks |
pants |
Pants |
skirts |
Skirts |
boots |
Boots |
boot_accessories |
Boot accessories |
chaps |
Chaps |
spats |
Spats |
gloves |
Gloves |
gunbelts |
Gun belts |
holsters_right |
Right holsters |
holsters_left |
Left holsters |
satchels |
Satchels |
neckwear |
Neckwear |
neckties |
Neckties |
neckerchiefs |
Neckerchiefs |
jewelry_rings_left |
Left rings |
jewelry_rings_right |
Right rings |
jewelry_bracelets |
Bracelets |
jewelry_necklaces |
Necklaces |
jewelry_earrings |
Earrings |
bodies_upper |
Upper body (MP Body) |
bodies_lower |
Lower body (MP Body) |
Temperature Configuration
The temperature system uses categories from Config.ClothingTemperature:
Protection levels are calculated based on the number of warm/cold items equipped as defined in Config.TemperatureProtection.
Notes
- All client exports should be called from client-side scripts only
- All server exports should be called from server-side scripts only
- The callback system is internal to murphy_clothing - use the provided events/exports for integration
- When applying clothes programmatically, ensure the model and texture indices exist in
MURPHY_ASSETS - Temperature protection is calculated in real-time when requested
Last updated: April 2, 2026