• Any way to make the DrawWireframeBox lines thicker ?
    2 replies, posted
Hi, I just finished my server's safezone (the one at spawn) I used DrawWireframeBox but it's hardly noticable, the lines are very thin. Also the box is visible trough walls, what do i need to do to disable it ? And to finish, i want to delete all prop entering this safe zone, i kinda made it but it's only removing physic props, i want to delete buttons etc. My code so far : box draw : function DrawSafeZone()   render.DrawWireframeBox( Vector(0,0,0), Angle(0,0,0), Vector(640.018677, 799.989685, -143.968750), Vector(1023.974792, -896.031250, 64.006676), Color(255,0,0,255), true ) end delete props : function CheckSafeZoneEntities()   local entitiesInSafeZone = ents.FindInBox(Vector(640.018677, 799.989685, -143.968750),Vector(1023.974792, -896.031250, 64.006676))   for _,ent in pairs(entitiesInSafeZone) do     if ent:IsPlayer() then       if not ent.IsInSafeZone then         ent.IsInSafeZone = true         --if ent.IsInSafeZone then  ent:ChatPrint("ent:playersInSafeZone = true") end       end     elseif ent:GetClass() == "prop_physics" then       ent:Remove()     end   end   local players = player.GetAll()   for _,ply in pairs(players) do     if not table.HasValue(entitiesInSafeZone,ply) and ply.IsInSafeZone then       ply.IsInSafeZone = false       --dif not ply.IsInSafeZone then ply:ChatPrint("ent:playersInSafeZone = false") end     end   end end Thanks in advance for any tips
So I have searched and found this https://github.com/Facepunch/garrysmod/tree/master/garrysmod/gamemodes/sandbox/entities/entities this'll help you to remove gmod entities like buttons.
The final argument for drawwireframebox needs to be false to make it stop drawing through walls. To make it thicker, I recommend using a bordered material and using render.DrawBox
Sorry, you need to Log In to post a reply to this thread.