For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client Side

Exports & Events

These are the native op-clothing exports and events. The optional ped argument defaults to the local player when omitted.

OpenClothingShop

Opens a clothing shop by id.

exports['op-clothing']:OpenClothingShop(shopId)

OpenBarber

Opens a barber shop by id (alias: OpenBarberShop).

exports['op-clothing']:OpenBarber(shopId)

OpenTattooShop

Opens a tattoo shop by id.

exports['op-clothing']:OpenTattooShop(shopId)

OpenCharacterCreator

Opens the character creator. opts is optional.


OpenWardrobe

Opens the free wardrobe (owned outfits + full catalog, no prices). opts is optional.


GetAppearance

Returns the ped's full appearance table.


SetAppearance

Applies a full appearance table to the ped.


SetPedSkin

Applies a full appearance table (ped-first argument).


SetClothing

Applies only the clothing part of an appearance, keeping the face/hair.


GetPlayerClothing

Returns a clothing-only payload (components + props), re-applicable through ApplyOutfit.


SetPlayerClothing

Merges a clothing-only payload onto the ped's current look.


ApplyOutfit

Merges an outfit onto the ped's current look (keeps face, hair, heritage).


SaveAppearance

Persists the ped's current look to the database.


ReloadAppearance

Re-pulls the saved look from the server and re-applies it (re-attaches tattoos/decorations).


IsMenuOpen

Returns a boolean - whether any op-clothing menu is currently open.


OpenJobLocker

Opens a job locker by its id.


OpenJobLockerByJob

Opens the nearest accessible locker for the given job. Returns a boolean.


Client Events

op-clothing:client:menuOpened

Fired whenever any clothing/barber/tattoo/creator menu becomes visible.


op-clothing:client:menuClosed

Fired whenever the menu is dismissed (confirm or cancel).


op-clothing:client:appearanceLoaded

Fired after the saved look is (re)applied on spawn or ReloadAppearance.


op-clothing:client:characterCreated

Fired after the character creator finishes.


op-clothing:client:purchased

Fired after a successful clothing purchase.


Triggerable client events

Drive op-clothing from another resource without grabbing the export reference.

Last updated