> For the complete documentation index, see [llms.txt](https://newagestudios.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://newagestudios.gitbook.io/home/fivem/cayopericogas/install.md).

# Installation

***

## 📎**Tutorial: How to Install a Ready-Made Map on FiveM**

#### 1. 📁 **Place the map in the `resources` folder**

* Move the ready-made map folder (e.g., `NW_map`) into your server’s `resources` folder.

> Example path:\
> `cfx-server/resources/[maps]/new-age-studios`&#x20;

#### 2. 🧹 **Delete the server cache**

Before starting the server, delete the `cache` folder located at the root of the server.

> This prevents old data from interfering with the correct map loading.

#### 3. 📜 **Add to `server.cfg`**

Open the `server.cfg` file and add the following lines in this order:

```cfg
ensure New-Age-cayo-fuel-station
```

#### 4. ▶️ **Start the server**

Run your server as usual.

{% hint style="warning" %}
You need to load the Cayo Perico island for the Cayo Gas Station map to work. To do this, I created a simple client script to add it to your city. I hope you like it.
{% endhint %}

{% tabs %}
{% tab title="QB/ESX/VRP" %}

```lua
local function getInteriorByType(x, y, z, name, iplName)
  local id = 0

  if not IsIplActive(iplName) then
      RequestIpl(iplName)
      while not IsIplActive(iplName) do
          RequestIpl(iplName)
          Wait(20)
      end
  end

  while id == 0 do
      id = GetInteriorAtCoordsWithType(x, y, z, name)
      Wait(20)
  end

  return id
end

CreateThread(function()
  while true do
      SetRadarAsExteriorThisFrame()
      local coords = vec(4700.0, -5145.0)
      SetRadarAsInteriorThisFrame("h4_fake_islandx", coords.x, coords.y, 0, 0)
      Wait(0)
  end
end)

Citizen.CreateThread(function()
  --Remover Grama
  RemoveIpl("h4_mph4_terrain_02_grass_2")
  RemoveIpl("h4_mph4_terrain_01_grass_1")
  RemoveIpl("h4_mph4_terrain_05_grass_0")
  RemoveIpl("h4_mph4_terrain_01_grass_0")
  RemoveIpl("h4_mph4_terrain_02_grass_1")
  RemoveIpl("h4_mph4_terrain_02_grass_0")
  RemoveIpl("h4_mph4_terrain_02_grass_3")
  RemoveIpl("h4_mph4_terrain_04_grass_0")
  RemoveIpl("h4_mph4_terrain_06_grass_0")
  RemoveIpl("h4_mph4_terrain_04_grass_1")
  -------------------------------------------
  RequestIpl("h4_mph4_terrain_occ_09")
  RequestIpl("h4_mph4_terrain_occ_06")
  RequestIpl("h4_mph4_terrain_occ_05")
  RequestIpl("h4_mph4_terrain_occ_01")
  RequestIpl("h4_mph4_terrain_occ_00")
  RequestIpl("h4_mph4_terrain_occ_08")
  RequestIpl("h4_mph4_terrain_occ_04")
  RequestIpl("h4_mph4_terrain_occ_07")
  RequestIpl("h4_mph4_terrain_occ_03")
  RequestIpl("h4_mph4_terrain_occ_02")
  RequestIpl("h4_islandx_terrain_04")
  RequestIpl("h4_islandx_terrain_05_slod")
  RequestIpl("h4_islandx_terrain_props_05_d_slod")
  RequestIpl("h4_islandx_terrain_02")
  RequestIpl("h4_islandx_terrain_props_05_a_lod")
  RequestIpl("h4_islandx_terrain_props_05_c_lod")
  RequestIpl("h4_islandx_terrain_01")
  RequestIpl("h4_mph4_terrain_04")
  RequestIpl("h4_mph4_terrain_06")
  RequestIpl("h4_islandx_terrain_04_lod")
  RequestIpl("h4_islandx_terrain_03_lod")
  RequestIpl("h4_islandx_terrain_props_06_a")
  RequestIpl("h4_islandx_terrain_props_06_a_slod")
  RequestIpl("h4_islandx_terrain_props_05_f_lod")
  RequestIpl("h4_islandx_terrain_props_06_b")
  RequestIpl("h4_islandx_terrain_props_05_b_lod")
  RequestIpl("h4_mph4_terrain_lod")
  RequestIpl("h4_islandx_terrain_props_05_e_lod")
  RequestIpl("h4_islandx_terrain_05_lod")
  RequestIpl("h4_mph4_terrain_02")
  RequestIpl("h4_islandx_terrain_props_05_a")
  RequestIpl("h4_mph4_terrain_01_long_0")
  RequestIpl("h4_islandx_terrain_03")
  RequestIpl("h4_islandx_terrain_props_06_b_slod")
  RequestIpl("h4_islandx_terrain_01_slod")
  RequestIpl("h4_islandx_terrain_04_slod")
  RequestIpl("h4_islandx_terrain_props_05_d_lod")
  RequestIpl("h4_islandx_terrain_props_05_f_slod")
  RequestIpl("h4_islandx_terrain_props_05_c")
  RequestIpl("h4_islandx_terrain_02_lod")
  RequestIpl("h4_islandx_terrain_06_slod")
  RequestIpl("h4_islandx_terrain_props_06_c_slod")
  RequestIpl("h4_islandx_terrain_props_06_c")
  RequestIpl("h4_islandx_terrain_01_lod")
  RequestIpl("h4_mph4_terrain_06_strm_0")
  RequestIpl("h4_islandx_terrain_05")
  RequestIpl("h4_islandx_terrain_props_05_e_slod")
  RequestIpl("h4_islandx_terrain_props_06_c_lod")
  RequestIpl("h4_mph4_terrain_03")
  RequestIpl("h4_islandx_terrain_props_05_f")
  RequestIpl("h4_islandx_terrain_06_lod")
  RequestIpl("h4_mph4_terrain_01")
  RequestIpl("h4_islandx_terrain_06")
  RequestIpl("h4_islandx_terrain_props_06_a_lod")
  RequestIpl("h4_islandx_terrain_props_06_b_lod")
  RequestIpl("h4_islandx_terrain_props_05_b")
  RequestIpl("h4_islandx_terrain_02_slod")
  RequestIpl("h4_islandx_terrain_props_05_e")
  RequestIpl("h4_islandx_terrain_props_05_d")
  RequestIpl("h4_mph4_terrain_05")

  RequestIpl("island_distantlights")
  RequestIpl("island_lodlights")
  RequestIpl("h4_clubposter_palmstraxx")
  RequestIpl("h4_clubposter_moodymann")
  RequestIpl("h4_clubposter_keinemusik")
  RequestIpl("h4_ch2_mansion_final")
  RequestIpl("h4_mph4_island_placement")
  RequestIpl("h4_islandx_mansion_vault")
  RequestIpl("h4_islandx_checkpoint_props")
  RequestIpl("h4_islandairstrip_hangar_props_slod")
  RequestIpl("h4_se_ipl_01_lod")
  RequestIpl("h4_ne_ipl_00_slod")
  RequestIpl("h4_se_ipl_06_slod")
  RequestIpl("h4_ne_ipl_00")
  RequestIpl("h4_se_ipl_02")
  RequestIpl("h4_islandx_barrack_props_lod")
  RequestIpl("h4_se_ipl_09_lod")
  RequestIpl("h4_ne_ipl_05")
  RequestIpl("h4_mph4_island_se_placement")
  RequestIpl("h4_ne_ipl_09")
  RequestIpl("h4_islandx_mansion_props_slod")
  RequestIpl("h4_se_ipl_09")
  RequestIpl("h4_mph4_mansion_b")
  RequestIpl("h4_islandairstrip_hangar_props_lod")
  RequestIpl("h4_islandx_mansion_entrance_fence")
  RequestIpl("h4_nw_ipl_09")
  RequestIpl("h4_nw_ipl_02_lod")
  RequestIpl("h4_ne_ipl_09_slod")
  RequestIpl("h4_sw_ipl_02")
  RequestIpl("h4_islandx_checkpoint")
  RequestIpl("h4_islandxdock_water_hatch")
  RequestIpl("h4_nw_ipl_04_lod")
  RequestIpl("h4_islandx_maindock_props")
  RequestIpl("h4_beach")
  RequestIpl("h4_islandx_mansion_lockup_03_lod")
  RequestIpl("h4_ne_ipl_04_slod")
  RequestIpl("h4_mph4_island_nw_placement")
  RequestIpl("h4_ne_ipl_08_slod")
  RequestIpl("h4_nw_ipl_09_lod")
  RequestIpl("h4_se_ipl_08_lod")
  RequestIpl("h4_islandx_maindock_props_lod")
  RequestIpl("h4_se_ipl_03")
  RequestIpl("h4_sw_ipl_02_slod")
  RequestIpl("h4_nw_ipl_00")
  RequestIpl("h4_islandx_mansion_b_side_fence")
  RequestIpl("h4_ne_ipl_01_lod")
  RequestIpl("h4_se_ipl_06_lod")
  RequestIpl("h4_ne_ipl_03")
  RequestIpl("h4_islandx_maindock")
  RequestIpl("h4_se_ipl_01")
  RequestIpl("h4_sw_ipl_07")
  RequestIpl("h4_islandx_maindock_props_2")
  RequestIpl("h4_islandxtower_veg")
  RequestIpl("h4_mph4_island_sw_placement")
  RequestIpl("h4_se_ipl_01_slod")
  RequestIpl("h4_mph4_wtowers")
  RequestIpl("h4_se_ipl_02_lod")
  RequestIpl("h4_islandx_mansion")
  RequestIpl("h4_nw_ipl_04")
  RequestIpl("h4_mph4_airstrip_interior_0_airstrip_hanger")
  RequestIpl("h4_islandx_mansion_lockup_01")
  RequestIpl("h4_islandx_barrack_props")
  RequestIpl("h4_nw_ipl_07_lod")
  RequestIpl("h4_nw_ipl_00_slod")
  RequestIpl("h4_sw_ipl_08_lod")
  RequestIpl("h4_islandxdock_props_slod")
  RequestIpl("h4_islandx_mansion_lockup_02")
  RequestIpl("h4_islandx_mansion_slod")
  RequestIpl("h4_sw_ipl_07_lod")
  RequestIpl("h4_sw_ipl_02_lod")
  RequestIpl("h4_se_ipl_04_slod")
  RequestIpl("h4_islandx_checkpoint_props_lod")
  RequestIpl("h4_se_ipl_04")
  RequestIpl("h4_se_ipl_07")
  RequestIpl("h4_mph4_mansion_b_strm_0")
  RequestIpl("h4_nw_ipl_09_slod")
  RequestIpl("h4_se_ipl_07_lod")
  RequestIpl("h4_islandx_maindock_slod")
  RequestIpl("h4_islandx_mansion_lod")
  RequestIpl("h4_sw_ipl_05_lod")
  RequestIpl("h4_nw_ipl_08")
  RequestIpl("h4_islandairstrip_slod")
  RequestIpl("h4_nw_ipl_07")
  RequestIpl("h4_islandairstrip_propsb_lod")
  RequestIpl("h4_islandx_checkpoint_props_slod")
  RequestIpl("h4_aa_guns_lod")
  RequestIpl("h4_sw_ipl_06")
  RequestIpl("h4_islandx_maindock_props_2_slod")
  RequestIpl("h4_islandx_mansion_office")
  RequestIpl("h4_islandx_maindock_lod")
  RequestIpl("h4_mph4_dock")
  RequestIpl("h4_islandairstrip_propsb")
  RequestIpl("h4_islandx_mansion_lockup_03")
  RequestIpl("h4_nw_ipl_01_lod")
  RequestIpl("h4_se_ipl_05_slod")
  RequestIpl("h4_sw_ipl_01_lod")
  RequestIpl("h4_nw_ipl_05")
  RequestIpl("h4_islandxdock_props_2_lod")
  RequestIpl("h4_ne_ipl_04_lod")
  RequestIpl("h4_ne_ipl_01")
  RequestIpl("h4_beach_party_lod")
  RequestIpl("h4_islandx_mansion_lights")
  RequestIpl("h4_sw_ipl_00_lod")
  RequestIpl("h4_islandx_mansion_guardfence")
  RequestIpl("h4_beach_props_party")
  RequestIpl("h4_ne_ipl_03_lod")
  RequestIpl("h4_islandx_mansion_b")
  RequestIpl("h4_beach_bar_props")
  RequestIpl("h4_ne_ipl_04")
  RequestIpl("h4_sw_ipl_08_slod")
  RequestIpl("h4_islandxtower")
  RequestIpl("h4_se_ipl_00_slod")
  RequestIpl("h4_islandx_barrack_hatch")
  RequestIpl("h4_ne_ipl_06_slod")
  RequestIpl("h4_ne_ipl_03_slod")
  RequestIpl("h4_sw_ipl_09_slod")
  RequestIpl("h4_ne_ipl_02_slod")
  RequestIpl("h4_nw_ipl_04_slod")
  RequestIpl("h4_ne_ipl_05_lod")
  RequestIpl("h4_nw_ipl_08_slod")
  RequestIpl("h4_sw_ipl_05_slod")
  RequestIpl("h4_islandx_mansion_b_lod")
  RequestIpl("h4_ne_ipl_08")
  RequestIpl("h4_islandxdock_props")
  RequestIpl("h4_islandairstrip_doorsopen_lod")
  RequestIpl("h4_se_ipl_05_lod")
  RequestIpl("h4_islandxcanal_props_slod")
  RequestIpl("h4_se_ipl_02_slod")
  RequestIpl("h4_nw_ipl_02")
  RequestIpl("h4_ne_ipl_08_lod")
  RequestIpl("h4_sw_ipl_08")
  RequestIpl("h4_islandairstrip")
  RequestIpl("h4_islandairstrip_props_lod")
  RequestIpl("h4_se_ipl_05")
  RequestIpl("h4_ne_ipl_02_lod")
  RequestIpl("h4_islandx_maindock_props_2_lod")
  RequestIpl("h4_sw_ipl_03_slod")
  RequestIpl("h4_ne_ipl_01_slod")
  RequestIpl("h4_beach_props_slod")
  RequestIpl("h4_underwater_gate_closed")
  RequestIpl("h4_ne_ipl_00_lod")
  RequestIpl("h4_islandairstrip_doorsopen")
  RequestIpl("h4_sw_ipl_01_slod")
  RequestIpl("h4_se_ipl_00")
  RequestIpl("h4_se_ipl_06")
  RequestIpl("h4_islandx_mansion_lockup_02_lod")
  RequestIpl("h4_islandxtower_veg_lod")
  RequestIpl("h4_sw_ipl_00")
  RequestIpl("h4_se_ipl_04_lod")
  RequestIpl("h4_nw_ipl_07_slod")
  RequestIpl("h4_islandx_mansion_props_lod")
  RequestIpl("h4_islandairstrip_hangar_props")
  RequestIpl("h4_nw_ipl_06_lod")
  RequestIpl("h4_islandxtower_lod")
  RequestIpl("h4_islandxdock_lod")
  RequestIpl("h4_islandxdock_props_lod")
  RequestIpl("h4_beach_party")
  RequestIpl("h4_nw_ipl_06_slod")
  RequestIpl("h4_nw_ipl_00_lod")
  RequestIpl("h4_ne_ipl_02")
  RequestIpl("h4_islandxdock_slod")
  RequestIpl("h4_se_ipl_07_slod")
  RequestIpl("h4_islandxdock")
  RequestIpl("h4_islandxdock_props_2_slod")
  RequestIpl("h4_islandairstrip_props")
  RequestIpl("h4_sw_ipl_09")
  RequestIpl("h4_ne_ipl_06")
  RequestIpl("h4_se_ipl_03_lod")
  RequestIpl("h4_nw_ipl_03")
  RequestIpl("h4_islandx_mansion_lockup_01_lod")
  RequestIpl("h4_beach_lod")
  RequestIpl("h4_ne_ipl_07_lod")
  RequestIpl("h4_nw_ipl_01")
  RequestIpl("h4_mph4_island_lod")
  RequestIpl("h4_islandx_mansion_office_lod")
  RequestIpl("h4_islandairstrip_lod")
  RequestIpl("h4_beach_props_lod")
  RequestIpl("h4_nw_ipl_05_slod")
  RequestIpl("h4_islandx_checkpoint_lod")
  RequestIpl("h4_nw_ipl_05_lod")
  RequestIpl("h4_nw_ipl_03_slod")
  RequestIpl("h4_nw_ipl_03_lod")
  RequestIpl("h4_sw_ipl_05")
  RequestIpl("h4_mph4_mansion")
  RequestIpl("h4_sw_ipl_03")
  RequestIpl("h4_se_ipl_08_slod")
  RequestIpl("h4_mph4_island_ne_placement")
  RequestIpl("h4_aa_guns")
  RequestIpl("h4_islandairstrip_propsb_slod")
  RequestIpl("h4_sw_ipl_01")
  RequestIpl("h4_mansion_remains_cage")
  RequestIpl("h4_nw_ipl_01_slod")
  RequestIpl("h4_ne_ipl_06_lod")
  RequestIpl("h4_se_ipl_08")
  RequestIpl("h4_sw_ipl_04_slod")
  RequestIpl("h4_sw_ipl_04_lod")
  RequestIpl("h4_mph4_beach")
  RequestIpl("h4_sw_ipl_06_lod")
  RequestIpl("h4_sw_ipl_06_slod")
  RequestIpl("h4_se_ipl_00_lod")
  RequestIpl("h4_ne_ipl_07_slod")
  RequestIpl("h4_mph4_mansion_strm_0")
  RequestIpl("h4_nw_ipl_02_slod")
  RequestIpl("h4_mph4_airstrip")
  RequestIpl("h4_island_padlock_props")
  RequestIpl("h4_islandairstrip_props_slod")
  RequestIpl("h4_nw_ipl_06")
  RequestIpl("h4_sw_ipl_09_lod")
  RequestIpl("h4_islandxcanal_props_lod")
  RequestIpl("h4_ne_ipl_05_slod")
  RequestIpl("h4_se_ipl_09_slod")
  RequestIpl("h4_islandx_mansion_vault_lod")
  RequestIpl("h4_se_ipl_03_slod")
  RequestIpl("h4_nw_ipl_08_lod")
  RequestIpl("h4_islandx_barrack_props_slod")
  RequestIpl("h4_islandxtower_veg_slod")
  RequestIpl("h4_sw_ipl_04")
  RequestIpl("h4_islandx_mansion_props")
  RequestIpl("h4_islandxtower_slod")
  RequestIpl("h4_beach_props")
  RequestIpl("h4_islandx_mansion_b_slod")
  RequestIpl("h4_islandx_maindock_props_slod")
  RequestIpl("h4_sw_ipl_07_slod")
  RequestIpl("h4_ne_ipl_07")
  RequestIpl("h4_islandxdock_props_2")
  RequestIpl("h4_ne_ipl_09_lod")
  RequestIpl("h4_islandxcanal_props")
  RequestIpl("h4_beach_slod")
  RequestIpl("h4_sw_ipl_00_slod")
  RequestIpl("h4_sw_ipl_03_lod")
  RequestIpl("h4_islandx_disc_strandedshark")
  RequestIpl("h4_islandx_disc_strandedshark_lod")
  RequestIpl("h4_islandx")
  RequestIpl("h4_islandx_props_lod")
  RequestIpl("h4_mph4_island_strm_0")
  RequestIpl("h4_islandx_sea_mines")
  RequestIpl("h4_mph4_island")
  RequestIpl("h4_mph4_island_long_0")
  RequestIpl("h4_islandx_disc_strandedwhale")
  RequestIpl("h4_islandx_disc_strandedwhale_lod")
  RequestIpl("h4_islandx_props")
  RequestIpl("h4_int_placement_h4")
end)
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://newagestudios.gitbook.io/home/fivem/cayopericogas/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
