1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

[Library] Map Parse - Parse Map Editors Files in the script!

Discussion in 'Libraries/Wrappers/Web' started by Hirsw0w, Jul 17, 2017.

  1. Hirsw0w

    Hirsw0w Member

    Likes Received:
    Jan 14, 2017
    Hello everyone,

    after posting my map convertor to c# code HERE I have decided to make my life and yours more easy! The Map Parse library allow you to parse map files of Guadmaz map editor and Menyoo Object Spooner inside the script and you can get all of the data of every entity inside the map and and load(create) the entitys.

    (map file of example can be found on GitHub samples folder)​

    // Easy Parsing
    MapParse mp = new MapParse();
    mp.Parse("Zombie Base.xml");
    List<NetHandle> objects = mp.Objects.LoadAll();
    List<NetHandle> vehicles = mp.Vehicles.LoadAll();
    List<NetHandle> Pickups = mp.Pickups.LoadAll();
    if(mp.Peds.List.Count > 1)
    API.createPed(mp.Peds.List[0].model, mp.Peds.List[0].Position.Vector(), mp.Peds.List[0].Rotation.Z);
    API.consoleOutput("All the objects,vehicles and Pickups has been loaded from Zombie Base.xml");
    API.consoleOutput("Markers and Peds wasn't loaded Except for the first Ped.");
    Using that library can save you a lot of time and you can upload every map you want easily with just a 2 lines.

    Download and Full Documantion of the Library

    * Samples can be found at the github link.
    * If there are any bugs please inform me and I'll fix it as fast as I can

    feel fry to ask any questions, I'll answer as fast as I can!
    sorry for the bad english!


Share This Page