jdmark Posted April 23, 2013 Share Posted April 23, 2013 hello can someone help me i make a res for replacing car paintjobs but when i try to start the res he cant find the resource help me please meta.xml "Bla" version="Bla" type="script" name="" description="" showInResourceBrowser="false" /> script.lua addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD ( "elegy2body256.png", 562) engineImportTXD ( txd, 562) txd = engineLoadTXD ( "elegy2body256.png", 562) engineReplaceModel ( txd, 562) txd = engineLoadTXD ( "elegy3body256.png", 562) engineImportTXD ( txd, 562) txd = engineLoadTXD ( "elegy3body256.png", 562) engineReplaceModel ( txd, 562) txd = engineLoadTXD ( "elegy4body256.png", 562) engineImportTXD ( txd, 562) txd = engineLoadTXD ( "elegy4body256.png", 562) engineReplaceModel ( txd, 562) end ) Link to comment
50p Posted April 23, 2013 Share Posted April 23, 2013 1. Meta.mxl points to *.pgn file (it probably does not exists), but in code you're trying to load .png (which are 2 different files) 2. engineLoadTXD does not load image files but .txd files (texture archives) 3. engineReplaceModel expects DFF element not a TXD element 4. To replace paintjobs you need to use a simple "texture replace" shader 5. DEBUG YOUR SCRIPT because I'm 100% sure you will get loads of error/warning messages 6. If the resource cannot be found that means it hasn't been loaded. If you were running the server before you created the new resource, the server will not know about the resource so you need to /refresh the server's resources. If you see an error message in the server's console saying "ERROR: Couldn't parse meta file for resource 'RESOURCE_NAME' " then you need to check the meta.xml for error (check point (1.) ) Link to comment
jdmark Posted April 23, 2013 Author Share Posted April 23, 2013 oke but idont know how to get the car texture work's with texture-replacer? can you send me a link to the texture-replacer and tell me how to let it work ? Link to comment
50p Posted April 23, 2013 Share Posted April 23, 2013 If you had searched before asking, you'd find an answer: viewtopic.php?f=91&t=35778&p=369523#p370141 Link to comment
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