1. Home
  2. Forums
  3. Filebase
    1. Featured Files
  4. Gallery
    1. Albums
  5. Guides
    1. SirenSetting Calculator
  6. Discord
  7. Accurate Studio
  • Login
  • Register
  • Search
Vehicle Modifications
  • Everywhere
  • Vehicle Modifications
  • Forum
  • Gallery
  • Files
  • Guides
  • More Options
  1. Modding Forum
  2. Guides
  3. Grand Theft Auto V
  4. Creating Mods
  5. Vehicle Modifications

Shared Textures

  • Smanbg
  • October 22, 2021 at 10:21 AM
  • 11,001 Views
  • 0 Comments
In GTA V, .ytd texture files can be shared by multiple vehicles. This guide explains how to create shared textures.

Shared textures are used to decrease the required disc space and memory usage. By default, all vehicles share the vehshare.ytd, specific vehicles share other vehshare files (for example for trucks or army vehicles), and many vehicles share interior textures (for example taxis and police cars).

Using shared textures can be very useful for vehicle packs, both in single player mode and in FiveM, if each of those vehicles uses the same set of textures. This can be the case for example when using multiple police vehicles that all use the same equipment.

.ytd texture files

To share textures, simply create a separate .ytd file and add the textures you want to share. Make sure that your vehicle's .ytd file does not include these textures and that the name of the textures themselves is the same for all vehicles.

The file structure for 2 vehicles and 2 shared textures could look like this for example:

  • vehicle.yft
  • vehicle_hi.yft
  • vehicle.ytd
  • vehicle2.yft
  • vehicle2_hi.yft
  • vehicle2.ytd
  • shared_textures1.ytd
  • shared_textures2.ytd

vehicles.meta

The shared textures need to be assigned to the specific models in the texture relationships in the vehicles.meta. Each texture can have one parent texture, which is automatically loaded when the child texture is used. To use multiple shared texture, it is necessary to chain texture relationships.

XML: vehicles.meta
<txdRelationships>
    <Item>
        <parent>vehicles_poltax_interior</parent>
        <child>shared_textures1</child>
    </Item>
    <Item>
        <parent>shared_textures1</parent>
        <child>shared_textures2</child>
    </Item>
    <Item>
        <parent>shared_textures1</parent>
        <child>vehicle</child>
    </Item>
    <Item>
        <parent>shared_textures2</parent>
        <child>vehicle2</child>
    </Item>
</txdRelationships>
Display More

shared_textures2 automatically includes shared_textures1, which includes vehicles_poltax_interior, which then includes vehshare, as defined in the vehicles.meta in the update.rpf.

In this example, the vehicles will use the following texture files:

  • vehicle: vehicle.ytd, shared_textures1.ytd, vehicles_poltax_interior.ytd, vehshare.ytd
  • vehicle2: vehicle2.ytd, shared_textures2.ytd, shared_textures1.ytd, vehicles_poltax_interior.ytd, vehshare.ytd

If your vehicle does not use any of the shared interior textures but some of the vehshare textures, you can set vehshare as the parent of your shared texture.

Authors

  • Smanbg

    Moderator
  • Cj24

    Administrator
    Accurate Studio

Previous Guide Emergency Lights: Rotator Lightbars and Wig-Wags

Next Guide Setting Up Emergency Lights

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Authors

  • Smanbg

    Moderator
  • Cj24

    Administrator
    Accurate Studio

Categories

  1. Grand Theft Auto V 21
  2. Installing Mods 4
  3. Creating Mods 17
  4. Texturing 4
  5. Modeling 2
  6. Vehicle Modifications 11
  7. Reset Filter
  1. Terms Of Use
  2. Privacy Policy
  3. Legal Notice
  4. Contact
Powered by WoltLab Suite™