Dr.Marco Posted July 8, 2016 Share Posted July 8, 2016 ممكن تصحيح الاغلاط لي بلكلنت د FontWnd = guiCreateFont( "Font.ttf", 19 ) FontLabel = guiCreateFont( "Font.ttf", 13 ) FontButton = guiCreateFont( "Font.ttf", 13 ) guiSetFont(show, FontWnd) function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end GUIEditor = { gridlist = {}, window = {}, button = {} } wnd = guiCreateWindow(119, 119, 623, 390, " by Dr.Marco#لوحة الوزنيات وتشغيل هردز", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(wnd, 0.94) guiSetProperty(wnd, "CaptionColour", "FFC6D200") ok = guiCreateButton(393, 176, 215, 40,"# - Apply | تطبيق - #", false, wnd) guiSetFont(ok, "default-bold-small") guiSetProperty(ok, "NormalTextColour", "FF00FBE1") grid = guiCreateGridList(9, 27, 305, 346, false, wnd) guiSetFont(grid, FontWnd) guiGridListAddColumn(grid, "#", 0.2) guiGridListAddColumn(grid, "Handling", 0.7) guiSetAlpha(grid, 0.7) checkbox1 = guiCreateButton(512, 225, 212, 44, "تشغيل الهدرز / Start Hadrz", false, wnd) guiSetFont(checkbox1, "default-bold-small") guiSetProperty(checkbox1, "NormalTextColour", "FF00FBE1") checkbox2 = guiCreateButton(515, 354, 215, 38, "إيقاف الهدرز / Stop Hadrz", false, wnd) guiSetProperty(checkbox2, "default-bold-small", "FFE9FE00") addEventHandler("onClientGUIClick", root, function() if(source == checkbox1)then guiCheckBoxSetSelected ( checkbox2, false ) guiSetEnabled ( checkbox1, false ) guiSetEnabled ( checkbox2, true ) if(sound)then return end sound = playSound("http://play.media.weziwezi.com/wezi_mp3/mp3/3/8_tcObZMhRc.mp3",true) elseif(source == checkbox2)then guiSetEnabled ( checkbox2, false ) guiSetEnabled ( checkbox1, true ) guiCheckBoxSetSelected ( checkbox1, false ) if(sound)then stopSound(sound) sound = nil end end end ) guiSetVisible (wnd, false) for i,ha in ipairs(Handling) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,''..i..'-',false,false) guiGridListSetItemText(grid,row,2,ha[1],false,false) guiGridListSetIREtemData(grid,row,1,{ha[2],ha[3],ha[4]}) guiGridListSetItemColor(grid,row,2,math.random(0,200),math.random(0,200),math.random(0,188)) guiGridListSetItemColor(grid,row,1,math.random(0,200),math.random(0,200),math.random(0,188)) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == ok then if sel ~= -1 then if not isPedInVehicle(localPlayer) then return outputChatBox("ليس لديك سيارة لتطبيق الوزنية",255,0,0,true) end; local hand = unpack(guiGridListGetItemData(grid,sel,1)) importHandling(getPedOccupiedVehicle(localPlayer), hand, "SA") setTimer(function() guiSetVisible (wnd, false) end,900,1,true) outputChatBox(" تم تركيب الوزنية بنجاح ",255,255,0) else outputChatBox(" الرجاء اختيار وزنية ",255,255,0) end end end ) -------------------- -- start Font Font = guiCreateFont( "Font.ttf", 12 ) guiSetFont( grid, Font ) Font = guiCreateFont( "Font.ttf", 13 ) guiSetFont( ok, Font ) Font = guiCreateFont( "Font.ttf", 13 ) guiSetFont( checkbox1, Font ) Font = guiCreateFont( "Font.ttf", 13 ) guiSetFont( checkbox2, Font ) -- end Font Link to comment
Dr.Marco Posted July 8, 2016 Author Share Posted July 8, 2016 يظهر لي على هدا شكل وانا متاكد لوحتي مزبطها http://d.top4top.net/p_188jq0h1.jpg Link to comment
Dr.Marco Posted July 8, 2016 Author Share Posted July 8, 2016 طيب وش المشكلة بهذا الشكل ؟ http://d.top4top.net/p_188jq0h1.jpg انا متاكد اني مصمم شكل مزبوط بس لما حطيت الاكواد خرب Link to comment
Dr.Marco Posted July 8, 2016 Author Share Posted July 8, 2016 http://a.top4top.net/p_1899lp61.jpg debug Link to comment
' A F . Posted July 8, 2016 Share Posted July 8, 2016 بـ الاكواد كامله الي انت مسويها مافيه CheckBox 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