Installation ​
Requirements ​
- FiveM Lua 5.4
oxmysqlnp_jobswith 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 ​
- Place
np_evidencebeside the other server resources. - Run the repository's
sql/install.sqlon the server database. By default,AutoCreateTables = truealso installs missing tables when the resource starts. - Ensure
oxmysql,np_jobs, and thennp_evidencein that order. Optional resources may start before or after it; the resource checks them at runtime. - Open
shared/config.luaand review jurisdiction, evidence types, collection requirements, locker capacity, and lab methods. - In
np_jobs, grant the appropriateevidence.*feature nodes to jobs and grades. Configure job metadatajurisdictionfor case scoping. No local job name or grade check is available as a fallback. - 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.