Log in to reply
 

Disable restricted area in c#?



  • Does anyone know if ScriptHookVDotNet has a way to disable restricted areas (Fort Zancudo, LSIA) without just freezing the wanted level? I know that ASI trainers like Simple Trainer do it, but I want to be able to toggle it at the same time as some features in my C# mod.



  • @AdmiralPulp You might want to search the Menyoo source code. I found this, not sure if that will help.

    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("restrictedareas");



  • How Menyoo does it: https://github.com/MAFINS/MenyooSP/blob/d059ba18147f9789dba79b05fd27259705af6e27/Solution/source/Menu/Routine.cpp#L2786

    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("am_armybase");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("restrictedareas");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("re_armybase");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("re_lossantosintl");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("re_prison");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("re_prisonvanbreak");
    TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("am_doors");
    


  • Oh wow! I hadn't found the Menyoo source code before, that's a great resource. Thank you both!


Log in to reply
 

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