Gordon_G Posted May 9, 2017 Share Posted May 9, 2017 Hello, I'm not very strong with the dx elements. I've seen this on wiki for creating a 3D image at a world position : https://wiki.multitheftauto.com/wiki/DxDrawImage3D But, when I move the camera, the image is rotating with it, how can I create a function with no rotation of the image ? Like this, when I move the camera, the image don't move. Link to comment
Ducktape Posted May 9, 2017 Share Posted May 9, 2017 boolean dxDraw3DImage ( float x, float y, float z, float width, float height, element material[, int color, float rotation, float faceTowardX, float faceTowardY, float faceTowardZ] faceTowardX,faceTowardY,faceTowardZ Link to comment
Gordon_G Posted May 9, 2017 Author Share Posted May 9, 2017 Ok, thanks, I did not see the last 3 args. Anyway I did it myself by using : local image = dxCreateTexture( "multiColor.png" ) local white = tocolor(255,255,255,255) addEventHandler("onClientRender", root,function() dxDrawMaterialLine3D( 225,17,3,226.5,18.5,3,image,1.5,white,219.04632568359,19.361221313477,3 ) end) Thanks for your help 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