Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Overkillz last won the day on November 11 2019

Overkillz had the most liked content!

Community Reputation

37 Good

1 Follower

About Overkillz

  • Rank
    Playa Partner

Recent Profile Visitors

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

  1. 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.
  2. 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-bo
  3. 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.
  4. Probably you are getting the seconds. If you want to get the minutes you have to convert the seconds in minutes ...etc Regards.
  5. I already test it, but it doesn't reach the quality like using only add
  6. Hello dear community, Im having an issue with renderTargets. Well, my problem is simple. Im trying to apply a fade effect to a renderTarget. Well, I want to have a decent quality while drawing stuffs on it, so, Im forced to se the function dxSetBlendMode. However, If I use it, I can't make fade animation. Here is the wiki example with the fade animation local myRenderTarget = dxCreateRenderTarget(500, 500, true) local alpha = 0 function updateRenderTarget() dxSetRenderTarget(myRenderTarget, true) dxSetBlendMode("modulate_add") dxDrawRectangle(0,0,500,500,to
  7. NOT TESTED I just build my own method due to I don't feel confortable with your way. Here you have local showImage = 1 local switchTick = getTickCount() local interval = 3000 --Image duration (Including fade) local images = { {path = "image1", alpha = 0}, {path = "image2", alpha = 0}, {path = "image3", alpha = 0}, {path = "image4", alpha = 0}, } function drawImages() if getTickCount() - switchTick > interval then showImage = showImage + 1 if showImage > #images then showImage = 1 end switchTick = getTickCount() end for i,k in ipairs(images) do if i ==
  8. Alright, thats the other way I supposed to use. However, whats the efficence of using that way ? Is there another efficent way? (Not adding all the content in the same file) Thanks in advance and best regards.
  9. Hello dear community, First of all, I know that i can solve my problem with a simple trigger, but Im a bit curious and I would like to know why this is not working or which one is the best way to call it. Well, I have done a template to use it multiple times in the same resource but just changing a variable, so, some of them uses the same fucntion name but i just used local (This should prevent interaction issues) So I realized the is only executed the last one added in meta.xml I know that Im explaining very very bad, but I have done an example that it understable (I thi
  10. @IIYAMA Thanks for your suggestion, but, Im not going to reach the effect that Im looking for cuz I think the effect will be notable and not fancy while reaching the corners and the effect im looking for is that a circle over draw the "Rounded rectangle" I think i have explained pretty bad so I just made a quicky image to take it as reference. As you can see, some parts of the circle already left the rectangle (It won't be visible). Otherwise, is there a way to load .svg on MTA ? Thanks in advance, best regards.
  11. Hello dear community, I would like to ask if there is a way to limit the draw size to a texture ? What do I mean, well, I have a texture (A rectangle with rounded corners) well, I want to create an animation. A circle that becomes to a rectangle with BORDER CORNERS I think I luckily did this script like 4 years ago, but no idea how I did it (I know trat it sounds absurd.) If im not wrong, I used a shader, and I think it was the HUD Mask Shader: http://nightly.mtasa.com/files/shaders/shader_hud_mask.zip I would like to get any tip or suggestion to start to code the an
  12. Hello dear community, today I have a simple question. Is there a way to insert a table with dbExec ? I know I can use a loop and insert them one by one, but Im worried about the impact that it could cause. Thanks for reading, best regards.
  13. Well, you probably will need to use the following functions since you are going to connect your server to your web-server dbConnect() dbQuery() dbExec() In case that mybb uses a hash system to encrypt the account passwords (Highly posible) this method is not going to work for you unless you know which kind of encryption method uses. Best regards.
  14. Well, looks like creating renderTargets while you are minimized it fully bugs the renderTarget element. I just added some functions to avoid the creation of renderTargets while the players is minimized ...etc Also, while restoring, Im destroying the renderTarget element to create it again just to ensure that everything its ok. Just to clear one thin. I thought that using the argument (didClearRenderTargets) provided by onClientRestore would be usefull, but I really have just tested it and it didn't work for me, so, restoring wasnt working at all since this argument doesn't work
  15. @Bonsai First of all, thanks for answering. Well, creating renderTarget again might could cause the issue. About calling drawTopTime() iinside render function the CPU Usage fires depending of the amount inside the table. The reason why Im creating again the renderTarget is due to the size changes depending of the amount inside the table. I need to clear out that I've already tried to destroy the renderTarget element and setting the variable as nil. Any suggestions ? @IIYAMA I've just commented about what you told I had already tried to destroy the eleme
  • Create New...