Skip to Content

Clothing

Prism Inventory V2 includes clothing inventory, ped preview, and an admin clothing creator.

Clothing creator command

The default command is restricted to admins:

custom/config.lua
PrismConfig.clothing.command = { name = 'clothingcreator', help = 'Open clothing creator menu', restricted = 'group.admin', }

Use the command in game:

/clothingcreator

Default clothing values

Default male and female values are configured in PrismConfig.clothing.defaults.

Each slot uses drawable and texture values. Prop slots such as hats and glasses can use drawable = -1 to mean no prop equipped.

custom/config.lua
PrismConfig.clothing.defaults = { male = { hat = { drawable = -1, texture = 0 }, mask = { drawable = 0, texture = 0 }, shirt = { drawable = 15, texture = 0 }, pants = { drawable = 14, texture = 0 }, shoes = { drawable = 34, texture = 0 }, }, female = { hat = { drawable = -1, texture = 0 }, mask = { drawable = 0, texture = 0 }, shirt = { drawable = 15, texture = 0 }, pants = { drawable = 14, texture = 0 }, shoes = { drawable = 35, texture = 0 }, }, }

Clothing images

Clothing item images can be generated by template.

custom/config.lua
PrismConfig.clothing.images = { enabled = false, basePath = 'nui://ox_inventory/web/src/assets/clothing', type = 'webp', template = '{pedModel}_{component}_{number}.{type}', componentMode = 'name', -- name, number, custom }

When enabled, make sure the files exist at the configured path and match the template exactly.

Animations

Clothing toggle animations are configured per slot.

custom/config.lua
PrismConfig.clothing.animations = { enabled = true, default = { dict = 'missmic4', anim = 'michael_tux_fidget', move = 51, duration = 1200 }, slots = { hat = { on = { dict = 'mp_masks@standard_car@ds@', anim = 'put_on_mask', move = 51, duration = 600 }, off = { dict = 'missheist_agency2ahelmet', anim = 'take_off_helmet_stand', move = 51, duration = 1200 }, }, shoes = { dict = 'random@domestic', anim = 'pickup_low', move = 0, duration = 1200 }, }, }

Use enabled = false if you want clothing changes without animation.

Webhook logs

Clothing creation can be logged to Discord.

custom/serverConfig.lua
PrismServerConfig.webhooks = { enabled = true, clothingCreate = 'https://discord.com/api/webhooks/xxxxx/yyyyy', errors = '', }

Leave clothingCreate empty to disable only clothing creation logs.

Last updated on