Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.92 KB | None | 0 0
  1. --[[-------------------------------------------------
  2. Notes:
  3.  
  4. > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running.
  5.     To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there.
  6. --]]-------------------------------------------------
  7.  
  8.  
  9. GUIEditor = {
  10.     tab = {},
  11.     staticimage = {},
  12.     tabpanel = {},
  13.     edit = {},
  14.     gridlist = {},
  15.     window = {},
  16.     label = {},
  17.     button = {}
  18. }
  19. addEventHandler("onClientResourceStart", resourceRoot,
  20.     function()
  21.         GUIEditor.window[1] = guiCreateWindow(355, 146, 560, 475, "", false)
  22.         guiWindowSetSizable(GUIEditor.window[1], false)
  23.  
  24.         GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 21, 542, 445, false, GUIEditor.window[1])
  25.  
  26.         GUIEditor.tab[1] = guiCreateTab("Spieler", GUIEditor.tabpanel[1])
  27.  
  28.         GUIEditor.edit[1] = guiCreateEdit(9, 9, 136, 26, "", false, GUIEditor.tab[1])
  29.         GUIEditor.label[1] = guiCreateLabel(168, 25, 342, 24, "Spieler", false, GUIEditor.tab[1])
  30.         guiSetFont(GUIEditor.label[1], "default-bold-small")
  31.         guiLabelSetColor(GUIEditor.label[1], 254, 0, 0)
  32.         guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
  33.         GUIEditor.button[1] = guiCreateButton(170, 59, 60, 27, "Kicken", false, GUIEditor.tab[1])
  34.         GUIEditor.button[2] = guiCreateButton(240, 59, 60, 27, "Bannen", false, GUIEditor.tab[1])
  35.         GUIEditor.button[3] = guiCreateButton(310, 59, 60, 27, "Muten", false, GUIEditor.tab[1])
  36.         GUIEditor.button[4] = guiCreateButton(380, 59, 60, 27, "Freezen", false, GUIEditor.tab[1])
  37.         GUIEditor.button[5] = guiCreateButton(450, 59, 60, 27, "Spectaten", false, GUIEditor.tab[1])
  38.         GUIEditor.label[2] = guiCreateLabel(168, 98, 342, 24, "Informationen", false, GUIEditor.tab[1])
  39.         guiSetFont(GUIEditor.label[2], "default-bold-small")
  40.         guiLabelSetColor(GUIEditor.label[2], 254, 0, 0)
  41.         guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
  42.         GUIEditor.label[3] = guiCreateLabel(168, 122, 56, 23, "Name:", false, GUIEditor.tab[1])
  43.         GUIEditor.label[4] = guiCreateLabel(168, 141, 56, 23, "IP:", false, GUIEditor.tab[1])
  44.         GUIEditor.label[5] = guiCreateLabel(168, 178, 56, 23, "Ping:", false, GUIEditor.tab[1])
  45.         GUIEditor.label[6] = guiCreateLabel(168, 159, 56, 23, "Serial:", false, GUIEditor.tab[1])
  46.         GUIEditor.gridlist[1] = guiCreateGridList(5, 35, 145, 376, false, GUIEditor.tab[1])
  47.         guiGridListAddColumn(GUIEditor.gridlist[1], "Spieler", 0.5)
  48.         guiGridListAddColumn(GUIEditor.gridlist[1], "Fraktion", 0.5)
  49.         GUIEditor.label[7] = guiCreateLabel(168, 201, 342, 24, "Ingame", false, GUIEditor.tab[1])
  50.         guiSetFont(GUIEditor.label[7], "default-bold-small")
  51.         guiLabelSetColor(GUIEditor.label[7], 254, 0, 0)
  52.         guiLabelSetHorizontalAlign(GUIEditor.label[7], "center", false)
  53.         GUIEditor.label[8] = guiCreateLabel(168, 225, 56, 23, "Leben:", false, GUIEditor.tab[1])
  54.         GUIEditor.label[9] = guiCreateLabel(247, 225, 56, 23, "Weste:", false, GUIEditor.tab[1])
  55.         GUIEditor.label[10] = guiCreateLabel(168, 244, 56, 23, "Skin:", false, GUIEditor.tab[1])
  56.         GUIEditor.label[11] = guiCreateLabel(168, 282, 56, 23, "Geld:", false, GUIEditor.tab[1])
  57.         GUIEditor.label[12] = guiCreateLabel(168, 263, 56, 23, "Waffen:", false, GUIEditor.tab[1])
  58.         GUIEditor.label[13] = guiCreateLabel(168, 300, 56, 23, "Ort:", false, GUIEditor.tab[1])
  59.         GUIEditor.label[14] = guiCreateLabel(384, 225, 56, 23, "X:", false, GUIEditor.tab[1])
  60.         GUIEditor.label[15] = guiCreateLabel(384, 244, 56, 23, "Y:", false, GUIEditor.tab[1])
  61.         GUIEditor.label[16] = guiCreateLabel(384, 263, 56, 23, "Z:", false, GUIEditor.tab[1])
  62.         GUIEditor.label[17] = guiCreateLabel(384, 282, 66, 23, "Dimension:", false, GUIEditor.tab[1])
  63.         GUIEditor.label[18] = guiCreateLabel(470, 282, 66, 23, "Interior:", false, GUIEditor.tab[1])
  64.         GUIEditor.label[19] = guiCreateLabel(168, 323, 342, 24, "Fahrzeuge", false, GUIEditor.tab[1])
  65.         guiSetFont(GUIEditor.label[19], "default-bold-small")
  66.         guiLabelSetColor(GUIEditor.label[19], 254, 0, 0)
  67.         guiLabelSetHorizontalAlign(GUIEditor.label[19], "center", false)
  68.         GUIEditor.label[20] = guiCreateLabel(168, 342, 56, 23, "Fahrzeug:", false, GUIEditor.tab[1])
  69.         GUIEditor.label[21] = guiCreateLabel(168, 361, 85, 23, "Fahrzeugleben:", false, GUIEditor.tab[1])
  70.         GUIEditor.staticimage[1] = guiCreateStaticImage(516, 4, 16, 16, ":guieditor/images/cross.png", false, GUIEditor.tab[1])
  71.  
  72.         GUIEditor.tab[2] = guiCreateTab("Fraktionen", GUIEditor.tabpanel[1])
  73.  
  74.         GUIEditor.gridlist[2] = guiCreateGridList(17, 13, 168, 165, false, GUIEditor.tab[2])
  75.         guiGridListAddColumn(GUIEditor.gridlist[2], "Fraktion", 0.9)
  76.         for i = 1, 9 do
  77.             guiGridListAddRow(GUIEditor.gridlist[2])
  78.         end
  79.         guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Triaden", false, false)
  80.         guiGridListSetItemColor(GUIEditor.gridlist[2], 0, 1, 20, 50, 100, 255)
  81.         guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Terroristen", false, false)
  82.         guiGridListSetItemColor(GUIEditor.gridlist[2], 1, 1, 125, 0, 0, 255)
  83.         guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "SFPD", false, false)
  84.         guiGridListSetItemColor(GUIEditor.gridlist[2], 2, 1, 20, 150, 0, 255)
  85.         guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Mafia", false, false)
  86.         guiGridListSetItemColor(GUIEditor.gridlist[2], 3, 1, 50, 50, 50, 255)
  87.         guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Los Aztecas", false, false)
  88.         guiGridListSetItemColor(GUIEditor.gridlist[2], 4, 1, 150, 150, 0, 255)
  89.         guiGridListSetItemText(GUIEditor.gridlist[2], 5, 1, "LTR", false, false)
  90.         guiGridListSetItemColor(GUIEditor.gridlist[2], 5, 1, 180, 130, 0, 255)
  91.         guiGridListSetItemText(GUIEditor.gridlist[2], 6, 1, "FBI", false, false)
  92.         guiGridListSetItemColor(GUIEditor.gridlist[2], 6, 1, 125, 125, 200, 255)
  93.         guiGridListSetItemText(GUIEditor.gridlist[2], 7, 1, "Army", false, false)
  94.         guiGridListSetItemColor(GUIEditor.gridlist[2], 7, 1, 0, 255, 0, 255)
  95.         guiGridListSetItemText(GUIEditor.gridlist[2], 8, 1, "Angels of Death", false, false)
  96.         guiGridListSetItemColor(GUIEditor.gridlist[2], 8, 1, 100, 50, 50, 255)
  97.         GUIEditor.button[6] = guiCreateButton(195, 15, 80, 27, "Respawnen", false, GUIEditor.tab[2])
  98.         GUIEditor.button[7] = guiCreateButton(195, 47, 90, 27, "Fraktionskasse", false, GUIEditor.tab[2])
  99.         GUIEditor.edit[2] = guiCreateEdit(25, 187, 150, 26, "Name", false, GUIEditor.tab[2])
  100.         GUIEditor.button[8] = guiCreateButton(35, 218, 131, 30, "zum Leader machen", false, GUIEditor.tab[2])
  101.         GUIEditor.staticimage[2] = guiCreateStaticImage(516, 5, 16, 16, ":guieditor/images/cross.png", false, GUIEditor.tab[2])
  102.         GUIEditor.edit[3] = guiCreateEdit(386, 187, 89, 26, "Name", false, GUIEditor.tab[2])
  103.         GUIEditor.edit[4] = guiCreateEdit(485, 187, 52, 26, "Rang", false, GUIEditor.tab[2])
  104.         GUIEditor.button[9] = guiCreateButton(396, 218, 131, 30, "Rang geben", false, GUIEditor.tab[2])
  105.         GUIEditor.button[10] = guiCreateButton(195, 78, 90, 27, "Teleportieren", false, GUIEditor.tab[2])    
  106.     end
  107. )
  108.  
  109. addEventHandler("onClientRender", root,
  110.     function()
  111.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  112.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  113.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  114.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  115.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  116.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  117.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  118.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  119.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  120.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  121.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  122.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  123.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  124.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  125.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  126.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  127.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  128.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  129.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  130.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  131.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  132.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  133.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  134.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  135.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  136.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  137.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  138.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  139.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  140.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  141.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  142.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  143.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  144.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  145.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  146.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  147.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  148.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  149.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  150.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  151.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  152.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  153.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  154.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  155.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  156.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  157.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  158.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  159.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  160.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  161.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  162.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  163.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  164.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  165.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  166.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  167.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  168.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  169.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  170.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  171.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  172.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  173.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  174.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  175.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  176.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  177.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  178.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  179.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  180.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  181.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  182.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  183.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  184.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  185.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  186.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  187.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  188.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  189.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  190.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  191.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  192.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  193.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  194.         dxDrawText("", 569, 382, 643, 423, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
  195.     end
  196. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement