iMr ~ MnHmAr Posted January 7, 2016 Share Posted January 7, 2016 GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(287, 66, 617, 637, "لــــــــــــوحـــــــــة آلــــــتــــــحـــــــــكــــــــــم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FE12D1B8") GUIEditor.button[1] = guiCreateButton(12, 26, 213, 73, "اليزر", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEEF0000") GUIEditor.button[2] = guiCreateButton(375, 26, 213, 73, "القوانين", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FE19CBB0") GUIEditor.button[3] = guiCreateButton(12, 139, 213, 73, "لوحة التحكم ب السياره", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FE17FD0B") GUIEditor.button[4] = guiCreateButton(12, 245, 213, 73, "لوحة حفظ الشخصيه", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FE0023F9") GUIEditor.button[5] = guiCreateButton(375, 139, 213, 73, "توب درفت", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FEDE04C2") GUIEditor.button[6] = guiCreateButton(375, 245, 213, 73, "لوحة حفظ المكان", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FEEF072D") GUIEditor.button[7] = guiCreateButton(12, 350, 213, 73, "الشكآويء", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(375, 350, 213, 73, "آلتــــرقــــيـات", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(56, 576, 345, 44, "^_^", false, GUIEditor.window[1]) local font0_PetitFormalScript = guiCreateFont("seguisym.ttf", 27) guiSetFont(GUIEditor.label[1], font0_PetitFormalScript) guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") end ) bindKey("F12","down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[1] then showCursor ( false ) executeCommandHandler ( "LASER" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[8] then showCursor ( false ) executeCommandHandler ( "رتب" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then showCursor ( false ) executeCommandHandler ( "cj" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[3] then showCursor (false) executeCommandHandler ( "car" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[6] then showCursor (false) executeCommandHandler ( "place" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then showCursor (false) executeCommandHandler ( "drift" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then showCursor (false) executeCommandHandler ( "القوانين" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then showCursor (false) executeCommandHandler ( "شيلات" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) عندي مشكله م تجي الوحه و الدي بوق يقول المشله ب السطر 39 Link to comment
' A F . Posted January 7, 2016 Share Posted January 7, 2016 تأكد ان الملف Client + صور الدي بوق Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 تأكد ان الملف Client + صور الدي بوق عدلته و خليته كذا GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(287, 66, 617, 637, "لــــــــــــوحـــــــــة آلــــــتــــــحـــــــــكــــــــــم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FE12D1B8") GUIEditor.button[1] = guiCreateButton(12, 26, 213, 73, "اليزر", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEEF0000") GUIEditor.button[2] = guiCreateButton(375, 26, 213, 73, "القوانين", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FE19CBB0") GUIEditor.button[3] = guiCreateButton(12, 139, 213, 73, "لوحة التحكم ب السياره", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FE17FD0B") GUIEditor.button[4] = guiCreateButton(12, 245, 213, 73, "لوحة حفظ الشخصيه", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FE0023F9") GUIEditor.button[5] = guiCreateButton(375, 139, 213, 73, "توب درفت", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FEDE04C2") GUIEditor.button[6] = guiCreateButton(375, 245, 213, 73, "لوحة حفظ المكان", false, GUIEditor.staticimage[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FEEF072D") GUIEditor.button[7] = guiCreateButton(12, 350, 213, 73, "الشكآويء", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(375, 350, 213, 73, "آلتــــرقــــيـات", false, GUIEditor.staticimage[1]) GUIEditor.label[1] = guiCreateLabel(56, 576, 345, 44, "", false, GUIEditor.window[1]) local font0_PetitFormalScript = guiCreateFont("seguisym.ttf", 27) guiSetFont(GUIEditor.label[1], font0_PetitFormalScript) guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") end ) function OpenWin()-- وظيفة فتح النافذة بزر if guiGetVisible ( GUIEditor.window[1] ) then -- اسم النافذة guiSetVisible ( GUIEditor.window[1], false )-- اسم النافذة showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true )-- اسم النافذة showCursor(true) guiSetInputEnabled(true) end end bindKey("F9", "down", OpenWin)-- اسم الزر الي تبيه انا حاط اف 2 بامكانك التعديل addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[1] then showCursor ( false ) executeCommandHandler ( "LASER" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[8] then showCursor ( false ) executeCommandHandler ( "رتب" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then showCursor ( false ) executeCommandHandler ( "cj" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[3] then showCursor (false) executeCommandHandler ( "car" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[6] then showCursor (false) executeCommandHandler ( "place" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then showCursor (false) executeCommandHandler ( "drift" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then showCursor (false) executeCommandHandler ( "القوانين" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then showCursor (false) executeCommandHandler ( "شيلات" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) [09:45:24] WARNING: S\C.lua:58: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'F9'] Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 آطرححَ الميتآ ~ ! Link to comment
' A F . Posted January 7, 2016 Share Posted January 7, 2016 تفضضل GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(287, 66, 617, 637, "لــــــــــــوحـــــــــة آلــــــتــــــحـــــــــكــــــــــم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FE12D1B8") GUIEditor.button[1] = guiCreateButton(12, 26, 213, 73, "اليزر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEEF0000") GUIEditor.button[2] = guiCreateButton(375, 26, 213, 73, "القوانين", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FE19CBB0") GUIEditor.button[3] = guiCreateButton(12, 139, 213, 73, "لوحة التحكم ب السياره", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FE17FD0B") GUIEditor.button[4] = guiCreateButton(12, 245, 213, 73, "لوحة حفظ الشخصيه", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FE0023F9") GUIEditor.button[5] = guiCreateButton(375, 139, 213, 73, "توب درفت", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FEDE04C2") GUIEditor.button[6] = guiCreateButton(375, 245, 213, 73, "لوحة حفظ المكان", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FEEF072D") GUIEditor.button[7] = guiCreateButton(12, 350, 213, 73, "الشكآويء", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(375, 350, 213, 73, "آلتــــرقــــيـات", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(56, 576, 345, 44, "^_^", false, GUIEditor.window[1]) local font0_PetitFormalScript = 'default-bold-small' guiSetFont(GUIEditor.label[1], font0_PetitFormalScript) guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") end ) bindKey("F9","down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[1] then showCursor ( false ) executeCommandHandler ( "LASER" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[8] then showCursor ( false ) executeCommandHandler ( "رتب" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then showCursor ( false ) executeCommandHandler ( "cj" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[3] then showCursor (false) executeCommandHandler ( "car" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[6] then showCursor (false) executeCommandHandler ( "place" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then showCursor (false) executeCommandHandler ( "drift" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then showCursor (false) executeCommandHandler ( "القوانين" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then showCursor (false) executeCommandHandler ( "شيلات" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 تفضضل GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(287, 66, 617, 637, "لــــــــــــوحـــــــــة آلــــــتــــــحـــــــــكــــــــــم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FE12D1B8") GUIEditor.button[1] = guiCreateButton(12, 26, 213, 73, "اليزر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FEEF0000") GUIEditor.button[2] = guiCreateButton(375, 26, 213, 73, "القوانين", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FE19CBB0") GUIEditor.button[3] = guiCreateButton(12, 139, 213, 73, "لوحة التحكم ب السياره", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FE17FD0B") GUIEditor.button[4] = guiCreateButton(12, 245, 213, 73, "لوحة حفظ الشخصيه", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FE0023F9") GUIEditor.button[5] = guiCreateButton(375, 139, 213, 73, "توب درفت", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FEDE04C2") GUIEditor.button[6] = guiCreateButton(375, 245, 213, 73, "لوحة حفظ المكان", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FEEF072D") GUIEditor.button[7] = guiCreateButton(12, 350, 213, 73, "الشكآويء", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(375, 350, 213, 73, "آلتــــرقــــيـات", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(56, 576, 345, 44, "^_^", false, GUIEditor.window[1]) local font0_PetitFormalScript = 'default-bold-small' guiSetFont(GUIEditor.label[1], font0_PetitFormalScript) guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") end ) bindKey("F9","down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[11] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GUIEditor.window[1],false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[1] then showCursor ( false ) executeCommandHandler ( "LASER" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[8] then showCursor ( false ) executeCommandHandler ( "رتب" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then showCursor ( false ) executeCommandHandler ( "cj" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[3] then showCursor (false) executeCommandHandler ( "car" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[6] then showCursor (false) executeCommandHandler ( "place" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then showCursor (false) executeCommandHandler ( "drift" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then showCursor (false) executeCommandHandler ( "القوانين" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[9] then showCursor (false) executeCommandHandler ( "شيلات" ) guiSetVisible (GUIEditor.window[1] ,false) end end ) م صزبط نفس الدي بوق جاني Link to comment
' A F . Posted January 7, 2016 Share Posted January 7, 2016 الغلط من عندك + جربته شغال ! Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 الغلط من عندك + جربته شغال ! وش الغلط والله موب شغال قسم بالله Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 قلتلك الغلط من عندك ! ! الغلط من الميتا ؟ Link to comment
iMr ~ MnHmAr Posted January 7, 2016 Author Share Posted January 7, 2016 قلتلك الغلط من عندك ! ! الغلط من الميتا ؟ كفو عدلت الميتا زي م قلت و زبط مشكور ي الغالي والله سويت 3 مودات كله نفس الخطا اخر شيء طلع من ميتا Link to comment
' A F . Posted January 7, 2016 Share Posted January 7, 2016 آلععَفو , حححَيآإكك آلله <3 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