Jump to content

get object from world map


iPanda

Recommended Posts

You can't "get the element", but you can get the object model with processLineOfSight.

I know little this function. My test was unsuccessful.

addEventHandler('onClientRender',root,function() 
    local w,h = guiGetScreenSize() 
    local tx,ty,tz = getWorldFromScreenPosition(w/2,h/2,2) 
    local px,py,pz = getCameraMatrix() 
    _,_,_,_,_,_,_,_,_,_,_,model = processLineOfSight(px,py,pz,tx,ty,tz,true,true,true,true,true,true,true,true,nil,true) 
    outputChatBox(tostring(model)) 
end) 

I would like to get the ID model world before player to the chat. Return nil. Can you fix my code, so I got what I need?

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