Rendering players camera view to NUI

Hello, for some time now, I’ve been trying to find a solution to the problem of rendering an accurate image from the player’s camera, which is triggered when they execute a command for NUI (a video call resource). I tried to base my approach on utk_render - GitHub - utkuali/utk_render: Render game view to html canvas element, but the canvas only displayed a black screen.

To ensure that I hadn’t made a mistake in the implementation, I used the ready-made demo provided by the creator of utk_render - utk_streamer (GitHub - utkuali/utk_streamer: simple streaming platform to use in fivem (utk_render)). However, this solution also resulted in only a black screen being rendered in the canvas.

Has anyone managed to achieve a similar solution and would be willing to share their implementation or provide some guidance to help solve this problem?

1 Like

I haven"t exemple, because i haven"t tested. I take the screen for discord of CFX (Discord)

Have you try to use without any camera.