Ownage Owls

Community => Contributions => Topic started by: TheOfficialSpeed on Apr 8, 2012, 20:31:19

Title: Tool for map recorders
Post by: TheOfficialSpeed on Apr 8, 2012, 20:31:19
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 (http://www.speed-site.eu/downloads/recording_tool.zip)

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


Regards,
Speed
Title: Re: Tool for map recorders
Post by: $@HoT@ on Apr 9, 2012, 09:22:56
its cool  :)
Title: Re: Tool for map recorders
Post by: Potzo on Apr 9, 2012, 10:13:50
This is gonna be helpful, thanks :D