WASSIm. Posted November 5, 2018 Share Posted November 5, 2018 Hi guys will make TUT for cover radar.txd to taxture.. 1) Exports all radar pictures 2) Create meta.xml <meta> <info author="WASSIm." name="Radar cover" version="1.0.0" type="script" description="TUT Radar cover" /> <script src="client.lua" type="client" /> <file src="images/radar00.bmp" /> <file src="images/radar01.bmp" /> <file src="images/radar02.bmp" /> <file src="images/radar03.bmp" /> <file src="images/radar04.bmp" /> <file src="images/radar05.bmp" /> <file src="images/radar06.bmp" /> <file src="images/radar07.bmp" /> <file src="images/radar08.bmp" /> <file src="images/radar09.bmp" /> <file src="images/radar10.bmp" /> <file src="images/radar11.bmp" /> <file src="images/radar12.bmp" /> <file src="images/radar13.bmp" /> <file src="images/radar14.bmp" /> <file src="images/radar15.bmp" /> <file src="images/radar16.bmp" /> <file src="images/radar17.bmp" /> <file src="images/radar18.bmp" /> <file src="images/radar19.bmp" /> <file src="images/radar20.bmp" /> <file src="images/radar21.bmp" /> <file src="images/radar22.bmp" /> <file src="images/radar23.bmp" /> <file src="images/radar24.bmp" /> <file src="images/radar25.bmp" /> <file src="images/radar26.bmp" /> <file src="images/radar27.bmp" /> <file src="images/radar28.bmp" /> <file src="images/radar29.bmp" /> <file src="images/radar30.bmp" /> <file src="images/radar31.bmp" /> <file src="images/radar32.bmp" /> <file src="images/radar33.bmp" /> <file src="images/radar34.bmp" /> <file src="images/radar35.bmp" /> <file src="images/radar36.bmp" /> <file src="images/radar37.bmp" /> <file src="images/radar38.bmp" /> <file src="images/radar39.bmp" /> <file src="images/radar40.bmp" /> <file src="images/radar41.bmp" /> <file src="images/radar42.bmp" /> <file src="images/radar43.bmp" /> <file src="images/radar44.bmp" /> <file src="images/radar45.bmp" /> <file src="images/radar46.bmp" /> <file src="images/radar47.bmp" /> <file src="images/radar48.bmp" /> <file src="images/radar49.bmp" /> <file src="images/radar50.bmp" /> <file src="images/radar51.bmp" /> <file src="images/radar52.bmp" /> <file src="images/radar53.bmp" /> <file src="images/radar54.bmp" /> <file src="images/radar55.bmp" /> <file src="images/radar56.bmp" /> <file src="images/radar57.bmp" /> <file src="images/radar58.bmp" /> <file src="images/radar59.bmp" /> <file src="images/radar60.bmp" /> <file src="images/radar61.bmp" /> <file src="images/radar62.bmp" /> <file src="images/radar63.bmp" /> <file src="images/radar64.bmp" /> <file src="images/radar65.bmp" /> <file src="images/radar66.bmp" /> <file src="images/radar67.bmp" /> <file src="images/radar68.bmp" /> <file src="images/radar69.bmp" /> <file src="images/radar70.bmp" /> <file src="images/radar71.bmp" /> <file src="images/radar72.bmp" /> <file src="images/radar73.bmp" /> <file src="images/radar74.bmp" /> <file src="images/radar75.bmp" /> <file src="images/radar76.bmp" /> <file src="images/radar77.bmp" /> <file src="images/radar78.bmp" /> <file src="images/radar79.bmp" /> <file src="images/radar80.bmp" /> <file src="images/radar81.bmp" /> <file src="images/radar82.bmp" /> <file src="images/radar83.bmp" /> <file src="images/radar84.bmp" /> <file src="images/radar85.bmp" /> <file src="images/radar86.bmp" /> <file src="images/radar87.bmp" /> <file src="images/radar88.bmp" /> <file src="images/radar89.bmp" /> <file src="images/radar90.bmp" /> <file src="images/radar91.bmp" /> <file src="images/radar92.bmp" /> <file src="images/radar93.bmp" /> <file src="images/radar94.bmp" /> <file src="images/radar95.bmp" /> <file src="images/radar96.bmp" /> <file src="images/radar97.bmp" /> <file src="images/radar98.bmp" /> <file src="images/radar99.bmp" /> <file src="images/radar100.bmp" /> <file src="images/radar101.bmp" /> <file src="images/radar102.bmp" /> <file src="images/radar103.bmp" /> <file src="images/radar104.bmp" /> <file src="images/radar105.bmp" /> <file src="images/radar106.bmp" /> <file src="images/radar107.bmp" /> <file src="images/radar108.bmp" /> <file src="images/radar109.bmp" /> <file src="images/radar110.bmp" /> <file src="images/radar111.bmp" /> <file src="images/radar112.bmp" /> <file src="images/radar113.bmp" /> <file src="images/radar114.bmp" /> <file src="images/radar115.bmp" /> <file src="images/radar116.bmp" /> <file src="images/radar117.bmp" /> <file src="images/radar118.bmp" /> <file src="images/radar119.bmp" /> <file src="images/radar120.bmp" /> <file src="images/radar121.bmp" /> <file src="images/radar122.bmp" /> <file src="images/radar123.bmp" /> <file src="images/radar124.bmp" /> <file src="images/radar125.bmp" /> <file src="images/radar126.bmp" /> <file src="images/radar127.bmp" /> <file src="images/radar128.bmp" /> <file src="images/radar129.bmp" /> <file src="images/radar130.bmp" /> <file src="images/radar131.bmp" /> <file src="images/radar132.bmp" /> <file src="images/radar133.bmp" /> <file src="images/radar134.bmp" /> <file src="images/radar135.bmp" /> <file src="images/radar136.bmp" /> <file src="images/radar137.bmp" /> <file src="images/radar138.bmp" /> <file src="images/radar139.bmp" /> <file src="images/radar140.bmp" /> <file src="images/radar141.bmp" /> <file src="images/radar142.bmp" /> <file src="images/radar143.bmp" /> </meta> 3) Create client.lua (Script) addEventHandler("onClientResourceStart", resourceRoot, function () local texture = dxCreateRenderTarget(6144, 6144) local radars, count = {}, 0 for i=0, 143 do local id = i <10 and "0" or "" radars[i] = dxCreateTexture("images/radar"..id..i..".bmp") dxSetRenderTarget(texture) local width, height = dxGetMaterialSize(radars[i]) dxDrawImage(width*count, height*(math.floor(i/12)), width, height, radars[i]) count = count == 11 and 0 or count+1 end dxSetRenderTarget( ) local pixel = dxGetTexturePixels(texture) local pixels = dxConvertPixels(pixel, 'png') local file = fileCreate("radar.png") fileWrite(file, pixels) fileClose(file) end 4) And you will get this full map 1 Link to comment
Recommended Posts