Peak AI Police Report Writer
Peak AI Police Report Writer gives officers a focused field-notes workflow: dictate or type incident details, generate a structured draft, review it, and save the approved report into ps-mdt v3.
Workflow
- Open
/policereportin game. - Dictate with the browser speech input or type incident details.
- Generate a structured draft containing a summary, involved people, suggested charges, evidence, and tags.
- Review every field and edit the draft in the MDT workflow as needed.
- Submit the reviewed report to
ps-mdt.
AI output is always treated as a draft. Charges are suggestions for officer review, not legal advice, and unsupported names, IDs, charges, evidence, dates, and measurements are not invented.
Requirements and installation
- FiveM with Lua 5.4
oxmysqlps-mdtv3 with its SQL schema installed- Optional compatible chat-completions endpoint, local runtime, or open-weight model server
cfgset peak_police_openai_key "YOUR_SERVER_SIDE_KEY" add_ace group.police peak.police.report allow ensure oxmysql ensure ps-mdt ensure peak-police-report-writer
Configure shared/config.lua for the provider, endpoint, model, ACE permission, ps-mdt resource name, and job-type visibility restriction. Without an API key, the local fallback creates a factual reviewable draft. Ollama and local models can run AI drafting without sending data to a hosted provider.
Provider setup
The resource uses a common chat-completions format. Use Config.Ai.Provider = 'openai-compatible' for hosted gateways, 'ollama' for a local /v1/chat/completions endpoint, 'ollama-native' for a native local endpoint, or 'local' for another compatible server. Set Config.Ai.Endpoint and Config.Ai.Model to match your service, leave ApiKeyConvar = '' for local models, and set Config.Ai.JsonMode = false if your gateway rejects JSON mode. Custom authentication is supported with Config.Ai.ApiKeyHeader and Config.Ai.ApiKeyPrefix.
Security and privacy
API keys remain server-side in convars. Only ACE-authorized officers can draft or submit reports. Send only the personal information needed for the configured provider and follow the server’s retention policy. The resource uses parameterized SQL and does not expose database credentials to the client.
ps-mdt integration
The adapter targets the normalized ps-mdt v3 report tables for reports, involved people, charges, evidence, tags, and restrictions. It keeps ps-mdt ahead of the writer in server.cfg. Review the adapter after any ps-mdt schema upgrade.