hunter96 Posted November 13, 2013 Share Posted November 13, 2013 (edited) GUIEditor = { window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(601, 156, 197, 358, "PLAYER SHOP ver1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF17FF00") GUIEditor.staticimage[1] = guiCreateStaticImage(56, 22, 97, 82, ":playershop/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(55, 123, 100, 90, ":playershop/2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(53, 231, 107, 89, ":playershop/3.png", false, GUIEditor.window[1]) 1 = guiCreateButton(67, 102, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(1, "sa-header") 2 = guiCreateButton(67, 208, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(2, "sa-header") 3 = guiCreateButton(67, 317, 74, 27, "$700", false, GUIEditor.window[1]) guiSetFont(3, "sa-header") end ) guiSetVisible(GUIEditor.window[1],false) bindKey ( "M" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == 1 ) then triggerServerEvent("1",getLocalPlayer()) elseif (source == 2) then triggerServerEvent("2",getLocalPlayer()) elseif (source == 3) then triggerServerEvent("3",getLocalPlayer()) end end ) outputChatBox("~~~~لفتح شـوب الاعب إضغط (M)",255,255,0,true) outputChatBox("شوب الاعب من صنع هنتر",255,255,0,true) outputChatBox("playershop by hunter",255,255,0,true) Edited November 13, 2013 by Guest Link to comment
The Killer Posted November 13, 2013 Share Posted November 13, 2013 طيب طارح لنا الكود وش نسوي فيه ؟ وش مشكلته Link to comment
hunter96 Posted November 13, 2013 Author Share Posted November 13, 2013 طيب طارح لنا الكود وش نسوي فيه ؟ وش مشكلته مايفتح الشوب Link to comment
The Killer Posted November 13, 2013 Share Posted November 13, 2013 جرب GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(601, 156, 197, 358, "PLAYER SHOP ver1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF17FF00") GUIEditor.staticimage[1] = guiCreateStaticImage(56, 22, 97, 82, ":playershop/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(55, 123, 100, 90, ":playershop/2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(53, 231, 107, 89, ":playershop/3.png", false, GUIEditor.window[1]) 1 = guiCreateButton(67, 102, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(1, "sa-header") 2 = guiCreateButton(67, 208, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(2, "sa-header") 3 = guiCreateButton(67, 317, 74, 27, "$700", false, GUIEditor.window[1]) guiSetFont(3, "sa-header") guiSetVisible(GUIEditor.window[1],false) bindKey ( "M" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == 1 ) then triggerServerEvent("1",getLocalPlayer()) elseif (source == 2) then triggerServerEvent("2",getLocalPlayer()) elseif (source == 3) then triggerServerEvent("3",getLocalPlayer()) end end ) outputChatBox("~~~~لفتح شـوب الاعب إضغط (M)",255,255,0,true) outputChatBox("شوب الاعب من صنع هنتر",255,255,0,true) outputChatBox("playershop by hunter",255,255,0,true) Link to comment
hunter96 Posted November 13, 2013 Author Share Posted November 13, 2013 جرب GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(601, 156, 197, 358, "PLAYER SHOP ver1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF17FF00") GUIEditor.staticimage[1] = guiCreateStaticImage(56, 22, 97, 82, ":playershop/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(55, 123, 100, 90, ":playershop/2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(53, 231, 107, 89, ":playershop/3.png", false, GUIEditor.window[1]) 1 = guiCreateButton(67, 102, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(1, "sa-header") 2 = guiCreateButton(67, 208, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(2, "sa-header") 3 = guiCreateButton(67, 317, 74, 27, "$700", false, GUIEditor.window[1]) guiSetFont(3, "sa-header") guiSetVisible(GUIEditor.window[1],false) bindKey ( "M" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == 1 ) then triggerServerEvent("1",getLocalPlayer()) elseif (source == 2) then triggerServerEvent("2",getLocalPlayer()) elseif (source == 3) then triggerServerEvent("3",getLocalPlayer()) end end ) outputChatBox("~~~~لفتح شـوب الاعب إضغط (M)",255,255,0,true) outputChatBox("شوب الاعب من صنع هنتر",255,255,0,true) outputChatBox("playershop by hunter",255,255,0,true) نفس الشي ما تفتح اللوحة Link to comment
The Killer Posted November 13, 2013 Share Posted November 13, 2013 GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(601, 156, 197, 358, "PLAYER SHOP ver1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF17FF00") GUIEditor.staticimage[1] = guiCreateStaticImage(56, 22, 97, 82, ":playershop/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(55, 123, 100, 90, ":playershop/2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(53, 231, 107, 89, ":playershop/3.png", false, GUIEditor.window[1]) button1 = guiCreateButton(67, 102, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(1, "sa-header") button2 = guiCreateButton(67, 208, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(2, "sa-header") button3 = guiCreateButton(67, 317, 74, 27, "$700", false, GUIEditor.window[1]) guiSetFont(3, "sa-header") guiSetVisible(GUIEditor.window[1],false) bindKey ( "M" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == button1 ) then triggerServerEvent("1",getLocalPlayer()) elseif (source == button2) then triggerServerEvent("2",getLocalPlayer()) elseif (source == button3) then triggerServerEvent("3",getLocalPlayer()) end end ) outputChatBox("~~~~لفتح شـوب الاعب إضغط (M)",255,255,0,true) outputChatBox("شوب الاعب من صنع هنتر",255,255,0,true) outputChatBox("playershop by hunter",255,255,0,true) Link to comment
hunter96 Posted November 13, 2013 Author Share Posted November 13, 2013 GUIEditor = { window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(601, 156, 197, 358, "PLAYER SHOP ver1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF17FF00") GUIEditor.staticimage[1] = guiCreateStaticImage(56, 22, 97, 82, ":playershop/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(55, 123, 100, 90, ":playershop/2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(53, 231, 107, 89, ":playershop/3.png", false, GUIEditor.window[1]) button1 = guiCreateButton(67, 102, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(1, "sa-header") button2 = guiCreateButton(67, 208, 74, 27, "$500", false, GUIEditor.window[1]) guiSetFont(2, "sa-header") button3 = guiCreateButton(67, 317, 74, 27, "$700", false, GUIEditor.window[1]) guiSetFont(3, "sa-header") guiSetVisible(GUIEditor.window[1],false) bindKey ( "M" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEventHandler ("onClientGUIClick", root, function() if ( source == button1 ) then triggerServerEvent("1",getLocalPlayer()) elseif (source == button2) then triggerServerEvent("2",getLocalPlayer()) elseif (source == button3) then triggerServerEvent("3",getLocalPlayer()) end end ) outputChatBox("~~~~لفتح شـوب الاعب إضغط (M)",255,255,0,true) outputChatBox("شوب الاعب من صنع هنتر",255,255,0,true) outputChatBox("playershop by hunter",255,255,0,true) تــــــــــسلم ايدك ذا كيلر بس ياليت تقول لي ويش الخطأ في الكود عشان ما اغلط نفس الغلط مرة ثانية Link to comment
The Killer Posted November 13, 2013 Share Posted November 13, 2013 حياك الله @ الغلط انك حاط اسم الازرار 1 2 3 Link to comment
iMr.Dawix~# Posted November 13, 2013 Share Posted November 13, 2013 تــــــــــسلم ايدك ذا كيلر بس ياليت تقول لي ويش الخطأ في الكود عشان ما اغلط نفس الغلط مرة ثانية ماتقدر تسوي تعريف لأزرار او شيء معين بالأرقام تقدر بحرف ورقم بس رقم لحاله مايجي 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