Hey I made this little script for map recorders, its very simple. What it does is hiding all elements on your MTA screen (chat, hud, labels, gui elements, etc) and just shows the GTA world. You can toggle it on/off with "R" key.
I hope you guys will find it interesting.
Here is the code:
local screenWidth,screenHeight = guiGetScreenSize()
addEventHandler("onClientResourceStart", resourceRoot,
function()
myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight )
end
)
function cleanmyscreen()
if myScreenSource then
dxUpdateScreenSource( myScreenSource )
dxDrawImage( screenWidth - screenWidth, screenHeight - screenHeight, screenWidth, screenHeight, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true)
end
end
function tooglecleanmyscreen ()
enabled = not enabled
if enabled then
addEventHandler( "onClientRender", root, cleanmyscreen)
else
removeEventHandler( "onClientRender", root, cleanmyscreen)
end
end
bindKey ("r", "down", tooglecleanmyscreen)
If you are too lazy to make a resource with it, just download this:
www.speed-site.eu/downloads/recording_tool.zipTo get started just start the resource and press R. Have fun!
Regards,
Speed