Advertisement
Mister_Stefan

Primordial Tag (LWV4)

Feb 11th, 2022
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. menu.add_check_box("Watermark")
  2. menu.add_color_picker("color")
  3.  
  4. local font = render.create_font("Tahoma", 13, 80, false, true, false)
  5.  
  6. client.add_callback("on_paint", function()
  7.     if menu.get_bool("Watermark") then
  8.     local name = globals.get_username()
  9.     local text = "primordial - "..name
  10.     local widh = render.get_text_width(font, text)
  11.     local x = 0
  12.     local y = 0
  13.     local uv = menu.get_color("color")
  14.     local r, g, b, a = uv:r(), uv:g(), uv:b(), uv:a()
  15.     render.draw_rect_filled(x, y, 1, 20, color.new(r,g,b,255))
  16.     render.draw_rect_filled(x+1, y, widh+4, 20, color.new(20,20,20,120))
  17.     render.draw_text(font, x+3, y+3, color.new(255,255,255), text)
  18.     end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement