Compatibility of LU Scripts [roottable]

Started by J. Rockford, Dec 01, 2019, 10:33 PM

Previous topic - Next topic

J. Rockford

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 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].

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

#1
It's for VC-MP 0.4 hash functions, but idk it works on lasted build 04rel006

https://forum.vc-mp.org/?topic=206.0

Small offtopic:
I remember that @Stoku do a basemode script in one folder for vcmp and lu - the same folder with script can run on vcmp and lu. (But it isn't relased I think).
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

J. Rockford

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.

J. Rockford

@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

Quote from: J. Rockford on Dec 03, 2019, 01:18 AM@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.

It was running last week I checked ... I don't know what's going on.
Until then, maybe you can use this:
https://web.archive.org/web/20191028155636/http://wiki.vc-mp.org/