HUD getting affected by Entites such as DarkRP Money etc.
6 replies, posted
The HUD gets a Draw.RoundedBox in it when I go near Money/Printers. Color Depends on which Color the Entity is using. For this instence it's red as the Money Entity uses Red.
https://files.facepunch.com/forum/upload/280061/f69e728f-1489-43e2-9ec4-6c7d301c60be/4030_screenshots_20180616021650_1.jpg
How it usually is without any Entities Spawned on the map.
https://files.facepunch.com/forum/upload/280061/95e4c380-24ef-4b52-b7a5-164b72e8dd12/4020_screenshots_20180616021700_1.jpg
Anyone have any idea how to fix this? It's really annoying.
My Code: HUD Problem -Click the Text
which line exacly is making the box that changes colors? like what code line
Added all the variables into the Pastecode now.
well great, i still dont know where the box gets created that changes colors. What line is it?
It should be the Upper part where the 2 Boxes are made that are supposed to be there.
but as said for some reason when you go close to Entities another one gets created.
SOLVED
Glad you sorted it out!
Just remember that without defining a variable as local, it makes it a global variable and available throughout the entire script. You don't necessarily need to make all variables local, it's just dependent on what you need it for.
Sorry, you need to Log In to post a reply to this thread.