kajahun Posted January 20, 2024 Share Posted January 20, 2024 Hey guys! I want to replace CJ's face. But the textures rotation is off. How can I align properly? Code: local shader2 = dxCreateShader( "shaders/shader.fx", 0, 0, false, "ped" ) local face = dxCreateTexture ( "files/faces/1.jpg" )--path of face.png engineApplyShaderToWorldTexture ( shader2, "cj_ped_head", localPlayer, true )--body part of cj(head) dxSetShaderValue ( shader2, "gTexture", face ) Shader.fx: texture gTexture; technique replace { pass P0 { Texture[0] = gTexture; } } Texture: Link to comment
5150 Posted January 23, 2024 Share Posted January 23, 2024 this is due to texture mapping and not code. download the default CJ skin file and paste the face over that file where CJs face is, then upload. Link to comment
kajahun Posted January 23, 2024 Author Share Posted January 23, 2024 And where can I find the default CJ skin file? 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