function DrawCube(x,y,z)
if isPointOnScreen(x,y,z) then
x = x-1
y = y-1
local xx,yy = convert3DCoordsToScreen(x,y,z)
local xxx,yyy = convert3DCoordsToScreen(x+2,y,z)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y,z)
local xxx,yyy = convert3DCoordsToScreen(x+2,y,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x,y,z)
local xxx,yyy = convert3DCoordsToScreen(x,y,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x,y,z-2)
local xxx,yyy = convert3DCoordsToScreen(x+2,y,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x,y,z)
local xxx,yyy = convert3DCoordsToScreen(x,y+2,z)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x,y+2,z)
local xxx,yyy = convert3DCoordsToScreen(x,y+2,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x,y+2,z-2)
local xxx,yyy = convert3DCoordsToScreen(x,y,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y+2,z)
local xxx,yyy = convert3DCoordsToScreen(x+2,y+2,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y,z)
local xxx,yyy = convert3DCoordsToScreen(x+2,y+2,z)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y+2,z-2)
local xxx,yyy = convert3DCoordsToScreen(x,y+2,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y+2,z-2)
local xxx,yyy = convert3DCoordsToScreen(x+2,y,z-2)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
local xx,yy = convert3DCoordsToScreen(x+2,y+2,z)
local xxx,yyy = convert3DCoordsToScreen(x,y+2,z)
renderDrawLine(xx,yy,xxx,yyy,3,-1)
end
end