• AddCSLuaFile/include
    3 replies, posted
What's the difference? Sometimes I see an "include" of a file without an "AddCSSLuaFile" for it.
AddCSLuaFile sends the file to the client and registers it in the scriptenforcer manifest. Include loads the file into the Lua state you ran Include in - whether that be client or server. For serverside files, you will only call include on the server. For clientside files, you call AddCSLuaFile on the server, include on the client. For shared files, you call AddCSLuaFile on the server and include on both the client and server.
AddCSLuaFile sends the file to the client. Include includes it. They are generally in the same pile so that they'd always be sent to the client and included before they would be needed. [editline]02:15AM[/editline] Oh god dammit, ninja'd.
Oh. Thanks.
Sorry, you need to Log In to post a reply to this thread.