From d1a0277861b324e2920058e3b276baa32c478902 Mon Sep 17 00:00:00 2001 From: INeedGames Date: Sun, 3 Dec 2023 15:35:03 -0600 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 0a67b50..d950b41 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,18 @@ All files will be closed upon GSC restart (map_restart or fast_restart or missio // close the file ``` +* ` FS_ListFiles(, (optional))` Returns a list of files inside of the folder given. Can recurse if set to `true`. + ```gsc + files = FS_ListFiles("testfolder/"); + + for (i = 0; i < files.size; i++) + { + file - files[i]; // will be "testfolder/" + + // do something with the filename + } + ``` + # Installation Move the `t4sp-server-plugin.dll` to `%LOCALAPPDATA%\Plutonium\storage\t4\plugins\`, the plugin will be loaded when you start up a dedicated server for Plutonium T4SP.