Just a custom Starfall library
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-21 12:54:55 -05:00
lua/starfall dont invade glua's hook namespace 2026-08-21 12:54:55 -05:00
README.md update readme with new hook stuff 2026-08-21 12:02:47 -05:00

Just a custom SF library

  • Re-implement setfenv, getfenv, and env for loadstring
  • Add dev.addHook(string hook, string name, function callback), dev.removeHook(string hook, string name), dev.removeAllHooks(), and dev.runHook(string hook, ... args)
  • Adds Entity:adjustInputs, Entity:adjustOutputs, and Entity:adjustPorts
    • Functions exactly like the wire counterparts.
  • Adds a custom library called dev, which is locked behind a server-side hook
    • NerdLib_CanUseDev(instance)
      • explicitly returning true allows this instance to use the dev library
      • returning any non-nil value to deny, and stop hook chain
      • returning nil continues hook chain

Color key What is it?
Blue (#9999FF) Server-only
Yellow (#FFFF99) Client-only
Green (#99FF99) Shared
Magenta (#FF99FF) Argument