Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PostDrawOpaqueRenderables", "NPCPANEL", function()
- for _, ent in pairs (ents.FindByClass("panel")) do
- if ent:GetPos():Distance(LocalPlayer():GetPos()) < 500 then
- local Ang = ent:GetAngles()
- Ang:RotateAroundAxis( Ang:Forward(), 90)
- Ang:RotateAroundAxis( Ang:Right(), -90)
- cam.Start3D2D(ent:GetPos()+ent:GetUp()*76, Ang, 0.10)
- draw.SimpleTextOutlined( "la fonction", "la font", 0, 0, Color(255,255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 0, Color(255,255,255,255) )
- cam.End3D2D()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement