Skip to content

Installation ​

Requirements ​

  • oxmysql
  • es_extended
  • np_inventory for the configured item-use hooks
  • np_admin for staff permissions and audit actions (optional)
  • np_character for character-scoped persistence (optional; framework identifiers are used otherwise)
  • np_hud for status display

Setup ​

  1. Install the np_needs resource and the SQL schema at sql/install.sql. The resource also creates its tables during startup when the database user has schema permissions.

  2. Ensure dependencies in order:

    cfg
    ensure oxmysql
    ensure es_extended
    ensure np_inventory
    ensure np_hud
    ensure np_needs
  3. Remove esx_status and esx_basicneeds from the ensure list. np_needs provides those resource names; running duplicate providers creates conflicting status state.

  4. Review shared/config.lua and set each Config.Needs.<name>.enabled value for the needs your server uses.

  5. Add item profiles in shared/config/items.lua or register them from a trusted server resource. Item entries must match your np_inventory item 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.