Cover image

Installation

Welcome to the documentation for Cayo Perico Gás Station.

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

1. 📁 Place the map in the resources folder

Move the ready-made map folder into your server’s resources folder.

Example path: cfx-server/resources/[maps]/new-age-studios

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 line:

ensure new-age-cayo-perico-gas

4. ▶️ Start the server

Run your server as usual.

Attention

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.

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)