gmoddatapack.StripCode
string gmoddatapack.StripCode( string code, boolean removeServerCode = (ConVar Value), boolean removeComments = (ConVar Value), function tokenizeContent = nil )
Description
Strips the code based off the settings and returns the new stripped code.
Recently Added
This was recently added in version (0.8 - DEV).
Arguments
2boolean removeServerCode = (ConVar Value)
If server code should be stripped (Default value is holylib_gmoddatapack_removeserverif)
3boolean removeComments = (ConVar Value)
If comments should be stripped (Default value is holylib_gmoddatapack_removecomments)
4function tokenizeContent = nil
the tokenize function - this acts like HolyLib:OnTokenizeContent
Function argument(s):
2number fileID -
The fileID of the Lua file (This is the stringtable index in the client_lua_files table)
Function return argument(s):
1table tokens -
Return value can be a new table of tokens, which will be used as the new contents, or return nil for no change