Something
public lua v1 · immutablefunction at_end() loaded,rgd = pcall(loadRgd, "attrib\\attrib\\bag\\ability_bag.rgd") if loaded and rgd then -- rgd was loaded for k in rgd.GameData do print(k) end else if rgd then -- rgd is the error message print("Error: Cannot load RGD\n" .. rgd) else -- permission denied to load rgds print("Error: Not permitted to load RGD") end endend