JeViCo Posted August 25, 2018 Share Posted August 25, 2018 Hello guys! 1. We can use/replace world textures,car textures, but what about peds? Why we can't still use separate textures to test out our abilities? 2. New camera functions - aiming! There a lot of topics with setCameraMatrix problem related to weapon aiming. I also tried that and got the same result. What about SetPedAimTarget and parent functions but for player? 1 Link to comment
Captain Cody Posted August 25, 2018 Share Posted August 25, 2018 First one is already possible using the same functions as replacing world and vehicle functions.. Second one there was work put into it but was never completed. 1 Link to comment
JeViCo Posted August 26, 2018 Author Share Posted August 26, 2018 12 hours ago, CodyJ(L) said: First one is already possible using the same functions as replacing world and vehicle functions.. i tried to use engineApplyShaderToWorldTexture function but it doesn't work for custom ped models for some reason 12 hours ago, CodyJ(L) said: Second one there was work put into it but was never completed. I hope MTA team'll add this function some day ^-^ 1 Link to comment
Captain Cody Posted August 26, 2018 Share Posted August 26, 2018 you aren't applying it to the right texture(s) then. 1 Link to comment
JeViCo Posted August 26, 2018 Author Share Posted August 26, 2018 1 hour ago, CodyJ(L) said: you aren't applying it to the right texture(s) then. i know that my model has texture name 'truth' (whole ped) but it doesn't work with custom ones 1 Link to comment
Captain Cody Posted August 26, 2018 Share Posted August 26, 2018 You are either A not applying to to the correct texture or B not specifying the right entity type. Link to comment
Addlibs Posted August 27, 2018 Share Posted August 27, 2018 (edited) On 26/08/2018 at 15:45, JeViCo said: i know that my model has texture name 'truth' (whole ped) but it doesn't work with custom ones engineApplyShaderToWorldTexture Tip: • When using with a 'ped', ensure you have set 'ped' or 'all' in the elementTypes when calling dxCreateShader By default, dxCreateShader does not create a shader that works on peds. You need to manually set that. Edited August 27, 2018 by MrTasty 1 Link to comment
JeViCo Posted August 28, 2018 Author Share Posted August 28, 2018 (edited) 17 hours ago, MrTasty said: engineApplyShaderToWorldTexture Tip: • When using with a 'ped', ensure you have set 'ped' or 'all' in the elementTypes when calling dxCreateShader By default, dxCreateShader does not create a shader that works on peds. You need to manually set that. I had type "all" type in dxCreateShader. I changed it to "ped" and it works! Thanks dude, you're awesome! Okay, we will wait for camera then ^-^ Edited August 28, 2018 by JeViCo Link to comment
Recommended Posts