This guide describes how to install a replacement vehicle that does not yet have an install.xml file
Converting an replacement vehicle for usage with LML is very simple and often even less work than adding an addon vehicle. If you want to convert a replacement vehicle to an addon vehicle instead, check out our guide here.
Concept
When installing replacement vehicles, you usually either directly replace the files in an RPF or use the mods folder to replace them. Either way, you have to know the path of the vehicle you want to replace. The same does not apply to mods installed via LML in most cases. For vehicle mods that replace the model and/or the texture, you do not need to know the path, making installation very simple. More complex mods might require you to specify the game path to override, these examples can be found in our install.xml documentation.
Folder Layout
Create a new subfolder in your "lml" folder. We like to keep things clean, so we move all files (the model and the textures such ytd and yft) into a subfolder called "replace". This is it for the folder!
Install.xml
Now to make LML correctly load the files, we have to provide it with some information on our mod. Since this is a simple mod, not much needs to be specified. Create a new file called install.xml in the folder of your mod. You can find an example install.xml below that will make your replacement vehicle work out of the box. We recommend you change the name of the mod to identify it easily. If you vehicle has some special requirements such as data files, please visit the LML subforums and the install.xml documentation for more elaborate examples.
<EasyInstall> <Name>Replacement Car</Name> <Author>You</Author> <Version>1.0.0</Version> <Link></Link> <Metadata> </Metadata> <Replacements> <Replacement name="New Police Car"> <FileReplacements>replace</FileReplacements> </Replacement> </Replacements> </EasyInstall>
That's it! Your vehicle will now appear modded in the game.
Recommended Comments