Modafinil Posted November 8, 2022 Share Posted November 8, 2022 Hello everybody. I'm trying to create a 3d rectangle using https://wiki.multitheftauto.com/wiki/DxDrawRectangle3D The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? Link to comment
Shady1 Posted November 8, 2022 Share Posted November 8, 2022 34 minutes ago, Modafinil said: Hello everybody. I'm trying to create a 3d rectangle using https://wiki.multitheftauto.com/wiki/DxDrawRectangle3D The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? The problem is that nothing happens when I try to use it. I even tried the example in the wiki, but without success. Some help? The example in the wiki is client side, make sure you typed the meta.xml correctly. Link to comment
Modafinil Posted November 8, 2022 Author Share Posted November 8, 2022 1 hour ago, Shady1 said: The example in the wiki is client side, make sure you typed the meta.xml correctly. Yes, the script is right. I even tried both "onClientRender" and "onClientPreRender". No sucess. Link to comment
Shady1 Posted November 8, 2022 Share Posted November 8, 2022 The sample codes on the wiki side are working properly, you need to check the codes, if you share your code on this topic, I can help you Link to comment
Shady1 Posted November 8, 2022 Share Posted November 8, 2022 (edited) local dot = dxCreateTexture(1,1) local white = tocolor(255,255,255,255) function dxDrawRectangle3D(x,y,z,w,h,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, dot, h, c or white, ...) end addEventHandler("onClientRender", root, function() dxDrawRectangle3D(0,0, 20, 20, 20, tocolor(255,255,255,255)) end ) @Modafinil or this way you can make a start yourself,Make it as a client on the meta.xml side and continue your tests.... Edited November 8, 2022 by Shady1 Link to comment
Shady1 Posted November 14, 2022 Share Posted November 14, 2022 On 08/11/2022 at 19:29, Modafinil said: Yes, the script is right. I even tried both "onClientRender" and "onClientPreRender". No sucess. I couldn't get a reply from you, is your problem solved? 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