Static function
Slow
Package.ReloadClientFile
Reloads a file from <code>Client/</code> or <code>Shared/</code> folder and sends the updated version to clients, triggering the <a href="#event-filereload">FileReload</a> event on them<br/><br/>The reloaded file will be re-cached and downloaded normally by new connecting clients<br/><br/>Note that this method does use the main network lane, so it is not recommended to be used frequently or with large files in production environments as it may cause network congestion and lag spikes. It is mostly intended for development purposes to allow faster iteration on client files without needing to reload the whole package
Syntax
Package.ReloadClientFile(file_path)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
file_path
|
string | — | The file path relative to the package root |