BJ | NPC Interactions
A simple NPC dialogue system for FiveM, enabling conversations with configured NPCs and ambient pedestrians.
Features
- NPC dialogue UI via `html/`
- Configured NPC spawning by the script
- Ambient pedestrian interactions when `AllowAmbientInteractions = true`
- Transaction system with cash or item costs
- Rewards as information or items
- Multilanguage support (`pl`, `en`)
- Dialogue categories based on NPC model/type
- Integration with `ox_target` and `qb-target`
Requirements
- Framework: `esx` | `qbcore` | `qbox`
- Target: `ox_target` | `qb-target` | `qtarget`
- Inventory: `ox_inventory` | `qs-inventory`
- Built-in UI for dialogs in `html/`
Editing dialogs
The files in `dialogs/` contain the conversation structure for each category and language.
Each dialog node includes:
- `npc` — NPC dialogue text
- `options` — player choice buttons
- `goto` — next dialogue node
- `type` — special action: `location`, `time`, `transaction`, `close`
Dialogues always start from the `['main']` node.