Source-checkedQuality of life & UI

Layers API

by ViridianZe · for Garry's Mod

Layers API Separate worlds on one map, for addon makers and server owners. The Layers API is a library. On its own it adds nothing you can see: other addons use it to split one map into separate…

988Downloads
3d agoLast updated
Steam WorkshopSource

About Layers API

From Steam Workshop

Layers API Separate worlds on one map, for addon makers and server owners. The Layers API is a library. On its own it adds nothing you can see: other addons use it to split one map into separate…

Layers API

Separate worlds on one map, for addon makers and server owners.

The Layers API is a library. On its own it adds nothing you can see: other addons use it to split one map into separate worlds, called layers. The Upside Down is built on it, and you can build your own.

Players and props in different layers can't see, touch, hear or hurt each other. Other layers are never sent to your game, so they can't be drawn, aimed at or exploited. The map itself is shared by every layer, and everyone starts in the normal world.

What it keeps apart

  • Players, props, NPCs, vehicles, weapons and anything they spawn or throw
  • Collisions, physgun, gravgun, toolgun, using and picking things up
  • Damage, including explosives: a SLAM or dynamite planted in one layer only hurts that layer, whoever sets it off
  • Sounds, gunfire, bullet impacts, blood, effects and explosions
  • NPCs (they ignore people in other layers), voice and text chat

Every one of these can be opened up per layer: a layer can share chat, see another layer, or let damage through. Rules are two-sided, so nobody can force their way into your layer.

For addon makers

  • Short and readable: a complete, portal-only second world with a fade transition is about ten lines.
  • Entry and exit rules: portal only, admin only, on death, or your own check. Staff teleports always work.
  • Roles: owners, builders and visitors per layer, with CAMI group support.
  • Transitions: fade, flash, or your own screen effect.
  • Zones: areas that pull players into a layer when they walk in.
  • Views: let a player see into another layer, fully or as faint ghosts (spectating, scrying, cameras).
  • Events and hooks: for entering, leaving, spawning and more.
  • Death rules (2.2): dying in a layer can send you to the normal world, now or when you respawn. Nobody respawns stuck in a hidden world.
  • Pocket dimensions (2.2): walk on a flat floor around a point, with no map, a radius limit and your own drawn scene. Good for dream worlds, minds, voids and limbo.
  • Stand-in bodies (2.2): leave a body behind while you're elsewhere. Hitting it hurts you, even through prop protection. Comes with a sanctioned way to deal damage across layers.

The full reference and three example addons are inside the addon:

  • lua/layers_engine/docs/readme.lua: start here
  • lua/layers_engine/docs/api.lua: every function, rule and hook, with examples
  • lua/layers_engine/examples/: a mini Upside Down, an all-seeing spectator, and a haunted zone

(They're plain text inside Lua comments, so the Workshop accepts them. They never run.)

For server owners

  • Works with DarkRP (no escaping arrests or fights by switching layers), ULX (goto, bring, teleport and send follow players across layers, plus ulx layer, ulx layerspectate and ulx layerlist), CAMI and PermaProps. None are needed.
  • Admin tools: layers_stats, layers_inspect, layers_debug 1, and layers_selftest in the server console to check everything works on your server.
  • Permission: "Layers - Admin" (CAMI, admins by default).

Known limits

  • Exploding barrels and scorch marks from explosions can still be seen from other layers.
  • Looping sounds and effects made by other addons without an entity can't always be traced to a layer.

Highlights

From source data

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 3d ago.

Layers API on Nxeon

From our catalogue
One-click install
Supported on Nxeon Garry's Mod servers. We download it from Steam Workshop, place it, and restart the server.
Server load
light
Smallest plan we suggest
Garry's Mod — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2026-11-28, released 2026-11-28

Game versions by loader

LoaderGame versionsNewest
Workshop

From 1 recorded build of Layers API.

Run Layers API on a Garry's Mod server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Steam Workshop as “QoL”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Compatibility

Game
Garry's Mod

Verified at the source

  • ✓Steam WorkshopOfficial listing, checked 2026-11-28Open ↗
  • ✓AuthorViridianZe, as published on Steam Workshop
  • ✓LicenseNot published by the sourceFree

Layers API, answered

Generated from the mod’s own source data.

Is it free?

Yes. Layers API is free to download from Steam Workshop.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Layers API on a Garry's Mod server.

Deploy in about a minute from $3.99 a month, then add Layers API in one click.