This guide describes how to install an addon vehicle that does not yet have an install.xml file
Converting an addon vehicle for usage with LML is very simple in most cases. If it is a FiveM resource, chances are LML is able to create an install.xml file automatically. Try downloading the vehicle using LML and see if it works.
Folder Layout
Create a new subfolder in your "lml" folder. We like to keep things clean, so we move all streaming files (the model and the textures such ytd and yft) into a subfolder called "streaming". For data files, for instance vehicles.meta and handling.meta we do the same, placing them in a subfolder called "data". 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 addon 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 audio gamedata, please visit the LML subforums for more elaborate examples.
<?xml version="1.0" encoding="utf-8"?> <EasyInstall> <Name>My Car</Name> <Author>You</Author> <Version>1.0.0</Version> <Link></Link> <Metadata></Metadata> <Addons> <Addon name="My Car"> <StreamingFiles>stream</StreamingFiles> <DataFiles>data</DataFiles> </Addon> </Addons> </EasyInstall>
You are now able to spawn the vehicle by using the RPH console in-game and typing "spawn" followed by the name of the vehicle (the name specified in the vehicles.meta and/or the name of the streaming files).
Recommended Comments