Jump to content

undefined

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by undefined

  1. Hi. Im work on Multi Game Mode [Freeroam - Race - War - Tourney]. But i need help, really.. I'll use startResource to start race maps. But if i'll use it, the map will start for everyone. But i want to start for only race players. How can i do it? Thx
  2. So, MTA:lua BBCode only for wiki.multitheftauto.com. ( @MTA:Devs Have you plan to share it?
  3. markercords = { {1944.58691, -1778.72266, 12.39060}, {1944.33765, -1773.98657, 12.39060}, {1944.48840, -1771.07495, 12.39060}, {1944.29260, -1767.30762, 12.38281}, } addEventHandler("onResourceStart",resourceRoot, function() for i, pos in ipairs(markercords) do local x,y,z = unpack(pos) local marker = createMarker(x,y,z,"cylinder",2,255,255,0,50) addEventHandler("onMarkerHit", marker, markerHit) end end) function markerHit(thePlayer) if getElementType(thePlayer) ~= "player" then return end if isElementWithinMarker(thePlayer,source) then if isPedInVehicle(thePlayer) then triggerClientEvent(thePlayer,"showthedxGui",root) end end end
  4. Hi everyone. I have forum about MTA. I want to add [xml][/xml] code for my forum. Is it permitted? If yes, can you give me information about it? If my topic is on false section, please move this. Thx
  5. Mine and yours code aren't wrong. My code is only short and useful.
  6. markercords = { {1945.20874, -1778.62756, 13.39060}, {1944.33765, -1773.98657, 13.39060}, {1944.09851, -1771.35437, 13.39060}, {1944.29260, -1767.30762, 13.38281}, } addEventHandler("onResourceStart",resourceRoot, function() for i, pos in ipairs(markercords) do local x,y,z = unpack(pos) createMarker(x,y,z,"cylinder",2,255,255,0,100) end end)
  7. undefined

    Split Dx

    Thank you Solved!
  8. undefined

    Split Dx

    I already know these code but i use these code with my code, dx text is not seeing eg local scrX, scrY = guiGetScreenSize() local rtarget = dxCreateRenderTarget(...) addEventHandler("onClientRender", root, function() dxSetRenderTarget(rtarget) dxDrawText("TEST TEXT - 1", 0, -25, scrX, scrY, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", true, false, false, true, false) dxDrawText("TEST TEXT - 2", 0, 25, scrX, scrY, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", true, false, false, true, false) dxSetRenderTarget() end) Dx elements isn't seeing.
  9. undefined

    Split Dx

    You do not listen to me I want to make it with not using dxDrawText arguements. I want to make it with dxSetRenderTarget. This function cut dx elements.
  10. undefined

    Split Dx

    Because i use approximate 100 dx text. How can i make with dxSetRenderTarget? When i use dxSetRenderTarget with this code, text is not drawing and not give error or warn
  11. undefined

    Split Dx

    This image and code are only example. I want to cut my other text with function (not dxDrawText arguements). Because dxDrawText clip arguement is work bad in my script .
  12. undefined

    Split Dx

    How can i split dx element? local scrX, scrY = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawText("TEST TEXT - 1", 0, -25, scrX, scrY, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", true, false, false, true, false) dxDrawText("TEST TEXT - 2", 0, 25, scrX, scrY, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", true, false, false, true, false) end) Im try with dxSetRenderTarget but i can't. I want to make it. (I make it on ps)
  13. year = getRealTime().year year ==> return 115 What is this, why it is return 115.
  14. undefined

    Emailer

    I already knew it but I am curious it
  15. undefined

    Emailer

    Yes, so strange. You can download it from link. It is up.
  16. undefined

    Emailer

    https://community.multitheftauto.com/index.php?p=resources&s=details&id=11231 Im use this resource for send email. When I sent email, it is giving warning. But the email is sending. Why??? function sendCustomMail(subject, header, sendto, mail) local header = "From: "..subject.." <"..(header or fromRandom())..">" callRemote("mylink/mailer.php", returns, subject, header, sendto, mail) -- This website is not available any more so add the PHP files in your own website and put URL here. end addEvent("sendEMail", true) addEventHandler("sendEMail", root, sendCustomMail) function returns(msg, num) if msg == "ERROR" or (not msg) then outputDebugString("E-Mail not sent due to webpage errors, check the script and/or page provided.", 2) else outputDebugString(msg, num or 3) end end I don't change anything.
  17. It is enough for now, thanks I'll try it. Edit: It's work. Thanks
  18. I will send e-mail with user's name and password to player's e-mail. But if the player write false email adress, how can i prevent it? Can I know it, so, real e-mail?
  19. If i use setCameraMatrix, the camera will not shaking. -,- My goal is remove black stain...
  20. But if i do it, the explosion will seems.
×
×
  • Create New...