DjSt3rios Posted May 22, 2011 Posted May 22, 2011 Hello, i made a file named client.lua and includes this: function installMods() txd = engineLoadTXD ( "sabre.txd" ) txd2 = engineLoadTXD ( "flash.txd" ) engineImportTXD ( txd, 475 ) engineImportTXD ( txd2, 565 ) dff = engineLoadDFF ( "sabre.dff", 475 ) dff2 = engineLoadDFF ( "flash.dff", 565 ) engineReplaceModel ( dff, 475 ) engineReplaceModel ( dff2, 565 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), installMods ) Now, in meta.xml i have this: <file src="flash.txd" /> <file src="flash.dff" /> <file src="sabre.txd" /> <file src="sabre.dff" /> <script src="client.lua" type="client" /> But it gives HTTP error on flash.txd Any idea how to fix this? thanks.
DjSt3rios Posted May 22, 2011 Author Posted May 22, 2011 Full meta file: <meta> <script src="server.lua" type="server" /> <file src="flash.txd" /> <file src="flash.dff" /> <file src="sabre.txd" /> <file src="sabre.dff" /> <script src="client.lua" type="client" /> <info gamemodes="race" type="map" name="[DM] Fast and Furious Map" author="DS" version="1.0.0" /> <map src="[DM] Fast and Furious.map" dimension="0" /> <settings> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#maxplayers" value="[ 128 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#weather" value="[ 0 ]" /> <setting name="#time" value="12:0" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> </settings> </meta>
Johnniey Posted May 22, 2011 Posted May 22, 2011 Dont use spaces or special characters in .map file name and folder name. like: [DM]FastandFurious.map instead of [DM] Fast and Furious.map
DjSt3rios Posted May 22, 2011 Author Posted May 22, 2011 Thanks works. But one question please, how would i import a paintjob mod? I tried to make it like this: txd3 = engineLoadTXD ( "flash1.txd" ) engineImportTXD ( txd3, 565 ) But it doesnt work. ANy help?
Kenix Posted May 22, 2011 Posted May 22, 2011 Thanks works. But one question please, how would i import a paintjob mod?I tried to make it like this: txd3 = engineLoadTXD ( "flash1.txd" ) engineImportTXD ( txd3, 565 ) But it doesnt work. ANy help? paint jobs not support.
DjSt3rios Posted May 22, 2011 Author Posted May 22, 2011 Oh no this destroys all my dream anyway thanks for the help!
MTA Team qaisjp Posted May 22, 2011 MTA Team Posted May 22, 2011 It is possible to implement multiple paintjobs on demand.
DjSt3rios Posted May 22, 2011 Author Posted May 22, 2011 What exactly do you mean? how could i do that?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now