How to add vehicles in game with working engine sounds and correct vehicle colors
Hello guys, I am glad to announce you all on the forums that we can add any vehicles on the game with working engine sounds and correct colors for each vehicle, It is possible too to add boats and helicopters on the game without any limitations unlike other GTA games, Also this is more surprising that we can also add emergency vehicles on the game with working siren lights and it's siren sounds properly, No extra script to do so.
So before we can start, You should read the notes first.
1,) You cannot add the new added vehicles on specified section of dispatch.meta
Alright this is most annoying thing on adding new emergency vehicles as If you add a Police SUV and put the name on SWAT_SUV section, It will spawns empty, No cops drive it, It just wandering around like a normal car, I don't know if this is hardcored or it still can be edited on a file or native script.
This also does not work on new added Fire truck too, They're still spawns with driver and passengers but it does not responds to fire, I don't know why but I'd recommend not to add the new vehicles to those sections of dispatch.meta
2.) I am not responsible for breaking your game as if your game were broken because of this, Until you have a specified problem about siren lights or vehicle colors, You're welcome to ask.
Alright, If you read the notes, Let's get started.
First, You should add the models first to x64e/levels/gta5/vehicles.rpf
Then, You should add your own lines to vehicles.meta, Either from update.rpf or mpchristmas2.rpf or mpheist.rpf
There are the example of the lines from vehicles.meta, You should use notepad or similar program to edit vehicles.meta
Example:
Then, You should add this lines on vehicles.meta too:
<Item>
<parent>vehicles_poltax_interior</parent>
<child>model_name</child>
</Item>It will have interior textures on the new added vehicle.
You should add vehicle audio hash on vehicles.meta too or it will not have any vehicle sound:
<audioNameHash>9F</audioNameHash>
Example: You should use existing internal name from vehicles.meta like Stanier police cruiser is "police" or Interceptor cruiser is "police3", So the sound will work on the new added vehicle.
After you added your own lines, Please save your notepad or similar programs.
Then, This is about it's vehicle colors, lights, siren lights and it's liveries, It is located carvariations.meta unfortunately the original one is compiled as .ymt file but there are another way to add vehicle colors which is located from mpchristmas2 or mpheist dlc files.
You should add this lines to the end of carvariations.meta
About liveries, You can add the liveries as long the vehicle models have liveries placed on it's models.
Liveries:
<Item>
<indices content="char_array">
134
134
0
156
</indices>
<liveries>
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>If you set one of them to "true", The new added vehicle will have liveries attached to the vehicle, Do not set the item value "true" one the same line, It will glitch out the liveries unless, If you wanna add the new liveries, You should add this lines.
<Item>
<indices content="char_array">
134
134
0
156
</indices>
<liveries>
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item> <Item>
<indices content="char_array">
134
134
0
156
</indices>
<liveries>
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
About siren lights, There are varies of siren lights from several emergency vehicles that can be used, But be careful, Wrong siren lights will glitch out the siren bar on desired added vehicle, So I listed several working siren lights that you should use.
<sirenSettings value="1" /> = This siren lights is used by Police Buffalo, Police Riot, Park Ranger SUV and Sheriff Granger.
<sirenSettings value="2" /> = This siren lights is used by Police Interceptor.
<sirenSettings value="4" /> = This siren lights is used by Ambulance.
<sirenSettings value="5" /> = This siren lights is used by NYSP Police Roadcruiser, NYSP Police Rancher and LSPD Police Transporter.
<sirenSettings value="6" /> = This siren lights is used by Police Bike
<sirenSettings value="7" /> = This siren lights is used by Fire Truck
<sirenSettings value="9" /> = This siren lights is used by Tow Truck and one of Boxville models.
<sirenSettings value="10" /> = This siren lights is used by Lifeguard SUV.
<sirenSettings value="13" /> = This siren lights is used by Stanier Police Cruiser and Sheriff Cruiser. Then you're done with adding the new vehicle, You can test it in game by trainer or RAGE Hook, or for emergency vehicles, You can use dispatch.meta to spawn the new vehicle on wanted level as long it does not belong to "SWAT_SUV" and "FIRE_TRUCK" section of dispatch.meta.