Stanley Sathler Posted March 30, 2012 Posted March 30, 2012 So guys, I'm trying import some TXD files using this code: Lua code: function LoadMods() -- [ XZIBIT CHARACTER ] -- local SkinTXD = engineLoadTXD("../mods/xzibit.txd") engineImportTXD(SkinTXD, 10) local SkinDFF = engineLoadDFF("../mods/xzibit.dff", 0) engineReplaceModel(SkinDFF, 10) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), LoadMods) Meta.xml: <info author="Sathler" type="gamemode" name="RPG MODE" description="Our project" /> <map src="./mapa/main_prison.map" /> <script src="./scripts/LoadMods.lua" type="client" /> <!-- Mods imports --> <file src="./mods/xzibit.txd" /> <file src="./mods/xzibit.dff" /> But it doesn't work and I don't know why. Somebody can help me? Hugs, Sathler.
Stanley Sathler Posted March 30, 2012 Author Posted March 30, 2012 Solidsnake, "../" means an above directory. I put my scripts in "/resources/scripts" and the mods in "/resources/mods". , Sathler.
Stanley Sathler Posted March 30, 2012 Author Posted March 30, 2012 Oh, not bro You can download the files here: http://www.sathlerdesign.com/sathler.rar Sathler
Castillo Posted March 30, 2012 Posted March 30, 2012 As I supposed, the dots are the problem, you don't need them. -- LoadMods.lua: function LoadMods() -- [ XZIBIT CHARACTER ] -- local SkinTXD = engineLoadTXD("mods/xzibit.txd") engineImportTXD(SkinTXD, 10) local SkinDFF = engineLoadDFF("mods/xzibit.dff", 10) engineReplaceModel(SkinDFF, 10) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), LoadMods) -- meta.xml: -- Server Header --> "Sathler" type="gamemode" name="RPG MODE" description="Our project" /> "mapa/main_prison.map" /> -- Server Scripts -->
Stanley Sathler Posted March 30, 2012 Author Posted March 30, 2012 Oh Solidsnake, it works now. Strange, because I just used the dots for set the below paths. Well... thank you, bro. Really. Nice to know you. , Sathler.
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