Code Addons Are Here
LitheraRP now has a real code addon SDK.
With s&box Targeted Addons, addon projects can target LitheraRP directly, implement ILitherarpAddon, and hook into the gamemode without forking it. Addons get host/client lifecycle methods, host tick support, shutdown cleanup, logging, config access and runtime registration APIs.
Code loading is intentionally opt-in. Operators must enable code addons globally, then enable code per addon entry. Packages also need to be published against LitheraRP as their parent game, with local.* support for editor development.
With s&box Targeted Addons, addon projects can target LitheraRP directly, implement ILitherarpAddon, and hook into the gamemode without forking it. Addons get host/client lifecycle methods, host tick support, shutdown cleanup, logging, config access and runtime registration APIs.
Code loading is intentionally opt-in. Operators must enable code addons globally, then enable code per addon entry. Packages also need to be published against LitheraRP as their parent game, with local.* support for editor development.
A Real SDK Surface
Addons can now register runtime jobs, shop stock, weapon dealer items, food dealer items, NPCs, custom NPC kinds, clothing entries, runtime item definitions, localization, config files, public config sections, screen panels and chat commands.
That means addons can add real gameplay content instead of only patching JSON.
The update also includes an example addon project with a Courier job, an Energy Bar, a HUD panel, a /hello chat command, gameplay hooks, config, player data, and a custom vehicle vendor NPC.
That means addons can add real gameplay content instead of only patching JSON.
The update also includes an example addon project with a Courier job, an Energy Bar, a HUD panel, a /hello chat command, gameplay hooks, config, player data, and a custom vehicle vendor NPC.
Gameplay Hooks
A new gameplay event bus exposes both post-events and cancelable pre-hooks.
Addons can react to or block actions across player connection, spawning, jobs, economy, shop purchases, dealer purchases, combat, cuffs, jail, fines, warrants, bank operations, salaries, printers, properties, chat, items, votes, lottery, heists, laws, group banks, medical, taxi fares, hit contracts, drugs, props and phone activity.
Pre-hooks can deny actions with a visible reason, or adjust supported values such as salary amount, jail duration or damage.
Addons can react to or block actions across player connection, spawning, jobs, economy, shop purchases, dealer purchases, combat, cuffs, jail, fines, warrants, bank operations, salaries, printers, properties, chat, items, votes, lottery, heists, laws, group banks, medical, taxi fares, hit contracts, drugs, props and phone activity.
Pre-hooks can deny actions with a visible reason, or adjust supported values such as salary amount, jail duration or damage.
Player Data, UI And Effects
Addons can now save their own per-player JSON data separately from core player saves.
They can also sync private per-player sections to only the owning client, which is perfect for addon HUDs, quests, XP, wallets or progression systems. The new status effect API supports timed effects, damage-over-time helpers, addon-scoped IDs and automatic cleanup.
Addon UI can register persistent ScreenPanels, and trusted addons can hide or restore non-protected core panels when replacing parts of the HUD.
Full SDK documentation and a runnable example addon are included for creators.
They can also sync private per-player sections to only the owning client, which is perfect for addon HUDs, quests, XP, wallets or progression systems. The new status effect API supports timed effects, damage-over-time helpers, addon-scoped IDs and automatic cleanup.
Addon UI can register persistent ScreenPanels, and trusted addons can hide or restore non-protected core panels when replacing parts of the HUD.
Full SDK documentation and a runnable example addon are included for creators.