Derma Panel problem

Hello !

I made a menu that opens when you press the f8 key there is an error in the console that spam And I do not how to solve the problem . Please help me .

Here is my code:

if input.IsKeyDown( KEY_F8 ) && not IsValid( Frame ) && not vgui.CursorVisible() then
Frame = vgui.Create( “DFrame”)
Frame:SetSize( 300, 300 )
Frame:SetTitle( “” )
Frame.Paint = function( self, w, h )
draw.RoundedBox( 0, 0, 0, w, h, Color( 231, 76, 60, 150 ) )

spam an error in console this:

[ERROR] addons/centre-help/lua/autorun/cl_frame.lua:2: attempt to index global ‘input’ (a nil value)

  1. fn - addons/centre-help/lua/autorun/cl_frame.lua:2
  2. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109

It’s erroring because you’re running this hook Serverside, when you should only run clientside, as the functions you’re trying to use and else are only clientside.

Drop cl_frame.lua into autorun/client/