Invalid vector field: y

I try to access a value that i defined in the config but it keeps saying i dont have it there

Config.lua:

Config                            = {}
Config.DrawDistance               = 100.0
Config.MarkerType                 = 2
Config.MarkerSize                 = { x = 0.2, y = 0.2, z = 0.1 }
Config.MarkerColor                = { r = 255, g = 255, b = 255 }
Config.EnablePlayerManagement     = true
Config.EnableArmoryManagement     = false
Config.EnableESXIdentity          = true -- only turn this on if you are using esx_identity
Config.EnableNonFreemodePeds      = false -- turn this on if you want custom peds
Config.EnableSocietyOwnedVehicles = false
Config.EnableLicenses             = false
Config.MaxInService               = -1
Config.Locale                     = 'pt'

Config.OrgsStations = {

  Cloakrooms = {
      Tgw = {x = -3219.1396, y = 810.7949, z = 8.9542},
      Palancas = {x = -851.0505, y = -444.9165, z = 31.2196},
      Soa = {x = 987.0114, y = -92.8981, z = 74.8459},
      Zetas = {x = -1887.3135, y = 2070.2144, z = 145.5739},
      Darkangels = {x = -2619.9185, y = 1713.0103, z = 146.3228},
      Ballas = {x = 120.3309, y = -1968.7440, z = 21.3276},
      Vagos = {x = 357.0702, y = -2033.4873, z = 22.3950},
      Vanilla = {x = 106.6295, y = -1299.5948, z = 28.7688},
      Mc = {x = -1408.5914, y = -687.1848, z = 34.5005},
  },

}

Code i am using:

for k,v in pairs(Config.OrgsStations.Cloakrooms.Palancas) do
            if GetDistanceBetweenCoords(coords, v.x,  v.y,  v.z,  true) < Config.DrawDistance then
              DrawMarker(Config.MarkerType, v.x, v.y, v.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, Config.MarkerSize.x, Config.MarkerSize.y, Config.MarkerSize.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, false, false, false)
            end
          end

error:

the correpondent line is the line where the if is

Thank you in advance for your comments

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.