Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. FONT: CaviarDreams.ttf
  2. URL: http://www.dafont.com/es/caviar-dreams.font
  3.  
  4.  
  5. CODE:
  6.  
  7. --[[-------------------------------------------------
  8. Notes:
  9.  
  10. > This code is using a custom font. This will only work as long as the location it is from always exists, and the resource it is part of is running.
  11. To ensure it does not break, it is highly encouraged to move custom fonts into your local resource and reference them there.
  12. --]]-------------------------------------------------
  13.  
  14.  
  15. GUIEditor = {
  16. gridlist = {},
  17. window = {},
  18. label = {}
  19. }
  20. addEventHandler("onClientResourceStart", resourceRoot,
  21. function()
  22. GUIEditor.window[1] = guiCreateWindow(468, 293, 421, 246, "Car Storage", false)
  23. guiWindowSetSizable(GUIEditor.window[1], false)
  24. guiSetAlpha(GUIEditor.window[1], 1.00)
  25.  
  26. GUIEditor.gridlist[1] = guiCreateGridList(12, 78, 164, 154, false, GUIEditor.window[1])
  27. guiGridListAddColumn(GUIEditor.gridlist[1], "Items", 0.9)
  28. GUIEditor.gridlist[2] = guiCreateGridList(244, 79, 164, 154, false, GUIEditor.window[1])
  29. guiGridListAddColumn(GUIEditor.gridlist[2], "Car Items", 0.9)
  30. GUIEditor.label[1] = guiCreateLabel(92, 32, 237, 28, "Use you car storage to save stuff such as \nweapons ammo, drugs, money.", false, GUIEditor.window[1])
  31. guiSetFont(GUIEditor.label[1], "default-bold-small")
  32. guiLabelSetColor(GUIEditor.label[1], 225, 225, 225)
  33. guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false)
  34. GUIEditor.label[2] = guiCreateLabel(192, 112, 36, 30, ">", false, GUIEditor.window[1])
  35. local font0_CaviarDreams = guiCreateFont(":guieditor/fonts/CaviarDreams.ttf", 22)
  36. guiSetFont(GUIEditor.label[2], font0_CaviarDreams)
  37. guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false)
  38. guiLabelSetVerticalAlign(GUIEditor.label[2], "bottom")
  39. GUIEditor.label[3] = guiCreateLabel(191, 172, 36, 30, "<", false, GUIEditor.window[1])
  40. guiSetFont(GUIEditor.label[3], font0_CaviarDreams)
  41. guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false)
  42. guiLabelSetVerticalAlign(GUIEditor.label[3], "bottom")
  43. GUIEditor.label[4] = guiCreateLabel(191, 92, 38, 20, "Add", false, GUIEditor.window[1])
  44. local font1_CaviarDreams = guiCreateFont(":guieditor/fonts/CaviarDreams.ttf", 10)
  45. guiSetFont(GUIEditor.label[4], font1_CaviarDreams)
  46. guiLabelSetColor(GUIEditor.label[4], 198, 30, 30)
  47. guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false)
  48. GUIEditor.label[5] = guiCreateLabel(187, 154, 44, 18, "Remove", false, GUIEditor.window[1])
  49. guiSetFont(GUIEditor.label[5], font1_CaviarDreams)
  50. guiLabelSetColor(GUIEditor.label[5], 28, 121, 199)
  51. guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false)
  52. GUIEditor.label[6] = guiCreateLabel(12, 54, 399, 15, "–––––––––––––––––––––––––––––––––––––––––––––––––––––––––", false, GUIEditor.window[1])
  53. guiLabelSetColor(GUIEditor.label[6], 136, 226, 19)
  54. GUIEditor.label[7] = guiCreateLabel(12, 21, 399, 15, "–––––––––––––––––––––––––––––––––––––––––––––––––––––––––", false, GUIEditor.window[1])
  55. guiLabelSetColor(GUIEditor.label[7], 136, 226, 19)
  56. end
  57. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement