WiBox Posted July 1, 2018 Posted July 1, 2018 Hello, I was searching on the wiki MTA page but I didn't find what I need, I want to add a image in a specific place not on the player screen as guiCreateStaticImage, I want it in a specific place. I appreciate who can help me Thanks.
Moderators IIYAMA Posted July 1, 2018 Moderators Posted July 1, 2018 23 minutes ago, SSKE said: Hello, I was searching on the wiki MTA page but I didn't find what I need, I want to add a image in a specific place not on the player screen as guiCreateStaticImage, I want it in a specific place. I appreciate who can help me Thanks. Quote specific place hmmm where could that be... I know it! It is a `specific place!`
WiBox Posted July 1, 2018 Author Posted July 1, 2018 (edited) hmm? Like I want to put a image on a object on the world... For I feel that I made myself clear.. I want to add a image on a object, but I didn't found a function on MTA wiki page.. Can someone answer without trolling? Edited July 1, 2018 by SSKE
Moderators IIYAMA Posted July 1, 2018 Moderators Posted July 1, 2018 (edited) With a shader. https://wiki.multitheftauto.com/wiki/Element/Shader#Simple Create shader: https://wiki.multitheftauto.com/wiki/DxCreateShader Texture names: https://wiki.multitheftauto.com/wiki/Shader_examples#Texture_names Edited July 1, 2018 by IIYAMA
Addlibs Posted July 1, 2018 Posted July 1, 2018 If you want the image to be truly 3D, you can either use a Shader or dxDrawMaterialLine3D/dxDrawImage3D (the latter is useful function that you need to embed into your code yourself) or, if you simply want a 2D image placed on the screen covering or above where the object appears to be on screen, you'd use getScreenFromWorldPosition and dxDrawImage.
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