خلف
Members-
Posts
57 -
Joined
-
Last visited
-
Days Won
1
خلف last won the day on January 26 2017
خلف had the most liked content!
Details
-
Gang
-
-
Location
السعودية
-
Occupation
الرياض
-
Interests
-
Recent Profile Visitors
1,055 profile views
خلف's Achievements
Snitch (10/54)
40
Reputation
-
صورة <> جنب الفيسات ورح تحت ع اليمين و اختر الغة
-
وعليكم السلآم مود بطل موب غريبة عليك أهنيك صراحة اذا تعبت عليه بيعه
-
^iiEcoo'x_) started following خلف
-
startResource ( getResourceFromName ( "shader_water" ) )
-
https://wiki.multitheftauto.com/wiki/SetElementPosition
-
سوي متغير فيلس اذا دخل الماوس يتحقق انه فيلس و حط تايمر ع المدة حقت الانميشن يصير ترو واعكس الوضع مع حدث خروجه
-
GUIEditor = { combobox = {}, edit = {}, button = {}, window = {}, gridlist = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() triggerServerEvent ( "onScirpt", source ) GUIEditor.window[1] = guiCreateWindow(215, 138, 464, 275, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 30, 348, 117, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Text", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "ad", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "card", 0.2) GUIEditor.edit[1] = guiCreateEdit(9, 206, 207, 27, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(256, 225, 198, 40, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(145, 152, 92, 28, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.combobox[1] = guiCreateComboBox(268, 167, 186, 100, "", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "stc") end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[1] then local Text = guiGetText ( GUIEditor.edit[1] ) local CardType = guiComboBoxGetItemText(GUIEditor.combobox[1], guiComboBoxGetSelected(GUIEditor.combobox[1])) local Adham = guiGetText ( GUIEditor.memo[1] ) local aRow = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 1, Text,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 3, CardType,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 2, Adham,false,false) triggerServerEvent ( "Handler", localPlayer, Text, Adham, CardType ) end end ) addEvent ( "lol", true ) addEventHandler ( "lol", root, function ( table ) guiGridListClear(GUIEditor.gridlist[1]) for i, Vaule in ipairs (table) do local aRow = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 1, Vaule.text,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 2, Vaule.CardType,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],aRow, 3, Vaule.Adham,false,false) end end ) -- Server executeSQLQuery( "CREATE TABLE IF NOT EXISTS Systems (text,CardType,Adham)" ) addEvent ( "onScirpt", true ) addEventHandler ( "onScirpt", root, function ( ) local SQLListe = executeSQLQuery ( "SELECT * FROM Systems " ) if #SQLListe ~= 0 then triggerClientEvent ( client, "lol", client, SQLListe ) end end ) addEvent ( "Handler", true ) addEventHandler ( "Handler", root, function ( text, CardType, Adham ) executeSQLQuery("INSERT INTO Systems ( text, CardType, Adham ) VALUES ( ?, ?, ? )", tostring ( text ), tostring ( CardType ), tostring ( Adham ) ) end ) سويت لك مثال كامل لاني والله ما فهمت عليك
-
خذ ذا كود يساعدك local screenW, screenH = guiGetScreenSize ( ) local dxDrawRectangle_, dxDrawText_, dxDrawLine_ = dxDrawRectangle, dxDrawText, dxDrawLine function dxDrawRectangle ( x, y, w, h, color, postGUI ) dxDrawRectangle_ ( x / 800 * screenW, y / 600 * screenH, w / 800 * screenW, h/ 600 * screenH, color, postGUI ) end function dxDrawText ( text, x, y, w, h, color, size, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning ) dxDrawText_ ( text, x / 800 * screenW, y / 600 * screenH, w / 800 * screenW, h/ 600 * screenH, color, size, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning ) end function dxDrawLine ( x, y, w, h, color, size, postGUI ) dxDrawLine_ ( x / 800 * screenW, y / 600 * screenH, w / 800 * screenW, h/ 600 * screenH, color, size, postGUI ) end بدل 800 و 600 بمقاس شاشتك الكود حق تنطيل
-
showCursor(false) ضفه تحت removeEventHandler("onClientRender",root,dx)
-
guiGridListGetItemText -- يجيب المكتوب بالقريد ليست guiGridListGetSelectedItem -- يجيب الي انت محدده
