FiveM Cayo Perico: How to Enable the Island on Your Server
How to enable Cayo Perico on a FiveM server: set game build 2189 or newer, load the island with a client script, and handle the minimap, bridges and Enhanced.

- Applies to
- FiveM Legacy with sv_enforceGameBuild 2189 (Cayo Perico Heist) or newer, on FXServer Recommended 38435 or Latest 38781 (December 3, 2026), Windows and Linux; FiveM for GTAV Enhanced (early access, build 3889 only) noted; Qbox, ESX Legacy, QBCore and servers without a framework
- Last verified
On this page
- Direct Answer
- What FiveM needs before the Cayo Perico island appears
- How to enable Cayo Perico on a FiveM server
- Load the island only near it: travel between Los Santos and Cayo Perico
- FiveM minimap with Cayo Perico
- FiveM Cayo Perico bridge: what it needs
- FiveM Cayo Perico map: interiors, MLOs and custom maps
- Cayo Perico on FiveM for GTAV Enhanced
- Qbox, ESX Legacy, QBCore and servers without a framework
- Troubleshooting
- Next Steps
Direct Answer
To enable Cayo Perico on a FiveM server, you need two things. First, the server must enforce game build 2189 (the Cayo Perico Heist update) or any newer build, set with sv_enforceGameBuild in server.cfg and applied by a full server restart. Second, a client script must switch the island on with SetIslandEnabled('HeistIsland', true): the build brings the island’s game files, but the script is what shows it. Loading the island hides Los Santos for that player, as in GTA Online, so load it only for players who are near it. SetUseIslandMap(true) switches the minimap to the island.
What FiveM needs before the Cayo Perico island appears
The island is Rockstar content from the Cayo Perico Heist update. FiveM’s official builds table lists that update as build 2189, with the aliases h4, heist4 and mpheist4. When a server enforces 2189 or higher, the FiveM client adds Rockstar’s update/x64/dlcpacks/mpheist4/dlc.rpf pack to the game files it requires. The docs also state that “Every build includes all content and changes from the builds before”, so any newer build carries the island as well.
Most servers already run a build that high:
- txAdmin recipes pin one. On December 3, 2026 the default FiveM recipe sets
sv_enforceGameBuild 3751, and the Qbox and ESX Legacy recipes setsv_enforceGameBuild 3258. All three are above 2189. - FXServer has a default. Without the line, FXServer enforces the “mandated default” build from its source code. A commit of October 28, 2026 raised that default from 3258 to 3889, so artifacts built before it default to 3258 and artifacts that include it default to 3889. Both are above 2189.
The build alone does not put the island on the map. The Cfx.re forum thread “Enabling the island on build 2189”, opened when FiveM added the build in December 2020, gives server owners a script step to switch the island on, and warns that it “will disable LS if used”. A later reply in that thread repeats that activating the island “WILL DEACTIVATE the main map” and adds: “That’s how it works in GTA Online as well.” The switch is not global either. In the same thread, the author of the guide explains that you can enable or disable it “depending on player coordinates or some travel scene”, because “It’s not global, it’s per player”.
How to enable Cayo Perico on a FiveM server
These steps apply to FiveM Legacy on every kind of server. FiveM for GTAV Enhanced is covered further down.
-
Check the server version. The 2020 instructions asked for “server build 3324 or higher”. That requirement no longer limits anyone: on August 20, 2026 Cfx.re announced that connections to FXServer versions older than 35245 would no longer be possible after October 15, 2026. On December 3, 2026, Cfx’s changelog service lists 38435 as Recommended and 38781 as Latest. If you are behind, follow how to update FXServer artifacts.
-
Set the game build. Open
server.cfgand make sure it has onesv_enforceGameBuildline with 2189 or a higher number from the official table. Keep your current number if it is already 2189 or above, since every newer build includes the island:sv_enforceGameBuild 2189The official docs also accept the build’s alias, as in their example
sv_enforceGameBuild h4. The value “can only be specified at startup”, so stop and start FXServer after editing it. Restarting one resource is not enough. The sv_enforceGameBuild guide has the full build table and shows how to check the live value. -
Create a client resource. Make a new folder in
resources, for examplecayo_island, and give it anfxmanifest.luabuilt from the official manifest entries:fx_version 'cerulean' game 'gta5' client_script 'client.lua' dependencies { '/gameBuild:h4', -- requires at least game build 2189 }client_scriptdefines “a script to be loaded on the client”. The/gameBuild:h4line is the manifest reference’s own example of a runtime constraint: it “requires at least game build 2189”, so the resource does not run on a lower build. The manifest reference describes these entries as “requirements for the resource to run”. -
Add the island script. Save this as
client.luain the same folder. It is the script from the forum guide, unchanged:-- set island hopper config SetIslandEnabled('HeistIsland', true) -- or use false to disable it -- instead of using island hopper you can *also* just load the IPLs mentioned in islandhopper.meta yourself somewhat -- switch radar interior SetUseIslandMap(true) -- misc natives SetAiGlobalPathNodesType(1) LoadGlobalWaterType(1) SetScenarioGroupEnabled('Heist_Island_Peds', true) -- audio stuff SetAudioFlag('PlayerOnDLCHeist4Island', true) SetAmbientZoneListStatePersistent('AZL_DLC_Hei4_Island_Zones', true, true) SetAmbientZoneListStatePersistent('AZL_DLC_Hei4_Island_Disabled_Zones', false, true)As written, it runs once when the resource starts on each player’s game. Every player then gets the island and loses Los Santos. That suits a server that plays only on the island; for travel between both areas, see the next section.
-
Start the resource. Add
ensure cayo_islandtoserver.cfg. Theensurecommand starts a resource that is not running and restarts one that is. For where resource lines belong, see how to install FiveM scripts. -
Go to the island. The forum guide’s last step: “Go to the right place on the map, and you should see the island instead of the default gta5 level.” The minimap how-to described below measures distance to the island from
vector3(4858.0, -5171.0, 2.0). In the natives reference for zone names,ISHeistis listed as “Cayo Perico Island”.
What each line of the island script does
| Line | What the natives reference says |
|---|---|
SetIslandEnabled('HeistIsland', true) | SET_ISLAND_ENABLED (alias _SET_ISLAND_HOPPER_ENABLED): “Enables the specified island. For more information, see islandhopper.meta” |
SetUseIslandMap(true) | SET_USE_ISLAND_MAP (alias _SET_TOGGLE_MINIMAP_HEIST_ISLAND): “Switches the display of the in-game minimap to the Cayo Perico map” |
SetAiGlobalPathNodesType(1) | “Activates Cayo Perico path nodes if passed 1. GPS navigation will start working” |
LoadGlobalWaterType(1) | Water type 0 is “default” and 1 is “HeistIsland” |
SetScenarioGroupEnabled('Heist_Island_Peds', true) | Turns on a scenario group; the reference has no note on this group, and the forum guide lists it under “misc natives” |
SetAudioFlag('PlayerOnDLCHeist4Island', true) | PlayerOnDLCHeist4Island is one of the flags the reference lists |
SetAmbientZoneListStatePersistent(...) | Its enabled argument “Enables/disables a list of ambient zones persistently” |
The reference marks the island, minimap, path node and water natives as “NativeDB Introduced: v2189”, which is one more reason the build must be 2189 or newer. Older scripts may call the natives by their alias names; the 2022 minimap how-to, for example, uses SetToggleMinimapHeistIsland.
Load the island only near it: travel between Los Santos and Cayo Perico
Because the switch is per player, each player can have the island loaded when they are on it and Los Santos when they are not. In the forum thread, one reply sums up the logic: if the island is closer than Los Santos, load the island, “otherwise unload_island if it was loaded”. The author of the guide later added that island hoppers “are not meant to be run permanently, only when the local client is on the faraway island”.
A proximity switch has three parts:
- A distance check on a timer. The 2022 minimap how-to checks every 5000 ms whether the player is within 2200.0 units of
vector3(4858.0, -5171.0, 2.0)and acts only when that answer changes, so the natives are not called again and again. - The same natives with
falseon the way out. The script’s own comment says “use false to disable it” forSetIslandEnabled;LoadGlobalWaterTypegoes back to0, the “default” type. - Care with path nodes. The natives reference warns: “It seems if you try to unload (pass
0) when close to the island, your game might crash.” Switch the path nodes back only when the player is well away from the island.
The per-player switch also lets different game modes share one server. A PvP, zombie or racing mode can send a group of players to the island while everyone else keeps Los Santos, with the switch tied to where each player is.
FiveM minimap with Cayo Perico
SetUseIslandMap(true) swaps the minimap and pause map to the island. The two sources disagree on how often to call it. The natives reference says the native “needs to be called every frame to maintain the toggled state effectively”, while the forum guide’s script calls it once. If the minimap falls back to Los Santos while the player is on the island, call it every frame while they are there.
A 2022 how-to by a forum author, titled “Load CayoPerico minimap all of the time”, shows the island on the pause map from anywhere without breaking interior minimaps. Its method:
- It calls
SetToggleMinimapHeistIsland(the alias name) only when the player gets close to the island or leaves it. - While the pause menu is open and no interior minimap is shown, it calls
SetRadarAsExteriorThisFrame()andSetRadarAsInteriorThisFrame(GetHashKey("h4_fake_islandx"), 4700.0, -5145.0, 0, 0)every frame. - The author reports resmon going from “0.00ms idle, to 0.02ms when it has to load the minimap on the pause menu”.
- To let the pause map scroll far enough right and down, the author says “you need to set a blip in the far bottom right corner”.
The author lists one issue left open: after switching from an interior to the whole map, “you can’t go back to the interior minimap without closing and opening your pause menu”.
FiveM Cayo Perico bridge: what it needs
A bridge needs Los Santos and the island visible at the same time. The island hopper that SetIslandEnabled controls does the opposite: it hides Los Santos while the island is loaded, and a reply in the forum thread notes “That’s how it works in GTA Online as well”. So a bridge cannot work with that native alone.
The forum guide’s script names the other route in a comment: “instead of using island hopper you can also just load the IPLs mentioned in islandhopper.meta yourself somewhat”. A later reply in the same thread shows that route: “to have both you need to load the island with ipls”, followed by a client thread of RequestIpl calls for the island’s h4_ IPLs. The same reply warns that “you have to deal with the water level and other stuff”. Take the exact IPL list from that reply or from the documentation of the map resource you install, not from memory.
The bridge itself is not part of the game build or the island script. It is a map resource you add, installed like any other map (how to install an MLO covers the steps). Check that other island maps you run do not place buildings where the bridge lands. If you build or edit such a map yourself, the FiveM YMAP mapping tutorial explains the CodeWalker workflow.
FiveM Cayo Perico map: interiors, MLOs and custom maps
- Rockstar interiors.
bob74_iplversion 2.7.1 loads two Cayo Perico Heist interiors, The Music Locker at1550.0, 250.0, -50.0and the submarine at1560.0, 400.0, -50.0, only whenGetGameBuildNumber() >= 2189. Its manifest marks the section “Requires forced build 2189 or higher”. The resource never callsSetIslandEnabled, so it does not replace the island script. - Custom island maps and MLOs. Island YMAPs and MLOs install as normal map resources. FiveCrate’s MLO and map category lists maps for FiveM servers. If players fall through a floor or an interior stays empty, see MLO not loading or falling through the floor.
- Texture problems in Los Santos after the build change. When an owner reported texture loss in Los Santos with the island turned off, the author of the forum guide answered that it “Sounds more like an incompatibility with some map mods instead (not having added replacement stuff from later DLC prefixes)”. The texture loss guide covers the other causes.
Cayo Perico on FiveM for GTAV Enhanced
FiveM for GTAV Enhanced is in early access and handles builds differently. Its docs say it “currently supports only the latest gamebuild (The Kortz Center Heist)”, build 3889, which “is loaded by default if no other gamebuild is specified”. Since every build includes the content of the builds before it, the island’s files are part of that build. Do not set sv_enforceGameBuild 1 on Enhanced if you want the island: that value loads the “base game without any DLCs”.
- The island script. The Enhanced changes page and the natives reference pages cited here say nothing about the island natives on Enhanced. Try the script on an Enhanced test server before you rely on it.
- Map resources. A resource can include a
stream_enhancedfolder, and “its contents are loaded instead of the stream folder on FiveM for GTAV Enhanced”. Without that folder thestreamfolder is used, but the docs call it deprecated and advise to “place Gen8 assets in stream and Gen9 assets in stream_enhanced”, so one island map resource can serve both platforms; the FiveM Enhanced server setup guide covers the rest of the platform.
Qbox, ESX Legacy, QBCore and servers without a framework
Nothing in the island steps depends on a framework. The build line sits in server.cfg and the island script is a standalone client resource, so the same steps apply to Qbox, ESX Legacy and QBCore servers and to servers without a framework, such as a vMenu or FiveM Basic Server setup. The difference between them is the build their recipe starts with: Qbox and ESX Legacy recipes pin 3258 and the default FiveM recipe 3751, all of which already include the island.
Troubleshooting
Cayo Perico not loading after sv_enforceGameBuild 2189
The build line brings the game files; the island still needs SetIslandEnabled('HeistIsland', true) in a client script. Check three things:
- The script runs on the client. The switch is per player, so it belongs in a
client_script, not a server script. - The build is live. The value is read only at startup. After a full restart, check the live value as shown in the sv_enforceGameBuild guide.
- You are in the right place. The island appears at its own coordinates, around
vector3(4858.0, -5171.0, 2.0), not in Los Santos.
Los Santos disappears or loses textures when the island is on
This is expected. The forum guide warns that switching the island “will disable LS if used”, and its author wrote that the city “is supposed to be replaced with ‘horrible texture issues’ when using island hoppers”. Load the island only while the player is near it, as described above.
“sv_enforceGameBuild needs to be at least 2189”
This is the reason FXServer gives when a resource declares /gameBuild:h4 in its manifest and the server enforces a lower build. The full text in FXServer’s source is “sv_enforceGameBuild needs to be at least %d (current is %d)”, with the required and current builds filled in. Raise sv_enforceGameBuild to 2189 or higher and restart FXServer.
GPS and waypoints do not work on the island
GPS on the island depends on the Cayo Perico path nodes. SetAiGlobalPathNodesType(1) “Activates Cayo Perico path nodes”, and the reference adds that “GPS navigation will start working”. Make sure your island script calls it.
The game crashes when a player leaves the island
Check whether your script switches the path nodes back to 0 while the player is still close. The natives reference warns that unloading them “when close to the island” might crash the game. Reset them only once the player is far away.
The island minimap does not stay on
The natives reference says SetUseIslandMap “needs to be called every frame”. Call it every frame while the player is on the island, or use the pause-map method of the minimap how-to above.
Next Steps
- Pick and verify your game build with the sv_enforceGameBuild guide.
- Add island MLOs and maps with how to install an MLO on your FiveM server.
- Build your own island details in CodeWalker with the FiveM YMAP mapping tutorial.
- Fix interiors that do not load with MLO not loading or falling through the floor.
Browse MLO & interior maps
MLO interiors and maps for FiveM servers: houses, mechanic shops, cafes, restaurants, shops and islands.
Official documentation and repository references
- Cfx.re Docs: Server Commands (sv_enforceGameBuild and the FiveM builds table)
- Cfx.re Docs: What's Changed in FiveM for GTAV Enhanced
- Cfx.re Docs: Resource Manifest
- Cfx.re Forum: Enabling the island on build 2189
- citizenfx/natives: SET_ISLAND_ENABLED
- citizenfx/natives: SET_USE_ISLAND_MAP
- Cfx.re Forum: [How-To] Load CayoPerico minimap all of the time
- bob74_ipl: client.lua (version 2.7.1)
Related guides
FiveM Mapping Tutorial: Make a YMAP in CodeWalker
FiveM mapping tutorial: place props in a CodeWalker YMAP, calculate extents and flags, stream it as a map resource, remove default props and fix missing ones.
sv_enforceGameBuild: FiveM Game Build List and DLC Setup
Use sv_enforceGameBuild to enable GTA Online DLC on a FiveM server: every game build up to 3889, the default value, Enhanced rules and the common errors.
FiveM Texture Loss: Causes and Fixes for Server Owners
Fix FiveM texture loss at the source: find the oversized assets that fill players' streaming memory, check OneSync, and set Extended Texture Budget right.
Falling Through an MLO in FiveM: Collision Causes and Fixes
Falling through an MLO in FiveM means its collision is not in place. Check this_is_a_map, .ytyp lines, duplicate .ybn files, spawn scripts and streaming memory.
How to Install an MLO on a FiveM Server
How to install an MLO on a FiveM server: stream folder, fxmanifest.lua with this_is_a_map and DLC_ITYP_REQUEST, map conflicts, MLO not showing, Enhanced.


