DaminkO Posted April 19, 2016 Posted April 19, 2016 local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 378) / 2, 453, 378, "xX[Police Panel|لوحة شرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "9FFB0000") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(13, 40, 231, 314, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "xX[Player|اللاعب]Xx", 0.9) GUIEditor.button[1] = guiCreateButton(252, 47, 191, 42, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "9F0750F6") GUIEditor.button[2] = guiCreateButton(252, 167, 191, 42, "xX[Destroy|سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "9F0750F6") GUIEditor.label[1] = guiCreateLabel(260, 256, 173, 37, "By Am1N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 252, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.button[3] = guiCreateButton(394, 327, 29, 24, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "9FFB0000") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function
MR.GRAND Posted April 19, 2016 Posted April 19, 2016 local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 378) / 2, 453, 378, "xX[Police Panel|لوحة شرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "9FFB0000") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(13, 40, 231, 314, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "xX[Player|اللاعب]Xx", 0.9) GUIEditor.button[1] = guiCreateButton(252, 47, 191, 42, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "9F0750F6") GUIEditor.button[2] = guiCreateButton(252, 167, 191, 42, "xX[Destroy|سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "9F0750F6") GUIEditor.label[1] = guiCreateLabel(260, 256, 173, 37, "By Am1N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 252, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.button[3] = guiCreateButton(394, 327, 29, 24, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "9FFB0000") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 453) / 2, (screenH - 378) / 2, 453, 378, "xX[Police Panel|لوحة شرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "9FFB0000") guiSetVisible (GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(13, 40, 231, 314, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "xX[Player|اللاعب]Xx", 0.9) GUIEditor.button[1] = guiCreateButton(252, 47, 191, 42, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "9F0750F6") GUIEditor.button[2] = guiCreateButton(252, 167, 191, 42, "xX[Destroy|سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "9F0750F6") GUIEditor.label[1] = guiCreateLabel(260, 256, 173, 37, "By Am1N", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 252, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.button[3] = guiCreateButton(394, 327, 29, 24, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "9FFB0000") guiGridListClear ( GUIEditor.gridlist[1] ) for i, v in ipairs (getElementsByType ( "player" )) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], Row, 1, getPlayerName ( v ), false, false ) end function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then if(guiGetVisible(GUIEditor.window[1]) == false)then end guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end ) My new GCSS Script : Go حصريا : مود الدردشة بين السيرفرات : الذهاب LUA progress = -100% Join us : Multi Theft Auto Arab I'm not the best but, i'm different Skype : kamel1234128 Someone in this world needs to remember my love .
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