hello everyone,
i get problem when i'm make shader for cj
the debugscript : http://imgur.com/Jhh5CXL
Code :
addEventHandler("onClientResourceStart", resourceRoot, function()
shader = dxCreateShader("Shader.fx", 0, 0, false, "ped")
texture = dxCreateTexture("Head.jpg")
dxSetShaderValue( shader, "Ped", texture )
ped = createPed(0,2343.26978 ,-1711.83752, 13.35361)
engineApplyShaderToWorldTexture(shader, "cj_ped_head",ped)
end)
Shader.fx
texture Ped;
technique simple {
pass P0 {
Texture[0] = Ped;
}
}