JJM Modifications
🛠️

Configuration

Full reference for every option in config.lua.

All configuration lives in config.lua, which is the only file you need to edit for day-to-day customisation.

Core Settings#

OptionDefaultDescription
Config.EnabledtrueMaster toggle. Set to false to disable the HUD entirely on startup.

Update Rates#

OptionDefaultDescription
Config.LocationUpdateMs250How often (ms) the street name, zone, heading, and time are refreshed.
Config.PostalUpdateMs800How often (ms) the nearest postal is recalculated. Keep this higher on large postal datasets.

Visibility#

OptionDefaultDescription
Config.HideWhenPauseMenutrueHides the HUD while the pause menu is open.
Config.HideWhenHudHiddentrueHides the HUD when the player's radar or HUD is hidden (e.g. cinematic mode).

Display Toggles#

Each element of the HUD can be turned on or off independently.

OptionDefaultDescription
Config.ShowPostaltrueShows the nearest postal code.
Config.ShowTimetrueShows the in-game clock.
Config.ShowCountytrueShows the county name (Los Santos County or Blaine County).
Config.ShowAreatrueShows the current zone label.
Config.ShowDirectiontrueShows the 8-way compass heading.
Config.ShowRoadtrueShows the current street and cross street.

Formatting#

OptionDefaultDescription
Config.TimeFormat24hfalsetrue for 24-hour clock; false for 12-hour with AM/PM.
Config.PostalCompacttruetrue shows just the code (e.g. 2012); false prefixes it with Postal: .
Config.RoadSeparator" / "String placed between the street name and cross street.

Screen Placement#

Config.Position sets the CSS left and bottom values used when Config.AnchorToMinimap is disabled:

Config.Position = {  left   = "1.8vw",  bottom = "2.8vh",}

When Config.AnchorToMinimap is true the resource calculates the minimap's position at runtime and places the HUD just above it. Use the margin options to fine-tune the gap:

OptionDefaultDescription
Config.AnchorToMinimaptrueAutomatically positions the HUD above the minimap.
Config.MinimapMarginX0.005Extra horizontal offset (normalised screen units, ~0.5 vw).
Config.MinimapMarginY0.015Extra vertical offset above the minimap (~1.5 vh).

Postal Data#

OptionDefaultDescription
Config.PostalsFile'data/postals.json'Path to the postal data file relative to the resource root.
Config.PostalGridSize250.0Spatial grid cell size in game units. Larger values mean fewer, slower buckets.
Config.PostalSearchRings2Number of neighbouring grid cells scanned when finding the nearest postal.
Tip

On very large postal lists, increasing Config.PostalGridSize reduces memory usage but may slow per-bucket lookups. Increasing Config.PostalSearchRings improves accuracy near cell boundaries at a small CPU cost.

Near System#

The Near system displays a Near <Place> label when the player is within a set radius of a named location. Configure it under Config.Near:

OptionDefaultDescription
Config.Near.EnabledtrueToggles the Near system on or off.
Config.Near.Radius150.0Detection radius in game units.

Config.Near.Locations is the list of named places. Each entry requires a label, x, and y:

Config.Near.Locations = {    { label = "Legion Square",  x = 215.76,  y = -915.73, z = 30.69 },    { label = "Paleto Bay",     x = -441.23, y = 6015.78, z = 31.72 },    -- add more entries here}

The resource ships with twenty default locations covering major landmarks across both Los Santos and Blaine County. Add, remove, or rename entries freely.

County Mapping#

The HUD determines whether a player is in Los Santos County or Blaine County by checking the game's internal zone short code against Config.Counties.BlaineZones. Any zone not in that list is treated as Los Santos County.

OptionDefaultDescription
Config.Counties.LosSantosName"Los Santos County"Display name for Los Santos County.
Config.Counties.BlaineName"Blaine County"Display name for Blaine County.
Config.Counties.BlaineZones(list of zone codes)Zone short codes classified as Blaine County.

Edit Config.Counties.BlaineZones if you use a custom map or if certain zones are misclassified on your server.

Styling#

Config.Style controls the visual appearance of the HUD panel. All values are passed directly to the HTML overlay as CSS variables.

OptionDefaultDescription
fontSize"0.95rem"Text size.
lineGap"0.18rem"Vertical gap between lines.
bg"rgba(0,0,0,0.35)"Background colour and opacity.
border"rgba(255,255,255,0.10)"Border colour.
padX"0.65rem"Horizontal padding.
padY"0.45rem"Vertical padding.
radius"0.65rem"Corner radius.
Note

Values in Config.Style override the defaults in html/style.css. You can also edit html/style.css and html/index.html directly for deeper visual customisation — these files are not encrypted.

HUD Display Mode#

Config.HUDDisplayMode sets the initial display mode when the resource starts. Valid values are "default", "minimal", and "hidden". This can also be changed at runtime with the /changeHUD command.