Log in to reply
 

Cayo Perico in SP - Simple Script, no Mods Required



  • Here is a simple SHVDN3 C# script that will enable MP Maps and load the Cayo Perico Island (without peds, without traffic). It can be used to play this map, free roam, in SP without having to install 3rd party mods. It is easily customizable if you have super basic programming skills.

    Full credit goes to @Niziul for discovering and sharing the native functions required to make this happen.

    If you like this script please subscribe to my profile, ring the doorbell, and donate bitch_coin to my Matreon site because digital ink is very expensive. You can also donate to my PlayPalsky account, registered in Eastern Europe for tax evasion purposes.

    Requirements: SHVDN3, ability to find your scripts folder, copy and paste, create and name text file, .

    Installation: Take everything that looks remotely like code, create a blank text file, copy paste the code, name the file what you want but ensure you have .c.3s as the extension (notice the 2 dots), for example: CayoPericoLoad.3.cs

    Liability Disclaimer: Script is provided "as is" and I, nor my descendants, will not be held responsible if you brick your game. No further support will be provided unless you take me out for burgers or pizza.

    using System.Windows.Forms;
    using GTA;
    using GTA.Math;
    using GTA.Native;
    
    
    namespace CayoPericoLoad
    {
    
        public class Basics : Script
        {
            public Basics()
            {
                KeyUp += Basics_KeyUp;
            }
    
            private void Basics_KeyUp(object sender, KeyEventArgs e)
            {
             
                if (e.KeyCode == Keys.NumPad1) 
                {
    
                    Function.Call((Hash)0x0888C3502DBBEEF5);
    		//void ON_ENTER_MP() // 0x0888C3502DBBEEF5 0xC65586A9 b323
    
                    Function.Call((Hash)0x9A9D1BA639675CF1, "HeistIsland", true);
                    //void SET_ISLAND_ENABLED(const char* name, BOOL toggle) // 0x9A9D1BA639675CF1 b2189
    
                    Function.Call((Hash)0xB96B00E976BE977F, 0.0f);
    		// _SET_CURRENT_INTENSITY OCEAN WAVES
    
    		GTA.UI.Screen.FadeOut(1000);//Game.FadeScreenOut(1000);
    		Wait(1000);
                    Function.Call(Hash.SET_ENTITY_COORDS, Game.Player.Character, 4840.571, -5174.425, 2.0, 0, 0, 1);
    		GTA.UI.Screen.FadeIn(1000);//Game.FadeScreenOut(1000);
    		//Teleport Player to CP
    
                }
            }
        }
    }
    


  • @JohnFromGWN below is a code that enables the CP minimap:

            private void AddRadarSupport()
            {
                ActivateRadarOfCayoPericoIsland();
            }
            private void ActivateRadarOfCayoPericoIsland()
            {
                var hash
                    = Game.GenerateHash("h4_fake_islandx");
    
                Function.Call(Hash.SET_RADAR_AS_INTERIOR_THIS_FRAME, hash, 4700.0f, -5145.0f, 0, 0);
    
                AddRouteSupportToRadar();
            }
            private void AddRouteSupportToRadar()
            {
                Function.Call((Hash)0xF74B1FFA4A15FBEA, 0);
            }
    

  • MODERATOR

    @JohnFromGWN no rmdir feature 0,5 ⭐



  • @ReNNie Sorry but the rmdir feature is only available to my Matreon Platinum Plus supporters. I do offer a format c: script but it is still in beta.



  • @Niziul thanks. Question for you.

    Did you load the heist ipls as described below?

    
    This loads the GTA:O dlc map parts (high end garages, apartments).
    Works in singleplayer.
    In order to use GTA:O heist IPL's you have to call this native with the following params: 
    SET_INSTANCE_PRIORITY_MODE(1);
    
    


  • @JohnFromGWN said in Cayo Perico in SP - Simple Script, no Mods Required:

    ET_INSTANCE_PRIORITY_MODE(1);

    no! because of the native's description:

    Formerly known as _LOWER_MAP_PROP_DENSITY and wrongly due to idiots as _ENABLE_MP_DLC_MAPS.
    Sets the maximum prop density and changes a loading screen flag from 'loading story mode' to 'loading GTA Online'. Does not touch DLC map data at all.
    
    In fact, I doubt this changes the flag whatsoever, that's the OTHER native idiots use together with this that does so, this one only causes a loading screen to show as it reloads map data.
    


  • @Niziul lol.

    And that's definitely not in the description of the original native!

    Any way traffic paths can be loaded, with NPCS driving?



  • @JohnFromGWN said in Cayo Perico in SP - Simple Script, no Mods Required:

    Any way traffic paths can be loaded, with NPCS driving?

    To be honest, I have no idea.



  • @Niziul I find this really interesting. I don't really care about having the traffic, I like the isolated ambience of the island.

    For the physical CP mods (dlc.rpf) we know the authors used ybn files for the traffic nodes/Paths.

    But I'm really curious how GTAO does this? I'm guessing it's client side but I could be wrong.

    If it is client side, how the hell would we do it using either the script just posted or the more complex script which loads individual ipls.

    Real mystery, would love to know the answer.

    Unless the traffic files are in the Rockstar dlcpatch? And even if they already sit on our client, how would the script recognize them?



  • You are great people. I don't understand how to do this and I don't think I ever will, but the passion this forum arouses at times is something to behold.

    I respect you guys.



  • NIce thanks guys!!

    Apologies in advance for the retard questions.

    I get the bit about the code into the Scripts folder all good.

    but...

    Sorry confusion about the MP Maps. Never heard of MP Maps. Is something like this what we need for MP Maps?
    https://gta5mod.net/gta-5-mods/scripts/enable-mp-maps-1-0-beta/

    or...

    Is this below the actual map required to go with the code?
    https://www.gta5-mods.com/scripts/cayo-perico-island-for-single-player-ragepluginhook

    also...

    Correct me if wrong. I am assuming no mods required except for the obvious in order to run the mods in the links like RAGEPluginHook etc?



  • @Fabito48hd gracias amigo.



  • @gtavjamal you don't need any mods or other plugins or scripts other than the one above and certainly not the RHP.

    The concept behind this ridiculously simple script, is to avoid installing a 2GB Cayo Perico map on your setup when the effing assets are already there to be loaded without another mod.

    MP maps simply refers to the Multiplayer maps that are by default only available in GTAO.

    There is a single function in the code above that enables MP maps, like Simple Trainer allows.

    I can only think of two important maps, Cayo Perico and the Diamond Casino. Not including assets from other GTAO heists etc that aren't available by default in SP. But then again, I don't play online.

    Generally speaking, servers don't provide game assets, but they can turn them on, because they reside on your game. Of course you need the proper version of the game, what is referred to as client side.

    Rockstar, being little bitches, don't want you to play a patch DLC, like CP, in SP, so they don't enable it, but luckily there are trainers to enable these MP maps and most importantly load the assets.

    We already knew this could also be done through IPLs, but @Niziul also shared a single function to do this. No trainers required, just SHVDN.

    I can tell you I've seen dozens of posts in SP and FiveM forums and dozens of requests and tutorials regarding CP, in SP and FiveM, all solved by huge 3D map models or loading all the assets individually.

    The solution above, so incredibly simple, was never mentioned in any of my searches until @Niziul .

    I'm sort of confident the traffic paths are client side but I'm too tired to look for them right now.



  • @JohnFromGWN something nice to use the native one: Function.Call((Hash)0x9A9D1BA639675CF1, "HeistIsland", true); is that it removes various parts of the sea, thus solving the problem of waves, but for some reason when viewing the CP from above these flaws appear: alt text



  • @Niziul good to know. I left the code in because the ipl load had them. Either way, this issue is a major annoyance with the French Riviera mod and the new Ugase City maps where some coastal roads get flooded. Hopefully anyone following this thread will find it.

    I don't need that function as I have it in my LemonUI menu, so I can enable or disable it on any map including LS.



  • @JohnFromGWN Gracias mi amigo!


  • MODERATOR

    @JohnFromGWN said in Cayo Perico in SP - Simple Script, no Mods Required:

    the new Ugase City maps where some coastal roads get flooded

    Moving it higher up from Z 8 to 32 is a 5 min effort



  • @ReNNie yes, that's true, map can be raised but there are also times you want smoother water and just a calmer environment for boating or jet skiing, so here's an easy solution.


Log in to reply
 

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