The problem has nothing to do with ESXi. There is zero correlation. The error originates from a FiveM client script (Lua), specifically from ptelevision and the FiveM DUI browser API. Anyone suspecting ESXi here is looking in the wrong universe.
Short help / quick fix:
- This is a client-side Lua error in FiveM, not a host or VM issue.
- A DUI handle is invalid because it was never created, was already destroyed, or is accessed too early.
- Ensure CreateDui() succeeds before calling IsDuiAvailable().
- Do not call DestroyDui() before the browser is fully initialized.
- Add a short wait or a state check before PlayBrowser() runs.
- Update ptelevision to the latest version and verify compatibility with your FiveM build.
- If already up to date, clear the FiveM client cache and retest.
- Check the ptelevision GitHub issues; this bug is common and documented.
Thatâs it.