Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.39 KB | None | 0 0
  1.  
  2. GUIEditor = {
  3.     label = {},
  4.     edit = {},
  5.     button = {},
  6.     window = {},
  7.     gridlist = {},
  8.     memo = {}
  9. }
  10. addEventHandler("onClientResourceStart", resourceRoot,
  11.     function()
  12. local screenW, screenH = guiGetScreenSize()
  13.         GUIEditor.window[1] = guiCreateWindow((screenW - 704) / 2, (screenH - 469) / 2, 704, 469, "Organization Name", false)
  14.         guiWindowSetSizable(GUIEditor.window[1], false)
  15.  
  16.         GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 525, 197, false, GUIEditor.window[1])
  17.         guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.3)
  18.         guiGridListAddColumn(GUIEditor.gridlist[1], "Last Login", 0.3)
  19.         guiGridListAddColumn(GUIEditor.gridlist[1], "Level", 0.3)
  20.         guiGridListAddRow(GUIEditor.gridlist[1])
  21.         guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "-", false, false)
  22.         guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "-", false, false)
  23.         guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "-", false, false)
  24.         GUIEditor.button[1] = guiCreateButton(544, 53, 151, 23, "Set Leader", false, GUIEditor.window[1])
  25.         GUIEditor.button[2] = guiCreateButton(543, 81, 152, 23, "Set HQ", false, GUIEditor.window[1])
  26.         GUIEditor.button[3] = guiCreateButton(542, 109, 153, 23, "Set Member", false, GUIEditor.window[1])
  27.         GUIEditor.button[4] = guiCreateButton(542, 138, 152, 23, "Set Probation", false, GUIEditor.window[1])
  28.         GUIEditor.button[5] = guiCreateButton(541, 195, 153, 23, "Kick Player", false, GUIEditor.window[1])
  29.         GUIEditor.button[6] = guiCreateButton(542, 167, 152, 23, "Invite Player", false, GUIEditor.window[1])
  30.         GUIEditor.label[1] = guiCreateLabel(562, 26, 117, 17, "HQ/Leader Functions", false, GUIEditor.window[1])
  31.         GUIEditor.memo[1] = guiCreateMemo(9, 255, 345, 204, "", false, GUIEditor.window[1])
  32.         GUIEditor.label[2] = guiCreateLabel(154, 239, 57, 16, "Info/News", false, GUIEditor.window[1])
  33.         GUIEditor.button[7] = guiCreateButton(358, 426, 75, 33, "Change", false, GUIEditor.window[1])
  34.         GUIEditor.button[8] = guiCreateButton(358, 383, 75, 33, "Save", false, GUIEditor.window[1])
  35.         GUIEditor.label[3] = guiCreateLabel(463, 358, 221, 15, "Bank:", false, GUIEditor.window[1])
  36.         guiSetFont(GUIEditor.label[3], "default-bold-small")
  37.         GUIEditor.edit[1] = guiCreateEdit(463, 414, 221, 35, "", false, GUIEditor.window[1])
  38.         GUIEditor.button[9] = guiCreateButton(463, 383, 105, 23, "Withdraw", false, GUIEditor.window[1])
  39.         GUIEditor.button[10] = guiCreateButton(579, 383, 105, 23, "Deposit", false, GUIEditor.window[1])
  40.         GUIEditor.memo[2] = guiCreateMemo(368, 255, 156, 93, "-\n-\n-\n-\n-", false, GUIEditor.window[1])
  41.         GUIEditor.label[4] = guiCreateLabel(418, 239, 57, 16, "Black List", false, GUIEditor.window[1])
  42.         GUIEditor.memo[3] = guiCreateMemo(538, 255, 156, 93, "-\n-\n-\n-\n-", false, GUIEditor.window[1])
  43.         GUIEditor.label[5] = guiCreateLabel(576, 239, 65, 16, "Pending List", false, GUIEditor.window[1])
  44.         GUIEditor.button[11] = guiCreateButton(566, 219, 115, 13, "Leave Org", false, GUIEditor.window[1])    
  45.     end
  46. )
  47.  
  48.  
  49.  
  50. --- Only HQ/Leader can change Blacklist and Pending and Info/News and kick and give level and kick players
  51.  
  52. -- Use /createorg [name] "to create Gang/squad/company"
  53. -- Use /org "to open panel if you're in a gang"
  54. -- Everyone can leave the gang, by use "Leave Org"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement