General > Developers Corner

Include Issue?

<< < (2/2)

iSnipeu:

--- Quote from: Decicus on September 07, 2013, 06:30:39 AM ---I shouldn't need to use AddCSLuaFile. The only thing I'm doing is to try and move a specific part out of the main file, into another one and still make it possible for the main file to be able to load it from the other file. I'm pretty sure I shouldn't need to use AddCSLuaFile, because if it needs to be loaded clientside, it should already have been done.

--- End quote ---

It doesn't work like that, you need to tell the server to send the file to the client.

and you need to use AddCSLuaFile on the server, not the client.

JamminR:
See? My educated guessing often times is based on poor recollection of fact.
:)

Decicus:
Well, I tried that earlier (I just realized), but that didn't work :/

iSnipeu:
Remember that since you're not in the same file you want to add you'll need to put the name of it.
Also add something like print("File ran!") above the AddCSLuaFile to make sure the server file is being run.

Decicus:
I'm confused, do you mind explaining in a different way?

Navigation

[0] Message Index

[*] Previous page

Go to full version