Installation ​
Requirements ​
oxmysqles_extendednp_inventoryfor the configured item-use hooksnp_adminfor staff permissions and audit actions (optional)np_characterfor character-scoped persistence (optional; framework identifiers are used otherwise)np_hudfor status display
Setup ​
-
Install the
np_needsresource and the SQL schema atsql/install.sql. The resource also creates its tables during startup when the database user has schema permissions. -
Ensure dependencies in order:
cfgensure oxmysql ensure es_extended ensure np_inventory ensure np_hud ensure np_needs -
Remove
esx_statusandesx_basicneedsfrom the ensure list.np_needsprovides those resource names; running duplicate providers creates conflicting status state. -
Review
shared/config.luaand set eachConfig.Needs.<name>.enabledvalue for the needs your server uses. -
Add item profiles in
shared/config/items.luaor register them from a trusted server resource. Item entries must match yournp_inventoryitem names.
Legacy status writes ​
esx_status:onTick and legacy status reads are available for compatibility. Client-originated status mutations are disabled by default. Config.Security.AllowClientLegacyStatus can enable that legacy trust model for older scripts, but integrations should migrate to server-side exports instead.
See Compatibility & integrations before enabling the resource alongside np_drugs or other status owners.