Jump to content

Problem texture


WASSIm.

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...