Skip to content

Installation ​

Requirements ​

  • FiveM Lua 5.4
  • oxmysql
  • np_jobs with addon API 1 and feature registration support
  • MySQL or MariaDB

np_jobs is the access-control host and is required for player operations. np_inventory and np_hud are optional.

Install the resource ​

  1. Place np_evidence beside the other server resources.
  2. Run the repository's sql/install.sql on the server database. By default, AutoCreateTables = true also installs missing tables when the resource starts.
  3. Ensure oxmysql, np_jobs, and then np_evidence in that order. Optional resources may start before or after it; the resource checks them at runtime.
  4. Open shared/config.lua and review jurisdiction, evidence types, collection requirements, locker capacity, and lab methods.
  5. In np_jobs, grant the appropriate evidence.* feature nodes to jobs and grades. Configure job metadata jurisdiction for case scoping. No local job name or grade check is available as a fallback.
  6. Authorized staff open the workspace with F7 or /evidence.

Feature grants ​

Feature Allows
evidence.scene.inspect View scene traces and case summaries.
evidence.scene.document Create a server-positioned observation.
evidence.sample.collect Collect and package configured physical evidence.
evidence.case.create Create a case in the player's jurisdiction.
evidence.case.read Read cases in the player's jurisdiction.
evidence.case.manage Assign an unlinked observation to an open case.
evidence.sample.transfer Offer and accept officer-to-officer custody transfers.
evidence.lab.submit Submit a collected sample to the lab queue.
evidence.lab.analyze Record a lab analysis.
evidence.locker.manage Store and withdraw samples from case lockers.
evidence.case.close Close an open case.

Each action checks its relevant capability server-side and requires duty. Case access also checks that the active job's jurisdiction matches the case.

Inventory modes ​

With a current np_inventory build that supports beforeTrade, the resource registers a unique np_evidence_sample item and one private stash per case. Generic item move, give, trade, and drop actions for sealed samples are vetoed; use the evidence workspace for custody moves. With no inventory, the default permits record-only collection, which cannot be submitted as a physical lab sample. RequireEvidenceBag = true and RequireCollectionItems = true can make inventory packages and kit items mandatory.

Startup behavior ​

The manifest declares np_addon 'np_jobs' but leaves np_jobs out of the FiveM hard dependency list so resources can start and report a clear fail-closed state while server owners bring up the host. Player access remains unavailable until the host is online and features are registered.