wyozi-gmod / imgui

Immediate mode 3D2D UI for Garry's Mod
MIT License
79 stars 21 forks source link

Why is imgui bugging if another condition is in the if (imgui.Entity3D2D(self, Vector(-71, -95, 2), Angle(0, 90, 0), 0.1)) then #32

Closed Pdzly closed 2 years ago

Pdzly commented 3 years ago

If i make it to for example:

if (imgui.Entity3D2D(self, Vector(-71, -95, 2), Angle(0, 90, 0), 0.1), LocalPlayer():IsAdmin()) then

it function if the user started with the permission but if he is for example not anymore admin and become admin again it wont work anymore

Is this a thing from gmod or its a glitch?

wyozi commented 3 years ago

I don't know how that code even works. Anyway, IsAdmin check should be before Entity3D2D call

Pdzly commented 3 years ago

ok i tested it both ways but still nope

wyozi commented 3 years ago

Not sure then. Would have to see more code to say for sure

Pdzly commented 3 years ago

yeah of course i will make you an example