An NPC SDK with visit scheduling, branching stories, 18 customer subsystems and automatic portrait registration.

Custom NPC Framework [Beta] v10.11.2026 · 130.2 КБ · 1 download Link verified · ModsFire
Contents

Custom NPC Framework is a foundational library for Probably Stolen mod developers, supporting custom shop customers, multi-day branching stories and game event integrations without additional permissions.

SDK features

  • NpcFrameworkSdk.cs can be included as a single source file without an assembly reference or extra Capabilities.
  • Five customer generation phases from VeryEarly to VeryLate, with priorities, day windows, cooldowns, once-per-save flags and spawn restrictions.
  • Per-save storyline state uses PlayerStore.ModData() and the cnpcf_ key namespace.
  • Eighteen subsystems cover buying and selling, wholesale bundles, barter, multi-day orders, in-game gunsmith orders, defect and authenticity checks, scales and counters, notes, terminal requests, phone contacts, newspaper headlines and afterhours events.
  • Automatic registration of 288×211 PNGs from Textures/ into SpriteDict. The developer panel can summon NPCs for testing and reset mod-specific save progress.

Documentation

The developer manual covers architecture, API, all 18 subsystems and integration workflows. This is a beta framework; enable it and its dependent add-on in Mods and restart the game.

Add to collection Report