dxDrawMaterialLine3D | Multi Theft Auto: Wiki Skip to content

dxDrawMaterialLine3D

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function draws a textured 3D line between two points in the 3D world - rendered for one frame. This should be used in conjunction with onClientPreRender in order to display continuously.

Syntax

dxDrawMaterialLine3D ( )

Code Examples

client

Drawsan imagein coordiantes -2422.68555, -608.78986, 132.56250:

local redcircle = dxCreateTexture("red.png")
x,y,z = -2422.68555, -608.78986, 132.56250
size = 1
addEventHandler("onClientRender", root, function()
dxDrawMaterialLine3D(x+size, y+size, z-0.95, x-size, y-size, z-0.95, redcircle, size*2,tocolor(255, 255, 255, 255), false, x, y, z)
end)