• Print

Author Topic: NekoLibrary  (Read 4275 times)

0 Members and 1 Guest are viewing this topic.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
NekoLibrary
« on: September 18, 2014, 09:02:05 pm »
Code: Lua
  1. --[[
  2.         Function: NWStringTable
  3.  
  4.         Runs util.AddNetworkString() on a table of strings.
  5.  
  6.         Parameters:
  7.  
  8.                 tablet - The table to loop for caching network strings.
  9.  
  10.         Returns:
  11.  
  12.                 none
  13.  
  14.         Revisions:
  15.  
  16.                 v1 - Initial release
  17. ]]
  18.  
  19. function NekoLib.NWStringTable( tablet )
  20.         for k,v in pairs( tablet ) do
  21.                 util.AddNetworkString( v )
  22.         end
  23. end

I'd say this is the most useful function within my mess of random functions.
You can see the rest and perhaps build upon it at: https://github.com/NekuMitsurugi/NekoLib
Out of the Garry's Mod business.

  • Print