ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxDrawMaterialSectionLine3D

Function

dxDrawMaterialSectionLine3D

Like dxDrawMaterialLine3D, but draws only a section of the material (u, v, section width and height in pixels).

Syntax

bool dxDrawMaterialSectionLine3D(float startX, startY, startZ, float endX, endY, endZ, float u, float v, float usize, float vsize, string|element material, float width [, bool flipUV = false, int color = tocolor(255, 255, 255), bool postGUI = false, float faceX, faceY, faceZ])

Arguments

startX, startY, startZfloat
Start.
endX, endY, endZfloat
End.
flipUVbool, optional = false
Flips the image.Different type in MTA:SA: float u
ufloat
Section X.
vfloat
Section Y.
usizefloat
Section width.
vsizefloat
Section height.Different type in MTA:SA: bool flipUV = false
materialstring|element
The material.
widthfloat
Strip width in metres.
colorint, optional = tocolor(255, 255, 255)
Tint.
postGUIbool, optional = false
Compatibility.Different type in MTA:SA: string stage = "postfx"
faceX, faceY, faceZfloat, optional
Front direction.

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

dxDrawMaterialSectionLine3D(float startX, float startY, float startZ, float endX, float endY, float endZ, float u, float v, float usize, float vsize, bool flipUV = false, texture material, float width, int color = tocolor(255,255,255,255), string stage = "postfx", float faceTowardX = nil, float faceTowardY = nil, float faceTowardZ = nil)

Returns

true if drawn.

Example

addEventHandler("onClientRender", root, function()
    dxDrawMaterialSectionLine3D(2500, -1660, 24, 2500, -1660, 20, 0, 0, 256, 128, "img/arkusz.png", 8)
end)

See also