When I call server resources that use “source” nothing happens.

Frequently ASKED Questions by THE Crimson Creek TEAM

When I call resources that use “source” nothing happens.

  1. Verify that source exists inside your server script by printing it.

	print("source", source)

If it prints correctly and your still not getting results. Try this instead.


print("source", source) local _source = source
print("_source", _source)

Then change any references from “source” to “_source” and retest.

If this works then what’s happening is “source” a global variable is being reset to either nil or an empty string by an outside service or script.  Your scripts server function can’t execute the calls it needs.  By setting it to “_source” you take control of the variable, and outside scripts or server functions can’t alter it.