Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Make player invisible


S3ven
 Share

Recommended Posts

(C#, ScriptHookV, ScriptHookVDotNet) Hello, I have the following problem, although I would like to make the following peds (FreemodeFemale01, FreemodeMale01) invisible, but you should still be able to see the clothes.

Edited by S3ven
Link to comment
Share on other sites

17 minutes ago, S3ven said:

(C#, ScriptHookV, ScriptHookVDotNet) Hello, I have the following problem, although I would like to make the following peds (FreemodeFemale01, FreemodeMale01) invisible, but you should still be able to see the clothes.

 

I'm not sure if setting the component value to -1 will work, might be worth trying.

 

Edit: Looking at the natve, it might be the drawable that you could try setting to -1.

 

void SET_PED_COMPONENT_VARIATION(Ped ped, int componentId, int drawableId, int textureId, int paletteId)

 

Disclaimer: I have no idea if this would work, it's just a guess.

Edited by LeeC22
Link to comment
Share on other sites

No, I don't mean that, I mean the ped should be invisible but the clothes shouldn't be visible

Link to comment
Share on other sites

2 minutes ago, S3ven said:

No, I don't mean that, I mean the ped should be invisible but the clothes shouldn't be visible

 

I can't read that... what does it say?

Link to comment
Share on other sites

No I do not mean that I mean the ped should be invisible but the clothes should not be visible

Link to comment
Share on other sites

7 minutes ago, S3ven said:

No I do not mean that I mean the ped should be invisible but the clothes should not be visible

 

The clothes are part of the ped though, it isn't a body with clothes on top like a real person.

 

A ped model is made up of several parts (components), so you have to work out which part is for the body and which part is for the clothes. You can't just turn the body off, it's more complicated than that.

Edited by LeeC22
Link to comment
Share on other sites

3 minutes ago, S3ven said:

okay thanks for your help

 

If you want to see what I mean go here: update\x64\dlcpacks\mpapartment\dlc.rpf\x64\models\cdimages\mpapt01.rpf\mp_f_freemode_01_female_apt01 and look at lowr_008_r.ydd

 

Notice at the bottom of the legs you can see skin for the feet? You can't turn those feet off and leave the clothes behind.

Link to comment
Share on other sites

2 hours ago, LeeC22 said:

 

If you want to see what I mean go here: update\x64\dlcpacks\mpapartment\dlc.rpf\x64\models\cdimages\mpapt01.rpf\mp_f_freemode_01_female_apt01 and look at lowr_008_r.ydd

 

Notice at the bottom of the legs you can see skin for the feet? You can't turn those feet off and leave the clothes behind.

Yes that would not be bad my goal is to make a transparent image of each part of the clothing for it would be good if the ped was invisible (as much as possible)

Link to comment
Share on other sites

2 hours ago, S3ven said:

my goal is to make a transparent image of each part of the clothing for it would be good if the ped was invisible (as much as possible)

 

That won't work I am afraid. The shader used for the ped's body doesn't support transparency, so all that would happen is the transparent parts would turn black. Or at least that's what happened when I tried a similar thing many years ago. You would have to edit the models to change the shader to one that supports transparency.

 

It would probably be easier to choose a single complete outfit, export the model parts, delete the polygons where the skin is applied and then add that duplicate outfit back as addon clothing. Then just switch to that outfit with a trainer or mod. If you wanted to do it for all the clothing it would be a huge amount of work though, because there are hundreds of clothing items.

Link to comment
Share on other sites

3 hours ago, LeeC22 said:

 

That won't work I am afraid. The shader used for the ped's body doesn't support transparency, so all that would happen is the transparent parts would turn black. Or at least that's what happened when I tried a similar thing many years ago. You would have to edit the models to change the shader to one that supports transparency.

 

It would probably be easier to choose a single complete outfit, export the model parts, delete the polygons where the skin is applied and then add that duplicate outfit back as addon clothing. Then just switch to that outfit with a trainer or mod. If you wanted to do it for all the clothing it would be a huge amount of work though, because there are hundreds of clothing items.

Yes that is quite a lot of effort, how does it look the only with the head to make this invisible?

Link to comment
Share on other sites

8 hours ago, S3ven said:

Yes that is quite a lot of effort, how does it look the only with the head to make this invisible?

 

I have just thought of something you could try. If you download the mod I have linked below, it comes with a mod called Dismemberment.asi, which allows you to hide parts of the body. The mod I have linked to uses it to hide the player's head. Maybe if you can find out how it works, you could use it to hide the head, hands and feet of the model. I have never used it so I don't know how it works but the manual transmission mod is open source, so you can probably find out by looking in there.

 

https://www.gta5-mods.com/scripts/manual-transmission-ikt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.