GLua

1 program Added 2026-03-13T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Garry's Mod Lua, GMod Lua
Provenance: commit a7e7a618c6 · authored 2026-03-13T03:43:55+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Typed Lua (0.16)Gamma (0.12)Glulx (0.12)Gluon (0.12)Garnet (0.11)

LLM-contributed programs

HUD Health and Armor Display

Provenance: commit a7e7a618c6 · authored 2026-03-13T03:43:55+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lua · added: 2026-03-13T12:00:00Z
-- HUD painting example in GLua (Garry's Mod Lua)
-- Displays player health and armor on screen

hook.Add("HUDPaint", "DrawHealthHUD", function()
    local ply = LocalPlayer()
    if not IsValid(ply) then return end

    local hp  = ply:Health()
    local arm = ply:Armor()

    -- Background panel
    draw.RoundedBox(4, 10, 10, 200, 30, Color(0, 0, 0, 150))
    draw.RoundedBox(4, 10, 46, 200, 30, Color(0, 0, 0, 150))

    -- Health bar
    local hpWidth = math.Clamp(hp, 0, 100) * 2
    draw.RoundedBox(4, 10, 10, hpWidth, 30, Color(200, 50, 50, 200))
    draw.SimpleText("HP: " .. hp, "DermaDefaultBold", 20, 25,
        Color(255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)

    -- Armor bar
    local arWidth = math.Clamp(arm, 0, 100) * 2
    draw.RoundedBox(4, 10, 46, arWidth, 30, Color(50, 100, 200, 200))
    draw.SimpleText("AR: " .. arm, "DermaDefaultBold", 20, 61,
        Color(255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER)
end)

Contribute — propose a file extension

Tell us where to find evidence about GLua (mapped to pl/glua). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/GLua/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← glu glue-nail →