WARNING! This resource requires you to be running build 2189, you can activate it by adding "+set sv_enforceGameBuild 2189" to your server launch parameters. It WILL NOT work with a streamed version of Cayo Perico since it uses natives only available in 2189
Hey guys I have been unsatisfied with the current methods of travel to Cayo Perico so I tried to think of a nice new method without having to move the map (which would break a bunch of things that can’t easily be moved)
So I have come up with this. So basically what I have done is created a fake low quality (LOD) version of Cayo Perico and Los Santos. The fake version of Cayo Perico is located far out to the east of Los Santos and you can choose to travel there by boat/plane or if you really want swimming, once you get within a certain range of the fake island a little loading transition will occur. This will teleport the player/vehicle, deactivate the real Los Santos, activate the real Cayo Perico and activate the fake Los Santos. So to you it will feel like you are in the exact same place, but in reality you have travelled pretty far. Behind you in Cayo Perico will be the silhouette of the fake Los Santos to make you feel like it’s still off the coast instead of right next to the docks where it actually is. Turning around and driving/flying/swimming back towards Los Santos will do the opposite and transition you back there.
I have included a couple of events in the script to help you integrate it with your existing resources, for example an event will fire when entering/leaving Cayo Perico on the server and the client 'IsInCayoPerico' is the name of the event. It send true or false to help you determine where the player is.
There are 2 other events 'EnableCayoPerico' and 'DisableCayoPerico' these can be manually called to do exactly what they say. But be warned they will only work correctly when you are within the right locations. These would best be used with reactiving Cayo Perico when loading back in if you left in that spot. I’ll be leaving that up to you guys, Sorry I won’t help you achieve this in ESX/vRP.
Note: You may need to expand the world limits to stop your vehicle from dying in Cayo Perico or behind it, you can do so by firing ExtendWorldBoundaryForPlayer with expanded limits twice.
Can confirm this works nicely! Thank you for the addon!
Just one little error, your description in the manifest is backwards, says to go very far west of LS and East of Cayo but it actually Very far East of LS and West of Cayo
So, me and a friend tested this quite a bit yesterday and we found that it’s not 100% perfect. For instance, if one person goes to Cayo first, and then another player goes there too after. The map often won’t show for them (they see some grass but that’s it). For some reason, the first person that goes there, it always works. But sometimes the second person won’t get to see the map.
Same, found any fix for it?
EDIT: Nevermind i followed this: Enabling the island on build 2189 and changed my server artifacts to 3336 and added the +set sv_enforceGameBuild 2189 along with swapping to Canary and that resolved my issue in case youre still having it
I’m assuming you have some sort of custom map that isn’t unloading, you’d probably have to add any custom ymaps to the script to load/unload when needed. You could add them to the cayoLODs table up the top of the script