Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local test = LocalPlayer():GetEyeTrace().Entity
- local function wtfgarry( str )
- local w, h = 0, 0
- local expl = string.Explode( "\n", str )
- for i=1,#expl do
- local _w, _h = surface.GetTextSize( expl[i] )
- w = math.max(w,_w)
- h = h + _h
- end
- return w, h
- end
- function test:GetOverlayData()
- local tbl = {}
- tbl.prfbench = 100
- tbl.prfcount = 2050
- tbl.timebench = 1005
- tbl.txt = wtfgarry( "200\n300" )
- return tbl
- end
- local WorldTip = { dietime = 0 }
- WorldTip.dietime = SysTime() + 0.05
- WorldTip.ent = test
- hook.Add("HUDPaint","wire_draw_world_tips",function()
- --if SysTime() > WorldTip.dietime then return end
- local ent = WorldTip.ent
- if not IsValid(ent) then return end
- ent:DrawWorldTip()
- end)
Advertisement
Add Comment
Please, Sign In to add comment