How sallahboussettah/sb-framework works
SB Framework is a custom FiveM roleplay server composed of independent gameplay and service scripts. Players interact with character setup and shared in-game systems, while specialized scripts support economy, jobs, vehicles, and roleplay services. The sampled phone and police interfaces show NUI message handling, state stores, and rendered views; the prison interface shows a staged booking workflow. Most Lua/server implementations were not provided, so unsampled capabilities are represented at their documented script paths, without inferred runtime connections.
Main entry points: html/script.js Police Systems · src/App.tsx Phone UI · src/App.tsx Police UI · html/script.js Prison Booking
Components 22
Player Experience
- Character Setup
resources/[custom]/sb_multicharacter/html/script.js - Smartphone
resources/[custom]/sb_phone/html/script.js - Apartments
resources/[custom]/sb_apartments/html/js/app.js
Economy And Work
- Banking
resources/[custom]/sb_banking/html/script.js - Company Supply Chain
resources/[custom]/sb_companies/html/storage.js - Job Center
resources/[custom]/sb_jobs/html/script.js - Drug Economy
resources/[custom]/sb_drugs/html/script.js
Vehicles And World
- Vehicle Storage
resources/[custom]/sb_garage/html/script.js - Vehicle Condition
resources/[custom]/sb_mechanic_v2/html/crafting.js
Public Services
- Police Systems
resources/[custom]/sb_police/html/script.js - Prison Booking
resources/[custom]/sb_prison/html/script.js - Job Dispatch
resources/[custom]/sb_alerts/html/script.js
Service Interfaces
- Phone UI
resources/[custom]/sb_phone/ui/src/App.tsx - Phone NUI Events
resources/[custom]/sb_phone/ui/src/App.tsx - Phone Views
resources/[custom]/sb_phone/ui/src/components/PhoneFrame.tsx - Phone State
resources/[custom]/sb_phone/ui/src/store/phoneStore.ts - Police UI
resources/[custom]/sb_police/ui/src/App.tsx - Police MDT
resources/[custom]/sb_police/ui/src/components/MDTWindow.tsx - Police State
resources/[custom]/sb_police/ui/src/store/mdtStore.ts - Booking Workflow
resources/[custom]/sb_prison/ui/src/components/BookingWindow.tsx - Booking State
resources/[custom]/sb_prison/ui/src/store/bookingStore.ts
Other components
- FiveM Player
Connections 14
- Phone UI → Phone NUI Events: registers events
resources/[custom]/sb_phone/ui/src/App.tsx - Phone UI → Phone State: updates state
resources/[custom]/sb_phone/ui/src/App.tsx - Phone UI → Phone Views: renders
resources/[custom]/sb_phone/ui/src/App.tsx - Police UI → Police State: handles messages
resources/[custom]/sb_police/ui/src/App.tsx - Police UI → Police MDT: renders
resources/[custom]/sb_police/ui/src/App.tsx - Police MDT → Police State: reads page state
resources/[custom]/sb_police/ui/src/components/MDTWindow.tsx - Booking Workflow → Booking State: reads workflow state
resources/[custom]/sb_prison/ui/src/components/BookingWindow.tsx - FiveM Player → Character Setup: creates character
- FiveM Player → Smartphone: uses
- FiveM Player → Apartments: rents housing
- Police Systems → Police UI: provides MDT interface
- Police Systems → Prison Booking: supports booking
- Prison Booking → Booking Workflow: provides booking interface
- Police Systems → Job Dispatch: receives job alerts