ERS Integration
Updated
ERS Integration
Raze_NPCAI uses its own client/ers_adapter.lua. You should not replace or append code to the base ERS client files.
Recommended order:
ensure night_ers
ensure Raze_NPCAI
The adapter currently uses ERS for identity/inventory refresh, surrender, kneeling, cuffing, uncuffing, searching, release, custody vehicle placement and interaction flee rolls. It also listens for ordered callout entities so the correct suspect/victim/witness role stays attached to the correct ped.
When an NPC conversation starts, NPCAI refreshes the MDT-aware person data and keeps that legal identity locked into the conversation. It also tracks the ped's real held weapon state and remembers the last weapon that was visibly held and then dropped/removed.
If an older NPCAI build previously changed ERS c_functions.lua, restore the original ERS file before using the current standalone adapter.
Something missing or unclear?
Ask in Discord ↗