Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Uh, i don't think so, as i didn't set the color of the rendertarget //edit: Just setted the 3rd argument (withAlpha) to true, and the black corners are gone. But the maps are now overlapped as you can see in the first post too. Way to solve this ?
  2. Thank you all. The black corners are just ugly, i know i have to use pngs but those were so big. Is there another way ?
  3. Karuzo

    Hex Color Help

    No, i'm not your Buttler lol. You just have to change some lines.
  4. Karuzo

    Hex Color Help

    Lol. Change every name = .... to local name= string.gsub ( getPlayerName ( ply), '#%x%x%x%x%x%x', '' )
  5. Hey Guys, so i tried to rotate my radar using rendertargets, but that just doesn't want to be how i want it. It rotates really awkward and i don't know why. Looks like this: I want that it just rotates normally between the rendertarget. --Created rendertarget addEventHandler("onClientRender",root, function( ) showPlayerHudComponent( "all", false ) showPlayerHudComponent("crosshair", true) local px ,py, pz = getElementPosition( localPlayer ) local playerZone = getZoneName( px ,py, pz ) local mapX = px / ( 6000 / 6000 ) + ( 6000 / 2 ) - ( width / 2 ) local mapY = py / ( -6000 / 6000 ) + ( 6000 / 2 ) - ( height / 2 ) local cx,cy,cz,tx,ty,tz = getCameraMatrix( ) local rotation = findRotation( cx,cy,tx,ty ) if rendertar then dxSetRenderTarget(rendertar) dxDrawImageSection( 0, 0, width, height, mapX, mapY, width , height , "map.jpg", rotation, 0, 0, tocolor( 255, 255, 255, 255 ), false ) dxSetRenderTarget() else outputChatBox(rendertar) end dxDrawImage(posX, screeny - posY, width, height, rendertar) dxDrawImage( posX + width / 2, screeny - posY + height / 2, 10, 10, "files/me.png" ) function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) if t < 0 then t = t + 360 end return t end end) Regards, KRZO
  6. You need to have layers(like in Photoshop for example) -First the Loginbackground -Second the Notification-Image.
  7. Karuzo

    Help needed

    Put the local in front of Marker1 away. in line 5.
  8. i don't really understand what this should be. could anyone explain that please?
  9. Karuzo

    Info system

    https://wiki.multitheftauto.com/wiki/In ... ng_the_GUI There you have everything you have to know.
  10. Karuzo

    Info system

    I would start with a GUI or a DX Drawn Rectangle.
  11. Here's the link: https://wiki.multitheftauto.com/wiki/Scr ... troduction Haha Citizen, not in that good mood today ? but he's right. This is not the suggestion-section..
  12. Ich würde es im Scripting-Bereich posten, da im Deutsch-Bereich nicht gerade viele unterwegs sind. Zu deiner Frage: Ich glaube nicht.
  13. Yeah but that's the safiest way.
  14. Or if the files were client sided , just use cache="false" so they will be deleted after the ydisconnect.
  15. Do you mean the standard scoreboard ? If so , change dxDrawRectangle to dxDrawImage.
  16. No local lvl = getElementData(player, "level") dxDrawText ( "#FF6400Nivel: ".. tostring(lvl).."\n#000000"..getPlayerNameR(player), sx, sy - offset, sx, sy - offset, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false,false,false,true,false )
  17. As you can see the problem is not with the event. It's with the image. But i just dunno what it could be. A friend of mine, which is a pretty good scripter, has looked at the code and didn't found a problem , so yeah.
  18. Yep @StrangerTV: What should i post ?lol. I just have an dxDrawImage inside of an onClientRender Event. The other things are unnecessary
  19. Thank you, but i got it already
  20. Hey Guys, i get a strange problem when i create an image with dxDrawImage. Heres my line: --the coords are just for testing. dxDrawImage( 0, 0, 200,200, "map.jpg") but what i get is this error: Heres another screenshot of my folder. And heres my meta.xml: --Info--> "KRZO" type="script" name="PRJX Radar" version="1.0" /> --Client--> "map.jpg"/>
  21. Hey Guys, so i wanted to make a progressbar which shows the current health in %. I have the progressbar already. Just dunno how to convert the health in %. Regards, KRZO.
  22. As he said he uses MTA's Compiler.
×
×
  • Create New...