Jump to content

dxDrawMaterialLine3D


ZL|LuCaS

Recommended Posts

is the first time I'm using dxDraw Material Line3D.

  and I have a pobrêma the image does not increase from the middle out

I want increases from inside to outside.

can someone help me?

local material = dxCreateTexture( "zz.png" ) 
  
--position the image increases 
local x, y, z = -1337.2880859375, -128.0078125, 14.1484375 
--position the image increases 
  
  
v= 0 
local TextColor = tocolor( 255,255,255,255 ) 
addEventHandler( "onClientRender", root, 
    function() 
    if gamemode == "Deathmatch" then 
    TextColor = tocolor( 255,255,255,160 ) 
    end 
        v = v+1 
    outputDebugString(v) 
    if v == 20 then 
    v = 0 
    outputDebugString(v) 
    end 
        dxDrawMaterialLine3D( x, y, z, x, y+v, z , material, v, TextColor, x, y, z-1) 
    end 
) 

Edited by Guest
Link to comment

Ahh, now I get it.

You also have to change the x,y of the image, since its always the upper left corner, not the center.

So try to use something like this:

 dxDrawMaterialLine3D( x, y-(v/2), z, x, y+v, z , material, v, TextColor, x, y, z-1) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...