kuca00_v2

RConsoleModule

Oct 17th, 2020
538
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _G.MainTable = {RConsole = {},Colors = {["black"] = "BLACK",["blue"] = "BLUE",["green"] = "GREEN",["cyan"] = "CYAN",["red"] = "RED",["magenta"] = "MAGENTA",["brown"] = "BROWN",["light_gray"] = "LIGHT_GRAY",["dark_gray"] = "DARK_GRAY",
  2.     ["light_blue"] = "LIGHT_BLUE",["light_green"] = "LIGHT_GREEN",["light_cyan"] = "LIGHT_CYAN",["light_red"] = "LIGHT_RED",["light_magenta"] = "LIGHT_MAGENTA",["yellow"] = "YELLOW",["white"] = "WHITE"
  3. }}
  4.  
  5. local MainTable = _G.MainTable
  6. function _G.MainTable.RConsole:RCerror(text)
  7.    rconsoleprint("@@RED@@")
  8.    rconsoleprint(text..'\n')
  9. end
  10.  
  11. function _G.MainTable.RConsole:RCwarn(text)
  12.    rconsoleprint("@@YELLOW@@")
  13.    rconsoleprint(text..'\n')
  14. end
  15.  
  16. function _G.MainTable.RConsole:RCprint(text,color)
  17.    rconsoleprint("@@"..color:upper().."@@")
  18.    rconsoleprint(text..'\n')
  19. end
  20.  
  21. return MainTable
RAW Paste Data