fivemshare
Legendary Member
- Joined
- Oct 7, 2025
- Messages
- 1,445
- Reaction score
- 485

cr-3dnui
cr-3dnui is a developer library that lets you render live HTML/JS UIs onto walls, props, and surfaces in FiveM and interact with them in 3D using raycasts.Interactive 3D DUI panels for FiveM — real web apps on in-game screens.
Instead of opening fullscreen NUI, players walk up to a screen in the world and interact with a web UI that triggers your client/server logic.
Use cases:
- ATMs with PIN pads
- PD boards / MDT terminals
- Hospital check-in kiosks
- Vending machines / gas pumps / kiosks
- Arcade machines running HTML/JS games
- Admin / debug terminals
What it does
- Renders a live HTML page via DUI (CreateDui) using nui://... URLs
- Draws the DUI texture on a world-space quad (arbitrary position + normal)
- Converts camera ray → panel hit → UV (0..1) via RaycastPanel()
- Supports two interaction styles:
- Message-based input (good for menus)
- Native mouse injection (hover/drag, “real” pointer behavior)
- Optional helper: draws a HUD cursor sprite via DrawCursor() (your resource decides when)