[Releases] [Free] Cayo Perico Improvements Freeroam 4.2.2

I think that with this way of adding both island to the minimap, we would have to check if the player ped is inside of an interior with https://docs.fivem.net/natives/?_0x2107BA504071A6BB and draw the minimap if not. Something could be done with IsMinimapInInterior - Natives @ Cfx.re Docs ? (I am assuming that this is getter wheter the player is looking at the inside of an interior, or switched back to the full map witl CAPS LOCK ? EDIT : it does)

Might check this out later today, but… I don’t like adding checks for something that should be this simple :confused:
I see two possible best ways to do it, either find a way to stream the minimap all the time, either find a way to create a native (I have no idea how this could be done, haven’t really be looking at how fivem’s code work) which load cayo without removing los santos
(Might be wrong though)

2 Likes

Found a way to have it, only issue is the minimap edges preventing us from going above cayo perico :

local _isCloseToCayo = false
local _isCayoMinimapLoaded = false

Citizen.CreateThread(function()
    while true do
        local isCloseToCayo = #(GetEntityCoords(PlayerPedId()) - vector3(4858.0, -5171.0, 2.0)) < 2200.0

        if _isCloseToCayo ~= isCloseToCayo then
            _isCloseToCayo = isCloseToCayo
            _isCayoMinimapLoaded = isCloseToCayo

            -- switch radar interior
            SetToggleMinimapHeistIsland(_isCloseToCayo)
        end

        Wait(5000)
    end
end)

CreateThread(function()
    while true do
        local wait = 500
        if IsPauseMenuActive() and not IsMinimapInInterior() then
            if _isCayoMinimapLoaded then
                _isCayoMinimapLoaded = false
                SetToggleMinimapHeistIsland(false)
            end
            SetRadarAsExteriorThisFrame()
            SetRadarAsInteriorThisFrame(GetHashKey("h4_fake_islandx"), 4700.0, -5145.0, 0, 0)
            wait = 0
        elseif not _isCayoMinimapLoaded and _isCloseToCayo then
            _isCayoMinimapLoaded = true
            SetToggleMinimapHeistIsland(true)
        end
        Wait(wait)
    end
end)

EDIT: this solution is more detailed in there [HOW-TO] Load CayoPerico minimap all of the time

I think I followed all the steps to install the CayoImprovements (version 4.1.7) and it’s OK, but at the Island Beach Party DJ area, I can’t see the table and all the sound speakers under the TVs. I tried also disabling CayoImprovements and enabling CayoTwoIslands and the problem is the same: no sound speakers or the table where are the DJ drinks.

I also see, from time to time, cars floating at the water, doing same path as the boat, near the Beach Party.

What did I do wrong?

Update: Something is removing all DJ objects, including the speakers and other objects, as I don’t have them with the original Island (your updates disabled) and I can’t find how.

1 Like

Never encountered this issue, sorry. So I don’t know as it’s fine for me

1 Like

Seems to do this if you teleported from Los Santos to Cayo Perico quickly, otherwise it’s fine.

1 Like

If they still do not appear, even without this resource, then there is something weird going on, my only suspicion would be that you are somehow missing the files in your own copy of GTA 5 and perhaps you need to update your game or verify the files.

However if they are not appearing for anyone at all, then that would mean the manifest file for the resource, hasn’t included them, which, is odd because it’s working fine for me.

Can you please try updating your GTA 5, verifying the files, (search YouTube if you don’t know how), and make sure you have Correctly set your server to the right DLC build and read everything here

1 Like

Thanks for the help. Another MLO, Paleto Beach Party, is using the same beach props and is using other speakers, getting rid of defaults. That also deletes Cayo Perico speakers and other prop. Disabling this MLO solves the proble.

1 Like

Hmm… that’s weird… Glad you could resolve the problem, I’ll be sure to keep a note of this. What the Paleto Bay Beach Party MLO creator should be doing, is generating a manifest. You can copy props from one location and use them somewhere else, however you need to generate a manifest and simply copy the prop, rather than move it from it’s original location, which is what I’m guessing they did.

1 Like

Each time I start CayoImprovements or CayoTwoIslands, I get this ship (only the skeleton) at Paleto Cove, between the little islands. Can you help?


I didn’t notice that! It’s possible that I put it in the list of IPLs to request, you can easily remove it.

Are you 100% sure that it appears even without my resources? Because I will need to prove this.

@CT1AIC

Ok, so I booted up codewalker and that boat is a “scripted ymap” from the mpheist4 DLC aka 2189 or Cayo Perico, which means it’s likely IPL related.

