Legacy Scripts

legacy-scoreboard

Installation

Dependencies and setup order.

Installation

Dependencies

Install and start these resources before legacy-scoreboard:

Resource Why it's needed
legacy-lib Provides the Framework wrapper and branding exports (GetLogo, GetAccentColor, GetAccentGradient). server/server.lua calls exports['legacy-lib']:Framework() at file load time (not lazily), so if legacy-lib isn't running, this resource will error on start. It also depends on legacy-lib's framework-admin check for the staff badge feature.
ox_lib Provides lib.callback (used by both server exports), lib.addKeybind (client keybind), and lib.callback.await (client request).

Steps

  1. Ensure legacy-lib and ox_lib are both installed and placed before legacy-scoreboard in your server.cfg.
  2. Place the legacy-scoreboard resource folder in your resources directory.
  3. Add to server.cfg:
ensure legacy-lib
ensure ox_lib
ensure legacy-scoreboard
  1. Review and adjust config.lua (see Configuration) — in particular Config.Services, Config.VisibleJobs, and Config.Activities, which should match your server's job names.
  2. Restart the server / resource.

Note: Do not rename the resource folder/resource name after players have used it — anonymity preferences are stored in resource-local KVPs keyed by citizenid, and renaming the resource will orphan that stored data.

Installation · legacy-scoreboard · Legacy Scripts