How reddragonelite/rde_aipd works
rde_aipd is a FiveM police-and-crime resource for ox_core. Its principal workflow detects crimes, manages wanted status and police response, and records selected events through optional Nostr logging. The README also documents witnesses, fatigue, tackles, jail, StateBag synchronization, and localized UI. Source excerpts were unavailable, so links between implementation components are limited to documented relationships; unverified links are dashed.
Main entry points: main.lua Police authority · nostr.lua Nostr logging · config.lua Configuration · crime.lua Crime detection
Components 13
Client gameplay
- Crime detection
client/crime.lua - Police AI
client/main.lua
Server authority
- Witness system
server/crime_witness_handler.lua - Police authority
server/main.lua - Wanted system
server/main.lua - Prison system
server/main.lua - Nostr logging
server/nostr.lua
Presentation and settings
- Wanted display
html/wanted_stars.html - Configuration
config.lua - Locales
locales
External integrations
- ox_core
- Nostr service
Other components
- Player
Connections 14
- Player → Crime detection: commits crimes
- Crime detection → Wanted system: reports crimes
- Wanted system → Police AI: dispatches response
- Police AI → Player: pursues suspect
- Witness system → Police authority: reports witnessed crimes
- Police authority → Wanted system: validates actions
README.md - Police authority → ox_core: syncs StateBags
README.md - Police authority → Prison system: manages jail
README.md - Wanted system → Wanted display: updates stars
- Police authority → Nostr logging: logs events
README.md - Nostr logging → Nostr service: sends logs
README.md - Configuration → Witness system: configures behavior
README.md - Configuration → Nostr logging: configures logging
README.md - Locales → Wanted display: localizes text
README.md