WASSIm. Posted July 26, 2014 Share Posted July 26, 2014 hi guys i have problem on replace texture, texture "wmyclot" staff skin don't change local textures = { {"wmyclot", "wmyclot.png"}, {"bloodpool_64", "bloodpool.png"} } addEventHandler( "onClientResourceStart", resourceRoot, function ( ) for i, textureNew in ipairs(textures) do local textureName, file = unpack(textureNew) local texture = dxCreateTexture("textures/"..file, "dxt5") local shader = dxCreateShader("shader.fx") if (texture) and (shader) then dxSetShaderValue(shader, "gTexture", texture) engineApplyShaderToWorldTexture(shader, textureName) else outputChatBox("The texture "..textureName.." do not replace file: "..file, 255, 0, 0) end end end) Link to comment
esporta05 Posted July 28, 2014 Share Posted July 28, 2014 same issue at me too. Cant replace TXD files. There should be a bug. Link to comment
Max+ Posted July 28, 2014 Share Posted July 28, 2014 same issue at me too. Cant replace TXD files. There should be a bug. i think so , but he could try use setTimer to load them Link to comment
Saml1er Posted August 1, 2014 Share Posted August 1, 2014 You can ask MTA developers in Irc ( mta scripting channel ). Link to comment
WASSIm. Posted August 7, 2014 Author Share Posted August 7, 2014 You can ask MTA developers in Irc ( mta scripting channel ). i ask in channel but no one answer 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