Dgs-dx3dline

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

DGS Properties is always used to change the gui style and make it more fantastic.

This page shows the properties of dgs-dx3dline that you could use.

Main Functions

Properties

color

The color which can be translated by tocolor of the default color of the 3d line. If the color of item is not specified, this color will be used.

dgsSetProperty(line3D,"color",color)
  • color: An integer of the color of the 3d line.

dimension

The dimension of 3d line. Players can't see the 3d line in different dimensions.

dgsSetProperty(line3D,"dimension",dimension)
  • dimension: An integer of the dimension of 3d line.

fadeDistance

The distance of which 3d line starts to fading.

dgsSetProperty(line3D,"fadeDistance",fadeDistance)
  • fadeDistance: A float of the fade distance.

interior

The interior of 3d line. Players can't see the 3d line in different interiors.

dgsSetProperty(line3D,"interior",interior)
  • interior: An integer of the interior of 3d line.

maxDistance

The maximum visible distance in the world.

dgsSetProperty(line3D,"maxDistance",maxDistance)
  • maxDistance: A float of the distance.

position

A table stores x,y,z coordinate of the 3d line in the world.

dgsSetProperty(line3D,"position",{x,y,z})
  • x: The x coordinate of the destination.
  • y: The y coordinate of the destination.
  • z: The z coordinate of the destination.

rotation

A table stores rotation x,y,z coordinate of the 3d line in the world.

dgsSetProperty(line3D,"rotation",{rx,ry,rz})
  • rx: The x coordinate of the rotation.
  • ry: The y coordinate of the rotation.
  • rz: The z coordinate of the rotation.

lineData

A table stores the line data of 3d line

dgsSetProperty(line3D,"lineData",lineData)
  • lineData: A table stores all line data.

Data Structure

--- If StartXYZ don't exist, will use last endXYZ or 0,0,0
{
	{ startX, startY,	startZ, endX, endY, endZ, width, color },
	{ startX, startY,	startZ, endX, endY, endZ, width, color },
	...
}

lineWidth

An float of the default width of 3d line. If the width of item is not specified, this width will be used.

dgsSetProperty(line3D,"lineWidth",lineWidth)
  • lineWidth: A float of the width.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins