Karuzo Posted July 23, 2014 Share Posted July 23, 2014 Hey Guys, So i'm trying to "attach" a rectangle to the ped's arm but the rectangle just doesn't show up. No Errors. This is my code: 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() local x,y,z = getPedBonePosition(localPlayer,23) dxDrawRectangle3D(x,y,z,20,20,tocolor(255,255,255,255)) end ) Link to comment
Bonsai Posted July 23, 2014 Share Posted July 23, 2014 Most likely it does show up but there is something wrong so it doesn't appear as you expect, e.g. wrong position, too small etc. Link to comment
Karuzo Posted July 23, 2014 Author Share Posted July 23, 2014 Well i tried to change the width/height and the position several times but didn't see a rectangle at all. 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