First of all ill just say that these are the files in my gamemode:
cl_init – you know what it does
init – you know what it does
shared – you know what it does
PLoadout – contains the function for creating a vgui panel.
So what im trying to do is to have a console command for the player that runs the function that opens the VGUI, but as far as i know you need to put the “concommand.Add( “Test_Loadout”, EnableLP )” code in the cl_init file and i have the function it is executing EnableLP in PLoadout.lua so here is my question:
- Where do i put concommand.Add( “Test_Loadout”, EnableLP )?(shared, cl or init)
- How do i make it execute a command in another lua file?