VlageZ Posted November 26, 2019 Share Posted November 26, 2019 (edited) --يوم ادخل البيك اب ما يعرض لي الفنكشن 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 addEventHandler( "onPickupHit", jobpick, drawdx ) Edited November 26, 2019 by VlageZ Link to comment
3NAD Posted November 26, 2019 Share Posted November 26, 2019 اكواد الدي اكس حطها في إيفنت "onClientRender" Link to comment
^A7M8D Posted November 26, 2019 Share Posted November 26, 2019 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 ) Link to comment
SycroX Posted November 26, 2019 Share Posted November 26, 2019 dxDrawRectangle + guiSetVisible ???? استخدم المتغيرات Link to comment
Do_De<3 Posted December 16, 2019 Share Posted December 16, 2019 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 ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now