How vrp-framework/vrp works
vRP is a FiveM roleplay framework. Its broad user workflow is player interaction with server-provided roleplay features, surfaced through the client and in-game GUI; the README documents identity, state, economy, inventory, jobs, and world interactions. The GUI also handles prompts, menus, progress bars, radio, and audio. A separate WebRTC service relays voice packets among players. Lua feature internals and their wiring were not sampled, so those components are represented at their module paths and only documented capabilities are linked. GUI and voice-service links reflect the shown source excerpts.
Main entry points: vRP.lua Framework core · gui/main.js GUI message router · AudioEngine.js Audio and VoIP client · voip_server/main.js WebRTC relay
Components 26
Roleplay framework
- Framework core
vrp/vRP.lua - Admin tools
vrp/modules/admin.lua - Identity and login
vrp/modules/identity.lua - Player state
vrp/modules/player_state.lua - Inventory
vrp/modules/inventory.lua - Money and business
vrp/modules/money.lua - Homes
vrp/modules/home.lua - Police and survival
vrp/modules/police.lua - Transformers
vrp/modules/transformer.lua - Shops and garage
vrp/modules/shop.lua - Map and warp
vrp/modules/map.lua
Client experience
- Client runtime
vrp/client/vRP.lua
Voice service
- WebRTC relay
voip_server/main.js - Relay configuration
voip_server/config.js
GUI components
- GUI message router
vrp/gui/main.js - Dynamic menu
vrp/gui/Menu.js - Progress bars
vrp/gui/ProgressBar.js - Text prompt
vrp/gui/WPrompt.js - Request manager
vrp/gui/RequestManager.js - Announcements
vrp/gui/AnnounceManager.js - Radio display
vrp/gui/RadioDisplay.js - Dynamic div
vrp/gui/Div.js - Dynamic classes
vrp/gui/dynamic_classes.js - Audio and VoIP client
vrp/gui/AudioEngine.js - Opus codec runtime
vrp/gui/lib/libopus.wasm.js
Other components
- Player
Connections 24
- Player → Framework core: uses framework
README.adoc - Framework core → Admin tools: provides admin
README.adoc - Framework core → Identity and login: provides identity
README.adoc - Framework core → Player state: provides state
README.adoc - Framework core → Inventory: provides inventory
README.adoc - Framework core → Money and business: provides economy
README.adoc - Framework core → Homes: provides homes
README.adoc - Framework core → Police and survival: provides policing
README.adoc - Framework core → Transformers: provides processing
README.adoc - Framework core → Shops and garage: provides commerce
README.adoc - Framework core → Map and warp: provides world tools
README.adoc - Client runtime → GUI message router: drives interface
- GUI message router → Dynamic menu: updates
vrp/gui/main.js - GUI message router → Progress bars: updates
vrp/gui/main.js - GUI message router → Text prompt: opens
vrp/gui/main.js - GUI message router → Request manager: queues
vrp/gui/main.js - GUI message router → Announcements: queues
vrp/gui/main.js - GUI message router → Radio display: updates
vrp/gui/main.js - GUI message router → Dynamic div: updates
vrp/gui/main.js - Progress bars → Dynamic classes: registers class
vrp/gui/ProgressBar.js - GUI message router → Audio and VoIP client: dispatches audio
vrp/gui/main.js - Audio and VoIP client → Opus codec runtime: initializes codec
vrp/gui/AudioEngine.js - Audio and VoIP client → WebRTC relay: exchanges voice data
- WebRTC relay → Relay configuration: loads settings
voip_server/main.js