XI_Alooy1212_IX Posted July 4, 2014 Share Posted July 4, 2014 (edited) outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true) outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true) GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00") GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009") guiEditSetReadOnly(GUIEditor.edit[2], true) guiSetVisible ( GUIEditor.window[1], false ) local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function if ( source == GUIEditor.button[1] ) then triggerServerEvent("give1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("give2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("give3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("give4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("give5",getLocalPlayer()) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent("give6",getLocalPlayer()) end end outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true) outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true) GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00") GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009") guiEditSetReadOnly(GUIEditor.edit[2], true) guiSetVisible ( GUIEditor.window[1], false ) local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function if ( source == GUIEditor.button[1] ) then triggerServerEvent("give1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("give2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("give3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("give4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("give5",getLocalPlayer()) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent("give6",getLocalPlayer()) end end Edited July 5, 2014 by Guest Link to comment
Do_De<3 Posted July 4, 2014 Share Posted July 4, 2014 شسمهه اول شي حط الكود lua ثآني شي وش تبي بزبطط !! Link to comment
acount deleted Posted July 4, 2014 Share Posted July 4, 2014 ممم لما استعمل كود lua عشان احطه هنا تجيني ذي انا زبطته له بس لحين يصلحو المشكلة بستعمل code text GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true) outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true) GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00") GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009") guiEditSetReadOnly(GUIEditor.edit[2], true) guiSetVisible ( GUIEditor.window[1], false ) end) local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("give1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("give2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("give3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("give4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("give5",getLocalPlayer()) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent("give6",getLocalPlayer()) end end ) Link to comment
XI_Alooy1212_IX Posted July 4, 2014 Author Share Posted July 4, 2014 (edited) شكرا بس لو تعطيني الرابط افضل لتحميل ^-^ Edited July 5, 2014 by Guest Link to comment
Do_De<3 Posted July 4, 2014 Share Posted July 4, 2014 جرب # GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true) outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true) GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00") GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009") guiEditSetReadOnly(GUIEditor.edit[2], true) guiSetVisible ( GUIEditor.window[1], false ) end) local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("give1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("give2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("give3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("give4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("give5",getLocalPlayer()) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent("give6",getLocalPlayer()) end 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("F2", "down", OpenWin) Link to comment
XI_Alooy1212_IX Posted July 5, 2014 Author Share Posted July 5, 2014 بس اوكي يسلموووو Link to comment
Do_De<3 Posted July 5, 2014 Share Posted July 5, 2014 بس اوكي يسلموووو ربي يسسلمك : #) حآول تختصر كودكك # Link to comment
XI_Alooy1212_IX Posted July 5, 2014 Author Share Posted July 5, 2014 المود شغال 100%100 بس لاكن لين بروح لل ماركار او اظغط اف2 و اظغط على البوتون مايطلع لي سيارة Link to comment
Max+ Posted July 5, 2014 Share Posted July 5, 2014 وشلون تبيه يعطيك سيارة وانت ماسويتها اصلا في السيرفر سايد ؟ مسوي ترقرات ومافي ايفينت لول , Link to comment
XI_Alooy1212_IX Posted July 5, 2014 Author Share Posted July 5, 2014 S.lua = السيرفر vehicle = {} addEvent("car1", true) addEventHandler("car1", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(522, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car2", true) addEventHandler("car2", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(431, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car3", true) addEventHandler("car3", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(506, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) vehicle = {} addEvent("car4", true) addEventHandler("car4", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) addEvent("car5", true) addEventHandler("car5", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(571, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) addEvent("car6", true) addEventHandler("car6", root, function() if (getPlayerMoney (source) >= 0) then takePlayerMoney(source, 0) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(493, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) Link to comment
Max+ Posted July 5, 2014 Share Posted July 5, 2014 , واضح السكربت مهو , لك ونظام النسخ واللصق ماحبه , اصلا مكرر التيبل على كل ايفينت , - والايفنت اسم لحال وبالكلاينت اسم لحال , ومكرر حذف السيرفر نفس الايفنت 6 مرات ومتحقق من الفلوس اذا كانت 0 شيل التحقق وخله يسوي السيارة على طول , vehicle = {} addEvent("give1", true) addEventHandler("give1", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(522, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEvent("give2", true) addEventHandler("give2", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(431, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEvent("give3", true) addEventHandler("give3", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(506, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEvent("give4", true) addEventHandler("give4", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEvent("give5", true) addEventHandler("give5", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(571, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEvent("give6", true) addEventHandler("give6", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(493, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end ) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end) Link to comment
XI_Alooy1212_IX Posted July 5, 2014 Author Share Posted July 5, 2014 فقط كود الماركر منسوخ و الباقي انا ^*^ + تسلم على المساعدة ربي يوفقك Link to comment
Max+ Posted July 5, 2014 Share Posted July 5, 2014 + الكلاينت مرتب , حاول تختصر زي ماسويت لك , GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("Car Panel By Alooy1212 | To OPen/close F2",0,255,0,true) outputChatBox("لوحة اختيار السيارت من صنع علوي1212 | لفتح\اغلاق الوحة أف2",0,255,0,true) GUIEditor.window[1] = guiCreateWindow(138, 118, 508, 387, " لوحة أختيار السيارت والدراجات النارية", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEBF00") GUIEditor.button[1] = guiCreateButton(14, 42, 477, 43, "#%NRG-500%# | #%دراجة نارية#%", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(14, 95, 477, 43, "@!BUS!@ | @!بأاأاأص!@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(14, 148, 477, 43, "^*^CAR#1 | سيارة #1 ^*^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(14, 201, 477, 43, "!!Car#2 | سيارة #2!!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") GUIEditor.button[5] = guiCreateButton(14, 254, 477, 43, "^_^CAR#3 ^|^ سيارة#3^_^", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") GUIEditor.button[6] = guiCreateButton(14, 307, 477, 43, "@_@JETMAX $|$ طراد@_@", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(17, 350, 474, 27, " Welcome To The server to Close F2 | حياكم الله في السيرفر للغلاق الوحة أف2", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FFBE00C5") guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.edit[2] = guiCreateEdit(14, 19, 477, 23, " To Get A Car Just Press The Button | لختيار السيارة فقط اظغط الزر ", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.edit[2], "NormalTextColour", "FFC60009") guiEditSetReadOnly(GUIEditor.edit[2], true) guiSetVisible ( GUIEditor.window[1], false ) end) local marker1 = createMarker ( 1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) local marker2 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) local marker3 = createMarker ( 1938.7473144531,-2149.123046875,13.553205490112,"cylinder",2, 0,255, 0, 255) local marker4 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) local marker5 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) local marker6 = createMarker ( 1536.2789306641,-1686.3870849609,13.546875,"cylinder",2, 0,255, 0, 255) addEventHandler ( "onClientMarkerHit", marker1, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker2, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker3, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker4, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker5, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler ( "onClientMarkerHit", marker6, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end,false ) addEventHandler("onClientGUIClick",GUIEditor.button[6], function ( ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end,false) addEventHandler("onClientGUIClick", root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent("give1",getLocalPlayer()) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("give2",getLocalPlayer()) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent("give3",getLocalPlayer()) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent("give4",getLocalPlayer()) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent("give5",getLocalPlayer()) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent("give6",getLocalPlayer()) end 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("F2", "down", OpenWin) 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