Dgs-dx3dline

From Multi Theft Auto: Wiki
Revision as of 06:42, 21 March 2022 by Thisdp (talk | contribs) (Created page with "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== *dgsSetProperty *dgsGetProperty ==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. <syntaxhighlight lang="lua">dgsSetProperty(line3D,"color",color)</syntaxhighlig...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

width

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

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

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins