ns_CourtSystem — San Andreas Judicial System
Description:
This Court System brings a fully functional legal hub to your server. Players interact with a courthouse NPC to access a clean, modern government terminal UI where they can file lawsuits, submit police cases, request warrants, schedule court dates, and manage legal representation, all with proper role-based access and server-side security.
This isn’t a basic menu script. It’s a complete judicial workflow with case tracking, a judge approval system, a live court calendar, warrant logging, Discord webhooks, and an NPC queue system so multiple players can use the terminal without conflicts.
Features:
- Supported Frameworks: qb-core, qbx_core, ox_core, and es_extended
- Supported Targets: ox_target, qb-target, qtarget, bt-target, proximity fallback
- Supported Notifications: ox_lib, qb-core, okokNotify, mythic_notify, pNotify, codem
Case System
- Unique auto-incrementing case IDs (CASE-0001, CASE-0002…)
- 6 status stages: Pending → Awaiting Judge → Approved → Scheduled → In Trial → Closed
- Evidence upload per case
- Lawyer assignment system
Role-Based Menus
- Civilian | file complaints, view cases, request attorney
- Police | submit criminal cases, attach MDT reports, request warrants
- Lawyer | accept/decline assigned cases, submit defense evidence
- Judge | manage all cases, approve warrants, set court dates, update status
Warrant System
- Police submit warrant requests with probable cause
- Judge approves or denies
- Configurable auto-expiry
- Discord webhook logging
Court Scheduling
- Configurable weekly time slots
- Overlap prevention
- Judge approval required
- Discord webhook logging
NPC & World
- Configurable ped model and location
- Idle animation + faces player on interact
- Blip (toggleable)
- Waypoint helper
- Office hours restriction
Queue System
- Only one player at the terminal at a time
- Queue position notifications (“You are 2 in line”)
- Auto-timeout if player walks away
- Auto-remove on disconnect
Security
- All permission checks server-side only
- Server-enforced cooldowns (case submission, warrant requests)
- Input validation on all fields
Requirements:
- oxmysql
Screenshots
Links:
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 2150 |
| Requirements | oxmysql |
| Support | Yes |








