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

Server Side

Exports & Events

GetAppearance (server)

Returns the player's saved appearance from the database.

local appearance = exports['op-clothing']:GetAppearance(src)

SetAppearance (server)

Saves and applies a full appearance to the player. Pass a pedNetId to target a specific ped.

exports['op-clothing']:SetAppearance(src, appearance, pedNetId)

SetClothing (server)

Applies only the clothing part of an appearance to the player.

exports['op-clothing']:SetClothing(src, appearance, pedNetId)

SaveAppearance (server)

Persists an appearance for the player without re-applying it.


GetOutfits

Returns the player's saved outfits.


OpenShop

Opens a clothing shop on the player's client (aliases: OpenClothingShop, OpenBarberShop, OpenTattooShop).


OpenCharacterCreator (server)

Opens the character creator on the player's client.


OpenJobLocker (server)

Opens a job locker on the player's client.


CanOpenJobLocker

Returns a boolean - whether the player may open the given locker.


GetShop / GetAllShops

Returns a single shop config, or all shops.


GetJobLocker / GetAllJobLockers

Returns a single locker config, or all lockers.


Custom ped permissions

Grant, revoke or check a player's permission to use custom peds.

Server Events

op-clothing:server:characterCreated

Fired server-side when a player finishes the character creator.


op-clothing:server:purchased

Fired server-side after a successful purchase.

Last updated