After investigating CayoTwoIslands, I discovered that yes, there were yacht related IPLs being requested, however this resource, CayoImprovements, should not have any being requested.

I’ve updated CayoTwoIslands. Thanks for bringing this to my attention @CT1AIC

1 Like

Update 4.1.8:

I have disabled the static emitters at the Arena Wars location, however if you are using PMMS alongside my Cayo Perico resource, PMMS disables static emitters when media is being rendered, and reenables them when the media has stopped playing, therefore, it counteracts with this resource.

To ‘fix’ this, open the staticEmitters.lua file inside the PMMS resource, and set the following to false like so;

{name = "SE_DLC_AW_Arena_Crowd_Background_Main", enabled = false},
{name = "SE_DLC_AW_xs_arena_VIP_Radio", enabled = false},
{name = "SE_DLC_AW_xs_x18_int_mod_garage_radio", enabled = false},
{name = "SE_DLC_AW_xs_x18_int_mod2_garage_radio", enabled = false},
1 Like

I’m very happy for being helpfull.

Another problem I had prior of 4.1.8 update (that I forgot to report) is at the Airfield. See the 2 photos. The cash register, the calculator, and 2 items of the fruit stall are in thin air, because the h4_islandairstrip.ymap (or the h4_islandairstrip_lod.ymap) is not loading.
What did I do wrong this time?


I also disabled rcore_television and tv_scaleform (my previous TV player), installed pmms and httpmanager, included in my config file:


set sv_enforceGameBuild 2189

add_ace group.admin pmms allow
add_ace builtin.everyone pmms.anyUrl allow
add_ace builtin.everyone command.pmms_presets allow
add_ace builtin.everyone command.pmms_vol allow

but I don’t have anything on both Cayo displays and I don’t get any info from each display, after enabling /pmms_status.
The audio at the location is OK, listening to the DJ music.

I still can’t find what I did wrong (or you don’t have any script that is using the 2 displays), but I was expecting something like this, from both monitors:

Still, I moved them a bit and gave them stands.

You modified my resource therefore you need to generate a new manifest… I don’t know why you of all people, face soo many problems… But I can assure you that everything should not be floating in mid air, it should be fine.

The screenshot you displayed is me using PMMS, however there is an option to use visualizers. This is a PMMS feature however and not an issue or feature of my resource, therefore you would need to contact Kibook on GitHub and discuss PMMS related stuff there, not here.

You modified my resource therefore you need to generate a new manifest… I don’t know why you of all people, face soo many problems… But I can assure you that everything should not be floating in mid air, it should be fine.

The screenshot you displayed is me using PMMS, however there is an option to use visualizers. PMMS comes with it’s own permission file, all you need to do is point to it in your server.cfg.

PMMS and all of it’s features however, are not an an issue or feature of my resource, therefore you would need to contact Kibook on GitHub and discuss PMMS related stuff there, not here.

Hey @Celess!

Hope you are well. Feel free to check out this version of my resource, where both islands are visible rather than concealed. Again, it is not possible to have both maps visible on the pause menu map thing, without breaking. The way Cayo Perico works is the same way as when a player is inside an interior.

You can check it out HERE

Hi again and thanks for your answer.

I deleted the modifications I did in your CayoTwoIslands, as I didn’t asked for your authorization. Also, I verified that my server was using a modified Perico_Shops, deleted also it and installed the one you included as link in this discussion page.

Now, I can see all things not floating, all objects are now there, but I still see the watering can @ the fruit stall floating… I will have to accept that I’m dreaming, as you assured me there is no object floating in middle air.

Regarding the visualizers, I’m going to explore the pmms documentation and site, to see if I can get the same feature you were using when you took that photo.

1 Like

@CT1AIC

Glad to see that it is now fixed.

I have just checked this location and indeed, there is a floating watering can which is probably leftover from when I moved the fruit stall back a bit. I have now fixed this and will push the fix to both this resource and the other one of mine.

The visualizers are part of PMMs. Click the Advanced Settings. The one I use is called Cubes, however mine has different colours than the default one.

You can configure the colours in the config file of PMMS;

Scroll down until you find Config.audioVisualizations = {

},
	["cubes"] = {
		name = "Cubes",
		colors = {"orange", "aqua", "blue", "purple"} -- Order bottom to top. Maximum 4 Colours 
	},

Any valid CSS colour can be used. You can do “orange”, or you can do for example, “”#7611f7" for a more percise colouring.

For more details, to find out how many colours each visualizer allows, and to test them out all LIVE, visit this website: Wave.js

1 Like