Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Server Lento

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

Non ancora tradotto

Sintassi

Lua
Package.ReloadClientFile(file_path)

Parametri

Nome Tipo Predefinito Descrizione
file_path string The file path relative to the package root