gta6/prompts
appearance
Vaultadvancedappearance

Clothing as Inventory Items

ESX/QBCore/QBox + ox_inventory system where garments are inventory items with metadata; using equips the cloth, dropping removes it physically.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~96 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working clothing-as-items system on ox_inventory: each garment is a real inventory item carrying component metadata, so using it pulls the cloth onto the ped and dropping it strips the cloth back off. Because garments physically exist in inventory, they can be looted or stolen — the mechanic crime-RP servers are actively chasing. The server owns every item move through ox_inventory so nothing can be worn and kept for free.

Prompt Template

You are writing a FiveM resource using oxinventory (exports.oxinventory).

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/appearance/11-clothing-as-inventory-items.lua. It implements metadata-driven equip/strip on the ped with previous-variation caching, and…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Unvalidated equip — Claude equips on the client without confirming the item left the inventory, letting cloth be worn and kept; validate the move through ox_inventory server-side.
  • Metadata ignored — reading from a hardcoded map makes every garment identical; pull componentId/drawable/texture from item.metadata.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event — define cloth:equip/cloth:strip on both sides with RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Gate every cloth change on a server-validated ox_inventory move: on use, GetItem and read its metadata before TriggerClientEvent('cloth:equip'); on drop, only strip the ped after ox_inventory:RemoveItem succeeds. The client must never equip or keep a garment the server did not move."

Framework Integration

  • ESX: resolve exports['es_extended']:getSharedObject() for identity; items and metadata are handled entirely by exports.ox_inventory.
  • QBCore: resolve exports['qb-core']:GetCoreObject(); register the garment items in ox_inventory and read item.metadata the same way.
  • QBox: native ox_inventory pairing — exports.qbx_core:GetPlayer(src) for identity, ox_inventory for the item moves; logic is identical.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo); a hot, ox_inventory-led crime-RP trend carries strong unit volume.

Trend Signal

🔥 hot — corpus: ox_inventory metadata clothing (wearable/stealable garments) is the rising crime-RP appearance trend; ox_inventory is a named corpus launch-signal resource.

Sales Angle

The wearable/stealable ox_inventory clothing system every crime-RP server is chasing — garments that physically exist and can be looted. Recommended Tebex price $329.

Difficulty & Ship Time

advanced · ships in 1 day.