SycroX Posted June 3, 2018 Posted June 3, 2018 hello , i need some help with the 3d functions dxDrawRectangle3D 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(2414, 1242, 20, 100, 100, tocolor(255, 255, 255, 255)) end ) the issue is the rectangle doesn't appear there's no error no debug nothing and the code is very simple Chillin' with some demons, satans and vamps
SycroX Posted June 3, 2018 Author Posted June 3, 2018 up... Chillin' with some demons, satans and vamps
DNL291 Posted June 4, 2018 Posted June 4, 2018 It's probably a problem with the texture. Please do not PM me with scripting related question nor support, use the forums instead.
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