I have a stable script going but the only problem I have is three buttons are not set on the frame. I can't figure out how to do it so I am asking here.
put after the 'DButton' the frame name you want the button to be parented to.
[lua]
BypasserButton = vgui.Create('DButton',Menu)
[/lua]
Those names.
[LUA]
BypasserButton.DoClick = function()
require("cvar3")
GetConVar("sv_allowcslua"):SetFlags(0)
GetConVar("sv_cheats"):SetFlags(0)
GetConVar("sv_allowcslua"):SetValue(1)
GetConVar("sv_cheats"):SetValue(1)
end
[/LUA]
[QUOTE=Bo98;41265929]Those names.
[LUA]
BypasserButton.DoClick = function()
require("cvar3")
GetConVar("sv_allowcslua"):SetFlags(0)
GetConVar("sv_cheats"):SetFlags(0)
GetConVar("sv_allowcslua"):SetValue(1)
GetConVar("sv_cheats"):SetValue(1)
end
[/LUA][/QUOTE]
Haha, what do you mean :)
[editline]1st July 2013[/editline]
[QUOTE=BoowmanTech;41265909]put after the 'DButton' the frame name you want the button to be parented to.
[lua]
BypasserButton = vgui.Create('DButton',Menu)
[/lua][/QUOTE]
It is already parented. Anyways it didn't work.
[editline]1st July 2013[/editline]
Anymore Idea's?
Sorry, you need to Log In to post a reply to this thread.