Sign in to follow this  
VlageZ

مشكله بفنكشن دي اكس

Recommended Posts

--يوم ادخل البيك اب ما يعرض لي الفنكشن
function
 drawdx()
    jobjoinwindow = dxDrawImage(1072209208408":account/login-panel/backf10.png"000tocolor(255255255255), false)
    d1 = dxDrawRectangle(108329818727tocolor(010176), false)
    d2 = dxDrawRectangle(108326618727tocolor(137255137191), false)
    guiSetVisible(jobjoinwindow,false)
    guiSetVisible(d1,false)
    guiSetVisible(d2,false)
    centerWindow(jobjoinwindow)
    closejoinwindow = dxDrawText("1"10872991270325tocolor(255255255255), 1.30"default-bold""left""center"falsefalsetruefalsefalse)
    joinjobbutton =  dxDrawText("2"10872671270293tocolor(255255255255), 1.30"default-bold""left""center"falsefalsetruefalsefalse)
end
addEventHandler"onPickupHit", jobpick, drawdx )
Edited by VlageZ

Share this post


Link to post

اكواد الدي اكس حطها في إيفنت

"onClientRender"

Share this post


Link to post
function drawdx()
    jobjoinwindow = dxDrawImage(1072, 209, 208, 408, ":account/login-panel/backf10.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
    d1 = dxDrawRectangle(1083, 298, 187, 27, tocolor(0, 1, 0, 176), false)
    d2 = dxDrawRectangle(1083, 266, 187, 27, tocolor(137, 255, 137, 191), false)
    guiSetVisible(jobjoinwindow,false)
    guiSetVisible(d1,false)
    guiSetVisible(d2,false)
    centerWindow(jobjoinwindow)
    closejoinwindow = dxDrawText("1", 1087, 299, 1270, 325, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false)
    joinjobbutton =  dxDrawText("2", 1087, 267, 1270, 293, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false)
end



function showDxDrawing()
	addEventHandler ( "onClientRender", root, drawdx )
end
addEventHandler( "onPickupHit", jobpick, showDxDrawing )

 

Share this post


Link to post

local Img = "Image.png" -- Your Image and don't remove .png

function Dx()
  dxDrawImage(1072, 209, 208, 408, Img, 0, 0, 0, tocolor(255, 255, 255, 255), false)
  dxDrawRectangle(1083, 298, 187, 27, tocolor(0, 1, 0, 176), false)
  dxDrawRectangle(1083, 266, 187, 27, tocolor(137, 255, 137, 191), false)
  dxDrawText("1", 1087, 299, 1270, 325, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false)
  dxDrawText("2", 1087, 267, 1270, 293, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "center", false, false, true, false, false)
end


addEventHandler( "onPickupHit", root,function ()
	if ( source == YourPickup ) then
	addEventHandler ( "onClientRender", root, Dx)
	end
end
)

 

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.