Jump to content

طلب كودد


EH10

Recommended Posts

Event's : onClientRender , onClientResourceStart
guiGetScreenSize 
getElementPosition -- للماركر 
getScreenFromWorldPosition 
getCameraMatrix 
getDistanceBetweenPoints3D 
dxDrawImage 

امم ممكن تقولي وش دخل

  
getCameraMatrix 
  

بالي طلبةة

Link to comment
-- Client Side # 
local marker = createMarker(x,y,z,'cylinder',3,255,255,255,0) 
  
addEventHandler('onClientRender',root,function() 
    local px,py,pz = getElementPosition(localPlayer) 
    local x,y,z = getElementPosition(marker) 
        if getDistanceBetweenPoints3D(px,py,pz,x,y,z) <= 15 then 
            local x,y = getScreenFromWorldPosition(x,y,z) 
                if x and y then 
                    dxDrawImage(x,y,x,y,'filePath') 
            end 
        end 
    end 
) 
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...