rendered paste bodyLUA_FUNCTION(listdirs){if (g_Lua->IsDedicatedServer()) { Error("This is a clientside command only"); return 0; }int nNumParameters = g_Lua->Top(); if (nNumParameters < 1 || nNumParameters > 1 ) { g_Lua->LuaError("Insufficient parameters!"); return 0; }const char* ListDir = g_Lua->GetString(1);char path[100];::GetCurrentDirectory(100,path);char* path2 = "b"; strcpy(path2, path);strcat(path2, "garrysmod/");strcat(path2, ListDir);if (DirectoryExists(path2)){//ScanDir(path2);}else Error("Directory not found");return 1;}