Just a custom Starfall library
Find a file
2025-11-14 23:03:00 -06:00
lua/starfall Add dev.wrap & dev.unwrap 2025-11-14 23:03:00 -06:00
README.md update readme to include more details 2025-11-14 22:05:40 -06:00

Just a custom SF library

  • Re-implement setfenv, getfenv, and env for loadstring
  • 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