workyround is a small script that allows you to send files of any format to your client!
Gmod does not allow sending html/yml/css files and many other files that can be useful for convenient development of addons and scripts. However, it allows to send .txt files, so that files on the server part can leave their extension, but on the client they will get the extension .oldExtension.txt.
Important
This is something to consider if one of your files depends on another. (example: html file uses css file)
Tip
Briefly:\ Throw all files into the garrysmod/data/worky folder, and players on PC will have them
This library creates the garrysmod/data/worky folder. It is the files in this folder that are distributed to players. When a player logs on to the server, he throws a net'' request to the server, which returns a list of files from the worky'' folder, the client compares the Checksum of each file, and sends a table of missing files to the server, then the server sends individually to the client all the files that are missing.
If you have changed any of the files on the server, and want the changes sent to the client players, write the command worky in the server console.
- Small
- Fast
- Secure
? - Easy to use
- Easy to install
Via libloader
lib install autumngmod/[email protected]
lib enable autumngmod/[email protected]- If you need to know that file is up to date, then use hook
workyFile
local configLoaded = false
hook.Add("workyDownloaded", "", function(fileName, _isDownloaded)
if (fileName == "mining/config.yml") then
configLoaded = true
end
end)