HolyLib Wiki

HolyLib:AddOrUpdateFileToDataPack

  HolyLib:AddOrUpdateFileToDataPack( string fileName, string fileSource, string fileContents )

Description

Intended to be called whenever a Lua file gets added or updated in the server's GModDataPack, before its contents are tokenized/compressed and sent to clients.

This hook is currently disabled - the code that would call it is commented out in HolyLib's source, so it does not fire in the current version of the module.

Arguments

1string fileName

name/path of the Lua file

2string fileSource

the file's source path

3string fileContents

the file's current contents