Zone "GOLF" not existant

GetNameOfZone(pos.x, pos.y, pos.z)

returns with zone GOLF

local zones = { ['GOLF'] = "Rockford Hills & Golf Course" }

zones[GetNameOfZone(pos.x, pos.y, pos.z)]

this returns nil

All other zones are working fine, just GOLF is not.

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

Show the entire code…

print("GZone: " .. GetNameOfZone(pos.x, pos.y, pos.z))
print("Zone: " .. zones[GetNameOfZone(pos.x, pos.y, pos.z)])

GZone prints GOLF and Zone returns with error: attempt to concatenate a nil value (field ‘?’)

Issue occurs with other scripts that output zone name
Such as [Release] Street Label

Yesss, please if anyone has a fix for this, please reply. It’s happening with mine as well…

fixed, golf has to be lowercase.

Changing

local zones = { ['GOLF'] = "Rockford Hills & Golf Course" }

to

local zones = { ['golf'] = "Rockford Hills & Golf Course" }

fixes the issue