Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Overkillz last won the day on November 11 2019

Overkillz had the most liked content!

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Overkillz's Achievements

Playa Partner

Playa Partner (27/54)



  1. Nonsense ? For other resolutions will be the default one "x1". On the other hand, there is something called elseif (Not sure if you heard about it) which allows you to set a multiplier for other resolutions ...
  2. You could use a variable that increase the size value of fonts, dx sizes ...etc local sX,sY = guiGetScreenSize() local multiplier = 1 if sY >= 2160 then multiplier = 2 end function yourOtherFunctions() dxDrawRectangle(0,0,250*multiplier, 100*multiplier) end
  3. Hello dear community, I'm back in development scene and I have some doubts about performing my current scritps that I made like 4 years ago. Well, the first question is Passing an element with multiple datas decrease is not a good way to a proper performance ? In fact, I have this doubt with a data which store players in a specific arena. Imagine that there are 32 players in that arena, well, im storing them in a table which is a data of the element. My question is, passing the whole element pass only the pointer address or pass the elements, therefore, the performance could be decreased ? I leave you a picture of the element. The other question is, what about if I trigger from a client to the server side an element which containts some datas, but before the element arrives to the server, some of the data changes his values. Which values arrives ? The updated one or the old one ? Best regards.
  4. Might you should check the following doc engineRequestModel It has an example that might could make you achieve your goal
  5. Did u add it to your meta file ? If you can, show is your meta file
  6. Are you sure that the file "states/fenyjelzo_szabad.txd" is loaded correctly ? Might you could add a condition with "fileExists" function to confirm that it exists. Regards.
  7. Not tested addEventHandler("onClientRender", root, function() local a = string.format("FPS: %d PING: %d", 51, getPlayerPing(localPlayer)) local c_version = "MTA:SA"..getVersion().mta.."*" dxDrawText(a, 0, 0, sx-dxGetTextWidth(c_version), sy, tocolor(255, 255, 255, 255), 1, "default", "right", "bottom", false, false, false, false, false) end )
  8. Whats exactly do you want to do ? It is doing what you have coded.
  9. getCursorPosition() playSound() Remember using onClientRender to catch the current position each frame. Regards.
  10. How base64 could help me ? It has not sense.
  11. Hello dear community. Is there a way to load an image that is not in the meta.xml INTO the HTML. Im currently downloading the avatar photos of x accounts, however, due to it isn't in meta.xml I can't load it. I hope you can bring me a hand. Best regards.
  12. Inside pumps table there isn't another sub-table or at least not as first array element. What does it mean ? Might you have an structure which looks like this one local pumps = { anyData = false, -- You can not get the lenght of this one subTable = {} -- However You CAN get the lenght of this one } Regards.
  13. Are u getting an array from the user ? Might there is your problem. You are using an ID instead of Name. I have not experienced with this, but as far as I could read at discord documentation, you should be getting an Array.
  14. Hello dear community, Im working with renderTargets since is a way that losing a bit of quality you can get an incredible performance. However, today I have faced an issue while drawing some text. Well, I have like 4k maps and obyously, each one has his own name. Well, while using renderTargets, I can't draw more than 1000 text I tried it while using a custom font and few stuffs more. If you think that my code is wrowng, here I left you the way Im working local sX,sY = guiGetScreenSize() local sizeX,sizeY = sX/2,sY/2 local fontHeight = dxGetFontHeight(1,"default-bold") local items = {} for n=1,4000 do table.insert(items,{text = "test"..n, path = "whatever", anim = 0, active = false}) end local rt = dxCreateRenderTarget(sizeX,fontHeight*#items,true) function drawContent() dxSetRenderTarget(rt, true) dxSetBlendMode("modulate_add") dxDrawRectangle(0,0,sizeX,fontHeight*#items,tocolor(255,0,0,100)) for i,k in ipairs(items) do dxDrawText(k.text,0,fontHeight*(i-1),sizeX,fontHeight*(i-1)+fontHeight,tocolor(255,255,255,255),1,"default-bold") end dxSetBlendMode("blend") dxSetRenderTarget() end function renderContent() if rt then dxDrawImage(0,0,sizeX,sizeY,rt,0,0,0,tocolor(255,255,255,255)) end end drawContent() addEventHandler("onClientRender",root,renderContent) I hope you can bring me a hand with this issue. Or a way to draw like 4k map names without affecting the performance. Best regards.
  15. Might you can apreciate the difference due to you are using default fonts or not thing fonts, but look As you can see, the second image is clearer. Due to the image cut, might you cant difference the quality, but, if you would see the full tab, the quality lost is appreciable. Anyways, I have done several test and ways to make it work, but nothing, texture shader doesn't work too ...etc So, maybe I will be forced to use module_add arg instead of add only. Regards.
  • Create New...