ZiiiM
1
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'
ZiiiM
3
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
ryz0o
4
Yesss, please if anyone has a fix for this, please reply. It’s happening with mine as well…
ZiiiM
5
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