Jump to content

Problem with dxDrawLine3D


Kafka

Recommended Posts

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.

Link to comment
Guest Guest4401
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) 

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