Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dxdrawrectangle3d
1. dxDrawRectangle3D
Witam, mam problem z tym o to kodem. Wszystko chyba dobrze zrobi?em a rectangle nie pojawia si?. nie ma b??d?w DB.

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(2728.93, 2092.02, 6.73, 20, 20, 20, tocolor(255,255,255,255))
    
end
)