FlyingSpoon Posted April 2, 2019 Posted April 2, 2019 function test() txd = engineLoadTXD ( "head.txd" ) engineImportTXD ( txd, 30207 ) dff = engineLoadDFF ( "head.dff" ) engineReplaceModel ( dff, 30207 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), test) For the when the player switches the head to bald, it crashes MTA. Also says, Bad usage @ 'engineReplaceModel' [Model ID 30207 replace failed] Any ideas on what I may be doing wrong? Following the wiki. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Dimos7 Posted April 2, 2019 Posted April 2, 2019 For change cj head you need dxCreateTexture dxCreateShader dxSetShaderValue engineApplyShaderToWorldTexture
FlyingSpoon Posted April 2, 2019 Author Posted April 2, 2019 2 minutes ago, Dimos7 said: For change cj head you need dxCreateTexture dxCreateShader dxSetShaderValue engineApplyShaderToWorldTexture Yeah I already tried shaders, but CJ's face outline still stays there, like his big chin, jaw line, ears GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
FlyingSpoon Posted April 2, 2019 Author Posted April 2, 2019 2 minutes ago, Dimos7 said: You need to replace them aswell You can only replace CJ's face as a whole, yeah you can add a texture to make it look a little different but the outline is still there. Even if I make a different face, the jawline, face outline still resembles CJ. That's what I want to change basically. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Dimos7 Posted April 2, 2019 Posted April 2, 2019 You can't use engine load at least that i know for sure
FlyingSpoon Posted April 2, 2019 Author Posted April 2, 2019 3 minutes ago, Dimos7 said: You can't use engine load at least that i know for sure Any ideas on what I can do? GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
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