Events / Exports

Client Exports

OpenCreateCharacterMenu

If the config.autoOpenCreateMenu setting is enabled, this event will be triggered automatically when the character is loaded

exports["tgiann-clothing"]:OpenCreateCharacterMenu()

OpenMenu

Open skin menu

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

Parameters :

  • allowedMenus: [boolean, boolean, boolean, boolean, boolean]

    • [0] = Face Feature

    • [1] = Clothes

    • [2] = Berber

    • [3] = Makeup

    • [4] = Tattoo

  • clotheList?: string

  • adminMode?: boolean

Examples


OpenAestheticMenu

Parameters

  • changeModel: boolean if 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 :

  • skinData?: object

Example

With the 'skinadmin' command, you can see the collection names, index and texture index numbers of the clothes you are wearing.

ScriptClotheIsActive

Return

isActive: boolean

Example


OpenWardobeMenu

Opens the saved clothing menu in stores (If wardrobeType is set to clothing, it will only work if the clothing as item setting is false)

Parameters

  • wardrobeType?: "barber" | "clothing"


OpenOutfitStash

Opens a stash for clothing items (It only works when the "clothing as item" setting is true)

Parameters

  • stashName?: string

Example


OpenJobOutiftMenu

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

Parameters :

  • outfitName: string Names defined in clothingRoomsOutfits.lua

Example


SetPedClothing

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

Parameters :

  • ped: number

  • id: number Component id or prop Id

  • isProp: boolean

  • collection: string

  • localIndex: number

  • textureId: number

With the 'skinadmin' command, you can see the collection names, index and texture index numbers of the clothes you are wearing.


GetPedSkinData

Return

  • skinData: object

Parameters

  • ped: number


SetPedSkinData

Parameters

  • ped: number

  • skinData: object Ped skin data object


SaveSkin

Saving current skin data


RefreshSkin

Reload player skin


ApplyMaskFaceReset

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


GetPedModel

Return

  • model: number

Parameters

  • ped?: number


IsPedFreemodeModel

Return

  • isFreePedModel: string


SetPlayerModel

Parameters

  • model: string | number


Wear

Parameters


UnWear

Parameters


IsUnweared

Parameters


ToggleHairClip

Server Exports

GetSkinByIdentifier

Return

  • hasSkinData: boolean

  • model: number

  • skinData: object

  • tattoo: object

Parameters

  • identifier: string qb: citizenId, esx: identifier

Last updated