Search the Community
Showing results for tags 'screenshot'.
-
Hello! I'm trying to replace some paintjobs in my server but I don't know if that is even possible. For example: if I wanted to replace jester2.txd texture, how would I do it? Here is a screenshot of my .lua, in case of this could help in any way: https://drive.google.com/file/d/1VciiFOzO5Vv5mw5ziJBiNyDteDB6qRvP/view?usp=sharing I would appreciate if you could help me, cheers!
- 2 replies
-
- paintjob
- replacement
-
(and 3 more)
Tagged with:
-
Dear users, as you know, I'm scripting a MTA server on my LAN test server. I have problems about screenshots, this is the resource code serverside: function scatta(risx, risy) takePlayerScreenShot(client, risx, risy, getPlayerName(client), 100, 10000000) end function salvala(ris, stato, immstr, tick, param) local mom = getRealTime() if(stato == 'ok') then local ha = fileCreate('imm-'..param..'-'..tostring(mom['timestamp'])..'.jpg') if(ha) then fileWrite(ha, immstr) fileClose(ha) end end triggerClientEvent(getPlayerFromName(param), 'fotoritorno', '', stato) end addEvent('fotofalla', true) addEventHandler("fotofalla", getRootElement(), scatta) addEventHandler("onPlayerScreenShot", getRootElement(), salvala) And this is clientside: function falla() local x,y = guiGetScreenSize() triggerServerEvent('fotofalla', x, y) end function risu(stato) outputChatBox('Risultato funzione: '..stato) end addCommandHandler('faifoto', falla) addEvent('fotoritorno', true) addEventHandler("fotoritorno", getRootElement(), risu) As you can see, I wrote the variables' name in my language (so you know), and I can use serverside only to take screenshot, except for taking screen resolution from client. This script doesn't work. Where I did mistakes? Thanks