May 12, 2024, 06:56:10
Ownage Owls

Author Topic: Tool for map recorders  (Read 3765 times)

Apr 8, 2012, 20:31:19
Read 3765 times
Offline

TheOfficialSpeed


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:

Code: (clientsided) [Select]
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.zip

To get started just start the resource and press R. Have fun!


Regards,
Speed

Apr 9, 2012, 09:22:56
Reply #1
Offline

$@HoT@


~>$@HoT@<~

Apr 9, 2012, 10:13:50
Reply #2
Offline

Potzo

Staff
This is gonna be helpful, thanks :D
Join us on Discord