Compatibility of LU Scripts [roottable]

J. Rockford

  • Newbie
  • Posts: 3
Compatibility of LU Scripts [roottable]
«  »
I've noticed that Liberty Unleashed Scripting and VCMP is about the same. So I'm trying to write one universal script that can run both. Wouldn't be hard. Also change some root table names to make each more compatible to run the same line of code versus getting the
Code: [Select]
MultiPlayer
variable.

In Liberty Unleashed I can find what are keyworded as "HashTable", Really unique, shouldn't find that anywhere else but Liberty Unleashed. The VCMP wiki is down and I need to access it to see what is unique that I could find in the root table to determine what script needs to be handled [VCMP : LU].

Code: [Select]
local MultiPlayer = "GTA"

try {
   
    // HashTables can be found
    if ("HashTable" in getroottable()) {
      print("Liberty Unleashed");
      MultiPlayer = "Liberty Unleashed";
    }
   
// VCMP here
 }
 catch (e) {
   print("Fucked");
 }
   
//----------------------------------------------
I need a vcmp detect so I can use the same scrip in GTA Connected as well.
 :)

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 391

Join to LU-DM Team Discord: https://discord.gg/PFwem6J

J. Rockford

  • Newbie
  • Posts: 3
Re: Compatibility of LU Scripts [roottable]
« Reply #2,  »
Interesting! I will be eventually running the same method from my website. But all three will be launched.

Liberty Unleashed
VCMP
GTA Connected
SAMP at some point

in the same sequence, It'll have to be "Scripts/" as LU hardcoded that method". Server file, client file. That's it. Just three folders "Server/Scripts/Main/". everything else just gets packaged together and configured.
Re: Compatibility of LU Scripts [roottable]
« Reply #3,  »
@rwwpl. I'm not able to use that method as the plugin is required. I have to yield the script from getting that far. I wish the wiki was available.

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 951