How reddragonelite/rde_phone works
rde_phone is a FiveM phone operating system for ox_core servers. A player uses the phone item or keybind; the client opens the phone only after the server-side possession gate, then the NUI shell loads registered apps in sandboxed iframes. Apps use the SDK to request server-backed actions, while the shell handles launch, notifications, settings, calls, and localization. Built-in app pages cover calls, SMS, contacts, camera, gallery, and settings. The README documents integrations and capabilities not visible in the sampled source; those links are cited as documentation, not as inspected implementation.
Main entry points: phone.js Shell Controller · rde-phone-sdk.js App SDK · server.lua Server Runtime · index.html Phone Shell UI
Components 20
FiveM Runtime
- Client Runtime
client/client.lua - Server Runtime
server/server.lua - Configuration and Locales
config.lua
Phone Shell
- Phone Shell UI
web/index.html - Shell Controller
web/js/phone.js - Phone Styling
web/css/phone.css - App SDK
web/sdk/rde-phone-sdk.js - Tone Generator
web/theme/rdui-audio.js
Built-in Apps
- Calls App
web/apps/calls/index.html - SMS App
web/apps/sms/index.html - Contacts App
web/apps/contacts/index.html - Camera App
web/apps/camera/index.html - Gallery App
web/apps/gallery/index.html - Settings App
web/apps/settings/index.html
Services and Integrations
- Phone Item
data/items.lua - pma-voice
- screenshot-basic
- SQL Storage
- ox_inventory
Other components
- Player
Connections 29
- Player → Phone Item: uses
README.md - Phone Item → Client Runtime: opens phone
README.md - Client Runtime → Server Runtime: checks possession
README.md - Server Runtime → Phone Shell UI: opens NUI
README.md - Phone Shell UI → Shell Controller: loads controller
README.md - Shell Controller → Server Runtime: sends NUI requests
web/js/phone.js - Shell Controller → App SDK: relays app requests
web/js/phone.js - App SDK → Shell Controller: posts app messages
web/sdk/rde-phone-sdk.js - Shell Controller → Calls App: launches registered apps
README.md - Shell Controller → SMS App: launches registered apps
README.md - Shell Controller → Contacts App: launches registered apps
README.md - Shell Controller → Camera App: launches registered apps
README.md - Shell Controller → Gallery App: launches registered apps
README.md - Shell Controller → Settings App: launches registered apps
README.md - Calls App → App SDK: uses SDK
README.md - SMS App → App SDK: uses SDK
README.md - Contacts App → App SDK: uses SDK
README.md - Camera App → App SDK: uses SDK
README.md - Gallery App → App SDK: uses SDK
README.md - Settings App → App SDK: uses SDK
README.md - Server Runtime → SQL Storage: creates tables
README.md - Server Runtime → pma-voice: manages call channels
README.md - Server Runtime → ox_inventory: checks phone possession
README.md - Camera App → screenshot-basic: captures images
README.md - Shell Controller → Tone Generator: plays tones
web/theme/rdui-audio.js - Settings App → Tone Generator: previews tones
web/theme/rdui-audio.js - Configuration and Locales → Shell Controller: provides locale data
README.md - Configuration and Locales → App SDK: provides locale data
web/sdk/rde-phone-sdk.js - Phone Shell UI → Phone Styling: loads styles