Events / Exports

Create Character

The character creation event varies from config. you can edit them in config.events

By default, it is qb-clothes:client:CreateFirstCharacter for QB and tgiann-clothing:esx:createNew for ESX.

If the config.autoOpenCreateMenu setting is enabled, this event will be triggered automatically when the character is loaded(true for esx by default).

-- QB
TriggerEvent("qb-clothes:client:CreateFirstCharacter")
-- ESX
TriggerEvent("tgiann-clothing:esx:createNew")

openMenu

Open skin menu

exports["tgiann-clothing"]:openMenu({
    allowedMenus = { [0] = true, [1] = false, [2] = true, [3] = false [4] = false },
    clotheList = nil,
    adminMode = false
})

Parameters :

Name
Type
Description

allowedMenus

[boolean, boolean, boolean, boolean, boolean]

[0] = Face Feature [1] = Clothes [2] = Berber [3] = Makeup [4] = Tattoo

clotheList?

string

The customShopName name you wrote in the configs/clotheList file

adminMode?

boolean

Examples


Aesthetic Menu

Parameters :

Name
Type
Description

changePlayerModel

boolen

true changes the gender of the character when opening the menu


ChangeScriptClothe

Used to change the player's outfit and return it to its default state for scripts such as job scripts

Parameters :

Name
Type

skinData?

{ name: string, val: number }[]

Example

ScriptClotheIsActive

Return :

value
type

is Active

bool

Example


OpenWardobeMenu

Opens the saved clothing menu in stores

Name
Type

wardrobeType

"barber" | "clothing"


OpenOutfitStash

Ppens a stash for clothing items

Parameters :

Name
Type
Description

stashName

string

stash name

Example


OpenJobOutiftMenu

opens the menu where you add ready-made outfits to jobs

Parameters :

Name
Type
Description

outfitName

string

Names defined in clothingRoomsOutfits.lua

Example


Load Ped Clothing

Edit the skin data of a ped (Non player) You can use this event for a multi-character script

Parameters :

Name
Type
Description

skinData

table

skin data

ped

int

Spawned ped id


SetPedAppearance

Edit the skin data of a ped You can use this event for a multi-character script

Parameters :

Name
Type
Description

skinData

table

skin data

ped

int

Spawned ped id


ChangeComponentValue

if you are going to use the save export and change the clothes you should use this export

Parameters :

Name
Type
Description

component

string

Component Name

value

any

Component Value


SaveSkin

Saving current skin data


RefreshSkin

Reload player skin


CheckMask

When export is used, it sets the character's face according to the mask. it is generally recommended to use commands like /mask

Last updated