# DHwROk ~ Posted July 22, 2015 Share Posted July 22, 2015 السلام عليكمم ورحمهه الله وبركاتهه انا سويت لوحة وفيها زر البوتون وحطيت لوحة داخل زر البوتون بس المشكلة لما اضغط على زر البوتون تطلع اللوحة لي بس بدون الفأرة أتمنى تساعدوني آلاكوآد GUIEditor = { label = {}, button = {}, } guiSetVisible (wnd, false) d = guiCreateWindow(234, 104, 599, 487, "=[ لوحة اف 12 ]=", false) guiWindowSetSizable(d, false) guiSetAlpha(d, 1.00) guiSetVisible(d,false) guiSetProperty(d, "CaptionColour", "FF3FF806") n = guiCreateButton(20, 35, 246, 71, "=[ لــوحــة تــحــويــل الــفــلــوس ]=", false, d) guiSetProperty(n, "NormalTextColour", "FF3FF806") GUIEditor.button[2] = guiCreateButton(323, 35, 246, 71, "", false, d) g = guiCreateButton(20, 143, 246, 71, "=[ لــوحــة حــفــظ مـــلابـس CJ ]=", false, d) guiSetProperty(g, "NormalTextColour", "FF3FF806") r = guiCreateButton(323, 35, 246, 71, "=[ لــوحــة الــتــعــديــل عــلــى الــمــوتــر ]=", false, d) guiSetProperty(r, "NormalTextColour", "FF3FF806") y = guiCreateButton(323, 144, 246, 71, "=[ لـــوحــة حــفــظ الــمــكــان ]=", false, d) guiSetProperty(y, "NormalTextColour", "FF3FF806") p = guiCreateButton(20, 248, 246, 71, "=[ لــوحــة إظـهــار الــســريـال ]=", false, d) guiSetProperty(p, "NormalTextColour", "FF3FF806") s = guiCreateButton(323, 248, 246, 71, "=[ لـــوحــة أخـــيـــار اللــيــزر ]=", false, d) guiSetProperty(s, "NormalTextColour", "FF3FF806") a = guiCreateButton(44, 365, 510, 91, "=[ لـــوحــة الاســئــلــة الـشـائــعــة ]=", false, d) guiSetProperty(a, "NormalTextColour", "C50377C1") GUIEditor.label[1] = guiCreateLabel(339, 9, 15, 15, "", false, d) bindKey("F12","down", function() if guiGetVisible(d) then guiSetVisible(d,false) showCursor(false) guiSetInputEnabled(false) else guiSetVisible(d,true) showCursor(true) guiSetInputEnabled(true) putPlayers() end end ) addEventHandler("onClientGUIClick",root, function () if source == n then if ( guiGetVisible(GUIEditor_Window[1]) == false ) then end guiSetVisible ( d, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == g then if ( guiGetVisible(addEventHandler("onClientGUIClick",root, function () if source == n then if ( guiGetVisible(GUIEditor_Window[1]) == false ) then end guiSetVisible ( d, false ) showCursor(false) guiSetInputEnabled(false) end end ) ) == false ) then end guiSetVisible ( d, false ) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == n then if ( guiGetVisible(GUIEditor_Window[1]) == false ) then end guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) end end ) function putRight(wnd) local sx,sy = guiGetScreenSize() local w,h = guiGetSize(wnd,false) local x,y = (sx - w)/2,(sy - h)/2 guiSetPosition(wnd,x,y,false) end GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(333, 187, 369, 354, "لوحة تحويل الفلوس", false) guiWindowSetSizable(GUIEditor_Window[1], false) guiWindowSetMovable(GUIEditor_Window[1], false) guiSetVisible(GUIEditor_Window[1], false) putRight(GUIEditor_Window[1]) guiSetProperty(GUIEditor_Window[1], "CaptionColour", "FFFF0000") LB1 = guiCreateLabel(11, 22, 175, 18, "اختيار لاعب من القائمة", false, GUIEditor_Window[1]) guiSetFont(LB1, "default-bold-small") guiLabelSetColor(LB1, 255, 255, 0) LB2 = guiCreateLabel(222, 40, 116, 18, "معلومات الاعب", false, GUIEditor_Window[1]) guiSetFont(LB2, "default-bold-small") guiLabelSetColor(LB2, 255, 0, 0) LB3 = guiCreateLabel(222, 112, 137, 21, "_____________________", false, GUIEditor_Window[1]) guiSetFont(LB3, "default-bold-small") guiLabelSetColor(LB3, 0, 0, 0) LB4 = guiCreateLabel(222, 133, 45, 18, "بحث", false, GUIEditor_Window[1]) guiSetFont(LB4, "default-bold-big") guiLabelSetColor(LB4, 255, 0, 0) SearchBar = guiCreateEdit(222, 151, 136, 27, "", false, GUIEditor_Window[1]) LB5 = guiCreateLabel(221, 184, 137, 21, "_____________________", false, GUIEditor_Window[1]) guiSetFont(LB5, "default-bold-small") guiLabelSetColor(LB5, 0, 0, 0) GUIEditor_Grid[1] = guiCreateGridList(11, 44, 201, 300, false, GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1], 2) column = guiGridListAddColumn(GUIEditor_Grid[1], "Player List", 1) GUIEditor_Label[3] = guiCreateLabel(222, 63, 137, 22, "الاعب:", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[3], "default-bold-small") guiLabelSetColor(GUIEditor_Label[3], 255, 255, 0) GUIEditor_Label[4] = guiCreateLabel(222, 90, 137, 22, "فلوسك:", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4], "default-bold-small") guiLabelSetColor(GUIEditor_Label[4], 255, 255, 0) playern = guiCreateEdit(223, 223, 136, 27, "", false, GUIEditor_Window[1]) guiEditSetReadOnly(playern, true) playerm = guiCreateEdit(224, 270, 135, 27, "", false, GUIEditor_Window[1]) guiEditSetMaxLength ( playerm, 9 ) GUIEditor_Label[8] = guiCreateLabel(223, 205, 45, 18, "الاعب", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[8], "default-bold-small") guiLabelSetColor(GUIEditor_Label[8], 255, 0, 0) GUIEditor_Label[9] = guiCreateLabel(222, 255, 45, 18, "المبلغ", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[9], "default-bold-small") guiLabelSetColor(GUIEditor_Label[9], 255, 0, 0) GUIEditor_Button[1] = guiCreateButton(224, 309, 135, 25, "تـحـويـل", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1], "default-bold-small") guiSetProperty(GUIEditor_Button[1], "NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[1], "HoverTextColour", "FF00FF00") GUIEditor_Button[2] = guiCreateButton(172, 22, 40, 18, "تحديث", false, GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2], "default-small") guiSetProperty(GUIEditor_Button[2], "NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2], "HoverTextColour", "FF00FF00") Rights = guiCreateLabel(320, 336, 45, 18, "by Mr.sy[R]ia", false, GUIEditor_Window[1]) guiSetFont(Rights, "default-small") guiLabelSetColor(Rights, 255, 0, 0) setname = function() local player = guiGridListGetItemText(GUIEditor_Grid[1], guiGridListGetSelectedItem(GUIEditor_Grid[1]), 1) if source == GUIEditor_Grid[1] then guiSetText(playern, player) end end addEventHandler("onClientGUIClick", getRootElement(), setname) Refreshbtn = function() if source == GUIEditor_Button[2] then Refresh () end end addEventHandler("onClientGUIClick", getRootElement(), Refreshbtn) send = function() local p_Name = guiGetText(playern) local p_Money = guiGetText(playerm) if source == GUIEditor_Button[1] then if string.find(p_name, getPlayerName(getLocalPlayer())) then outputChatBox("You can't transfer money to yourself!", 255, 0, 0 , true) local sound2 = playSound("sounds/Nofity.mp3") setSoundVolume(sound2, 3.5) else if not string.find(p_name, getPlayerName(getLocalPlayer())) then if not string.find(p_money, " ") then if not string.find(p_money, "-") then if not string.find(p_money, "+") then if tonumber(p_money) then triggerServerEvent("onPlayerSend", getLocalPlayer(), p_name, p_money) local sound = playSound("sounds/Done.mp3") setSoundVolume(sound, 1) elseif source == GUIEditor_Button[2] then Refresh () end end end end end end end end addEventHandler("onClientGUIClick", getRootElement(), send) clientsideResourceStart = function() if column then for id,playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, column, getPlayerName(playeritem), false, false) end end end addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart ) function Refresh () guiGridListClear ( GUIEditor_Grid[1] ) if column then for id,playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1], row, column, getPlayerName(playeritem), false, false) end end end Link to comment
EH10 Posted July 22, 2015 Share Posted July 22, 2015 showCursor(false) # حاط false # يعني يشيل الماوسس خليه # showCursor(true) Link to comment
M[ROYAL]R Posted July 23, 2015 Share Posted July 23, 2015 showCursor(false) --يشيل الماوس showCursor(true) -- يشغل الماوس 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