Tokio

[QUESTION] How to fix this in dxDrawMaterialLine3D?

Recommended Posts

local image = dxCreateTexture( "tesztkep.jpg" )
local white = tocolor(255,255,255,255)

addEventHandler("onClientRender", root,function()
dxDrawMaterialLine3D( 2463.71143, -1658.97595, 15.31024,2463.55469, -1651.24609, 15.47028,image,7,white )
end)

this is my code, and this is the problem:

 

how to fix this rotation problem?

Share this post


Link to post

I don't get it, you do have it fixed in the second picture, what do you want it to look like?

Share this post


Link to post

@50cent you should read the function carefully... the last 3 arguments of that function is face toward xyz, which makes your material's facing fix, and NOT relative to the player.

Share this post


Link to post

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.