-
-
Notifications
You must be signed in to change notification settings - Fork 500
Description
Describe the bug
When takePlayerScreenShot is triggered on a player who has a DX-based browser element rendered (for example, a chatbox created using dxDrawImage with a createBrowser),
the browser turns completely white, starts flickering rapidly, and sometimes causes a client crash.
This issue doesn’t happen when no DX browser is active.
Steps to reproduce
- Create a DX-based browser
local screenWidth, screenHeight = guiGetScreenSize()
local webBrowser = createBrowser(screenWidth, screenHeight, true, false)
function webBrowserRender()
dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true)
end
addEventHandler("onClientBrowserCreated", webBrowser,
function()
loadBrowserURL(webBrowser, "http://mta/local/html/site.html")
addEventHandler("onClientRender", root, webBrowserRender)
end
)
-
Trigger a screenshot from the server:
takePlayerScreenShot(player,200,200,"playerphoto",50) -
Observe that the browser turns white and flickers.
-
Sometimes, restarting the resource causes the client to crash with error libcef.dll
Expected behavior
takePlayerScreenShot should not interfere with DX browser rendering or cause instability.
Version
Client: Multi Theft Auto v1.6-release-23324 (Windows 10 64-bit)
Server: MTA:SA Server v1.6-release-23196
Additional context
Version = 1.6-release-23324.0.000
Time = Thu Oct 30 07:43:12 2025
Module = C:\Program Files (x86)\MTA San Andreas 1.6\MTA\libcef.dll
Code = 0x80000003
Offset = 0x06459BBC
Relevant log output
Security Policy
- I have read and understood the Security Policy and this issue is not security related.