Search the Community

Showing results for tags 'client-side'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 3 results

  1. Olá, gostaria de compartilhar aqui a minha dúvida - em um código produzido por mim, me deparei com a seguinte situação: Ao usar setCameraMatrix e alguns instantes depois retornar a câmera ao localPlayer, o player é levado ao "limbo" retornando após a uma posição um pouco distante de onde ele se encontrava. Tentei de diversas maneiras resolver, porém falhei miseravelmente. function closePainel(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedWorld) if painelDirectX == true then if button == "left" and state == "down" then if not isCursorOnElement(screenW * 0.2813, screenH * 0.1500, screenW * 0.4375, screenH * 0.7000) then DeltaA() elseif isCursorOnElement(screenW * 0.2891, screenH * 0.2083, screenW * 0.1172, screenH * 0.4917) then local idSkin = getElementModel(selectedP) local pedSkin = createPed(idSkin, 1224.888, -1632.233, 27.375, 180) DeltaA() showChat(false) local x, y, z = getElementPosition(localPlayer) local rx, ry, rz = getElementRotation(localPlayer) setCameraMatrix(1224.888, -1636.233, 27.375, 1250, 0, 0) setTimer(function() setCameraTarget(localPlayer) setTimer(function() setElementPosition(localPlayer, x, y, z + 1) setElementRotation(localPlayer, rx, ry, rz) end, 1, 1) setElementFrozen(localPlayer, false) destroyElement(pedSkin) pedSkin = nil DeltaA() end, 5000, 1) end end end end addEventHandler("onClientClick", root, closePainel)
  2. I was bored and long time without do any script so I started looking in the wiki some functions what I not used yet and I found dxDrawMaterialLine3D. You have a video and code about a scoreboard what I made for test this function. Maybe this can be useful for you ( take scrollbar, etc ). Client-Side code:
  3. Estaba aburrido y llevaba bastante tiempo sin scriptear así que me puse a buscar por la wiki funciones que nunca usé y encontré dxDrawMaterialLine3D. Aquí os dejo un vídeo y el código de un scoreboard simple que he hecho para probar la función, por si os es útil el tema del scroll y lo que podáis encontrar. Código Client-Side: