Jump to content

Problem with dxDrawLine3D


Kafka

Recommended Posts

Posted

Hello, I've got a problem. I'd like to create 3D line, but I can't. This is my script (clientside):

function makeLineAppear() 
    addEventHandler("onClientRender", getRootElement(), createLine) 
end 
function createLine ( ) 
    dxDrawLine3D ( "1396.0999755859", "-2577.8999023438", "13", "2068.6000976563", "-2577.8999023438", "13", tocolor ( 0, 255, 0, 230 ), 2) 
end 
addCommandHandler("test", makeLineAppear) 

/debugscript 3 doesn't show anything.

Guest Guest4401
Posted
function makeLineAppear() 
    addEventHandler("onClientRender", getRootElement(), createLine) 
end 
function createLine ( ) 
    dxDrawLine3D ( 1396.0999755859, -2577.8999023438, 13, 2068.6000976563, -2577.8999023438, 13, tocolor ( 0, 255, 0, 230 ), 2) 
end 
addCommandHandler("test", makeLineAppear) 

  • MTA Team
Posted

Please don't change your original post to update your finished code, this messes with the brains of people who read your topic after your problem has been solved and beats the purpose of having a forum.

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...