Man of surprises Posted June 27, 2018 Share Posted June 27, 2018 (edited) السلام عليكم ورحمه الله وبركاته سكريب عبارة عن ايتد بوكس انا اكتب في الاحداثيات ودوس زر يتكون بيك اب بس ما بيتكون ما اعرف ليش السكريبت اهو addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(198, 198, 488, 204, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(140, 69, 217, 34, "0, 0, 0", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(371, 157, 107, 37, "تفعيل", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00ACFC") end ) function Key () local Visible = guiGetVisible(GUIEditor.window[1]) if Visible == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey("F3", "down", Key) function Test () local V = guiGetVisible(GUIEditor.window[1]) if V == true then if source == GUIEditor.button[1] then local x, y, z = guiGetText(GUIEditor.edit[1]) createPickup(x, y, z, 3, 1212) end end addEventHandler("onClientGUIClick", root, Test) Edited June 27, 2018 by w.T|{K}iller_PrO Link to comment
Trefeor Posted June 27, 2018 Share Posted June 27, 2018 GUIEditor = { window = { } , edit = { } , button = { } } addEventHandler("onClientResourceStart", resourceRoot,function() GUIEditor.window[1] = guiCreateWindow(198, 198, 488, 204, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(140, 69, 217, 34, "0, 0, 0", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(371, 157, 107, 37, "تفعيل", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00ACFC") end ) ; bindKey("f3","down",function() local Visible = guiGetVisible(GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],not Visible) showCursor(not Visible) end ) addEventHandler("onClientGUIClick",root,function() if ( source == GUIEditor.button[1] ) then local pos = guiGetText ( GUIEditor.edit[1] ) local position = split ( pos , "," ); if ( position and type ( position ) == "table" and #position == 3 ) then createPickup(position[1],position[2],position[3], 3, 1212) outputChatBox ( "* Done " , 0,255,0, true) end end end) 1 Link to comment
Man of surprises Posted June 27, 2018 Author Share Posted June 27, 2018 24 minutes ago, Trefeor said: GUIEditor = { window = { } , edit = { } , button = { } } addEventHandler("onClientResourceStart", resourceRoot,function() GUIEditor.window[1] = guiCreateWindow(198, 198, 488, 204, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(140, 69, 217, 34, "0, 0, 0", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(371, 157, 107, 37, "تفعيل", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00ACFC") end ) ; bindKey("f3","down",function() local Visible = guiGetVisible(GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1],not Visible) showCursor(not Visible) end ) addEventHandler("onClientGUIClick",root,function() if ( source == GUIEditor.button[1] ) then local pos = guiGetText ( GUIEditor.edit[1] ) local position = split ( pos , "," ); if ( position and type ( position ) == "table" and #position == 3 ) then createPickup(position[1],position[2],position[3], 3, 1212) outputChatBox ( "* Done " , 0,255,0, true) end end end) ظبط معي تسلم يدك 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