# Calling Project Script module from Gateway script

**URL:** <https://forum.inductiveautomation.com/t/calling-project-script-module-from-gateway-script/6725>\
**Category:** Ignition\
**Created:** [June 18, 2013, 7:08pm UTC](https://forum.inductiveautomation.com/t/calling-project-script-module-from-gateway-script/6725 "2013-06-18T19:08:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehill100](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mikehill100](https://forum.inductiveautomation.com/u/mikehill100)\
**Post date:** [June 18, 2013, 7:08pm UTC](https://forum.inductiveautomation.com/t/calling-project-script-module-from-gateway-script/6725/1 "2013-06-18T19:08:16Z")

</div>

Hello!

I have a gateway tag change script that needs to call a function several times. This function will also get called from a button on the client. I have tried calling a script module from the gateway tag change script and gotten some strange results. Sometimes it seems like it calls a different script module and sometimes it seems to do nothing at all.

Is this possible or is there something else I need to know?

Thanks,

Mike

---

<div class="post-metadata">

**Author:** ![Ron.Lor](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ron.Lor](https://forum.inductiveautomation.com/u/Ron.Lor)\
**Post date:** [August 12, 2013, 10:26pm UTC](https://forum.inductiveautomation.com/t/calling-project-script-module-from-gateway-script/6725/2 "2013-08-12T22:26:30Z")

</div>

We may need to see what your script looks like. Also, if you are using any system functions, make sure you import system in your user defined functions.
