[Question] Best method for "Ghost Clothing" Screenshots (Invisible Ped Body, Visible Clothes)?

Hi everyone,

I’m currently developing an automated tool to generate a clothing catalog for my server. The goal is to take high-quality screenshots of each clothing item (drawable) on a green screen, remove the background, and use them in a web-based UI or shop.

The Goal: I want to achieve a “Ghost Clothing” effect: the player’s body (head, limbs, torso) should be completely invisible, while the clothing item being screenshotted remains 100% visible and opaque.

What I’ve tried so far:

  1. SetEntityAlpha(ped, 0): This doesn’t work because it makes the clothing invisible as well.

  2. SetEntityVisible(ped, false): Same issue, it hides the entire entity including attached drawables.

My Questions:

  • Is there a specific Native or State Bag that allows rendering only the drawables without the base ped mesh?

Try spawning the piece of clothing as an object, I haven’t tried it but it should work.

(Use CreateObject(GetHashKey(‘Clothing model’)….

as of i know, you need a custom ped meta to only make the ped (and all clothes without the one screenshotting) invisible.

Is this something like what you’re trying to make?