This guide describes how to install an addon ped that does not yet have an install.xml file
Converting an addon ped for usage with LML is very simple in most cases.
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 ydd, yft and ymt) into a subfolder called "streaming". For data files, for instance peds.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 ped work out of the box. We recommend you change the name of the mod to identify it easily. If you ped 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 Ped</Name> <Author>You</Author> <Version>1.0.0</Version> <Link></Link> <Metadata></Metadata> <Addons> <Addon name="My Ped"> <StreamingFiles>stream</StreamingFiles> <DataFiles>data</DataFiles> </Addon> </Addons> </EasyInstall>
You are now able to spawn the ped by using the RPH console in-game and typing "spawn" followed by the name of the ped (the name specified in the peds.meta and/or the name of the streaming files).
Recommended Comments