Add new FS functions to Changelog

This commit is contained in:
Lion Kortlepel 2021-09-20 00:39:12 +02:00
parent 6f9f790c5b
commit 323184911d
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -7,9 +7,13 @@
- ADDED `MP.GetServerVersion() -> string`: Returns major,minor,patch version
- ADDED `MP.IsPlayerGuest(id) -> boolean`: Whether player with id is a guest
- ADDED `MP.Settings` table providing aliases for 0,1,2,etc. in MP.Set(id,val)
- ADDED `MP.PrintRaw` prints messages without `[TIME DATE] [LUA]` etc.
- ADDED `MP.PrintRaw(...)`: prints messages without `[TIME DATE] [LUA]` etc.
- ADDED `FS` table to host some effective filesystem manipulation functions
- ADDED `FS.CreateDirectory(path) -> bool,string` creates the path's directory (all missing pieces) and returns whether it fails and why if it did
- ADDED `FS.CreateDirectory(path) -> bool,string`: Creates the path's directory (all missing pieces) and returns whether it fails and why if it did
- ADDED `FS.Exists(path) -> bool`: Whether the file exists
- ADDED `FS.Rename(old,new) -> bool,string`: Renames a file or folder (same as "move")
- ADDED `FS.Remove(path) -> bool,string`: Removes a file or (empty) folder
- ADDED `FS.Copy(original,copy) -> bool,string`: Copies a file or directory
- ADDED plugin directories to `package.path` and `package.cpath` before `onInit`
- ADDED ability to add `PluginConfig.toml` to your plugin folder to change some settings
- ADDED ability to share a lua state with other plugins via `StateId` setting in `PluginConfig.toml`