Log in to reply

Working with multiple scripts [.NET]

  • So, I have a mod with a main script and a missions script that handles stuff related to missions included in the mod. Now, unlike the main script, the missions script doesn't really do anything until a mission is active, so I was wondering if it's better to instantiate the script when a mission is started and then abort the script when the mission is finished.

    Currently In the tick event of the mission script I just have something llike:

    if (!missionActive)
    //code for the missions...

  • Just leave it how it is. Starting/aborting the script would be much more complicated for no real improvement.

  • @Jitnaught Alright 🤔

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.