Jump to content

Search the Community

Showing results for tags 'help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. when a player(pedestrian) hits a marker(checkpoint , corona ...) ,all his weapons will be removed.
  2. Hello, I have a similar functions which activated when the client clicked on the button. Now Im calling they like different functions. addEventHandler("onClientGUIClick", ctrl[1], setCtrl1, false) addEventHandler("onClientGUIClick", ctrl[2], setCtrl2, false) addEventHandler("onClientGUIClick", ctrl[3], setCtrl3, false) I want to call one function when I push the different buttons addEventHandler("onClientGUIClick", ctrl[1], setCtrl, false) addEventHandler("onClientGUIClick", ctrl[2], setCtrl, false) addEventHandler("onClientGUIClick", ctrl[3], setCtrl, false) But also I want to do this with a different actions in function. Unfortunely, I did not found the way how can I check the button which clicked. Im planing to do something like this: -- This just an example function() if ctrl[1] then --do something elseif ctrl[2] then --do anything elseif ctrl[3] then --do this but it actually looks like previous end end addEventHandler("onClientGUIClick", ctrl[1], setCtrl, false) addEventHandler("onClientGUIClick", ctrl[2], setCtrl, false) addEventHandler("onClientGUIClick", ctrl[3], setCtrl, false)
  3. Здравствуйте, недавно появилась задача подключить Google Authenticator на сервер, но я не знаю как создавать токен и получать код по времени, прошу объяснить
  4. So I wanted to ask if someone would explain to me how to make my own shaders, I immediately say that I know there is an MTA page with examples but I don't understand anything of them so I prefer someone to explain it to me and what it is and how to create although the easiest script with shaders
  5. Hello. I am new to creating servers but I just wanted to host a server with my friends, but I don't know what the IP of my server is. When I open console, it just says my server IP is "auto". How do I get the IP of my server?
  6. Any ideas how can I calculate the camera perspective's 4 corners into a flat 2D map? Here's what the camera should see: And here is what should it look like from the outside: I need to calculate the 4 points position
  7. Olá estou com problemas em meu emprego, todo mundo mesmo quem não está atrabalhando neste emprego consegue spawnar o veiculo do trabalho apenas indo até o marker, tentei por uma proteção que faça com quem tem a skin do emprego consiga pegar o carro e o destruir. porém nenhum resultado se conseguirem me ajudar agraçederia muito. local marker = createMarker(2681.17285, -1957.08862, 12.7, "cylinder", 1.0, 0, 0, 255, 255) local Dmarker = createMarker(2679.63989, -1968.49829, 12.5, "cylinder", 3.0, 255, 0, 0, 100) function enterVehicle ( player, seat, jacked ) --quando um jogador entra em um veículo policeLimpador = { [552]=true} --ID Veiculos Policiais policeLimpadorSkins = { [27]=true } --ID Skins Policiais if ( policeLimpador[getElementModel(source)] ) and ( not policeLimpadorSkins[getElementModel(player)] ) then --se o veículo é um dos 4 carros da polícia, ea pele não é uma pele polícia cancelEvent() outputChatBox ( "#ff0000Somente Motoristas podem entrar neste veiculo", player, 255, 255, 255, true ) --and tell the player why end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) --add an event handler for onVehicleStartEnter function Vehicle( thePlayer ) if getElementType(thePlayer) == "player" then local x,y,z = getElementPosition(thePlayer) veh = createVehicle(552, 2687.59, -1970.002, 13.547, -0, 0, 266.348 ) warpPedIntoVehicle(thePlayer, veh) end end addEventHandler("onMarkerHit", marker, enterVehicle) function destroy (hitElement) if getElementType(hitElement) == "Vehicle" then destroyElement(hitElement) end end addEventHandler("onMarkerHit", Dmarker, destroy)
  8. Hello! I have a script but i dont understand what is the problem. heres the code: fadeCamera(true, 0.3) setCameraMatrix(2410.69263, -1657.63013, 40.17338, 2442.47388, -1658.73975, 27.61846) setPlayerHudComponentVisible("all",false) setPlayerHudComponentVisible("crosshair",false) showCursor(true) local screenX,screenY = guiGetScreenSize(); local loginPanelX,loginPanelY; local joinTick; local margin = getResponsiveSize(10) local buttonWidth,buttonHeight = getResponsiveSize(360), getResponsiveSize(60) local strings = { ["loginBtn"] = "Bejelentkezés", ["registerBtn"] = "Regisztráció" } local function getResponsiveSize(size) return(screenX/1920) * size end local windowWidth,windowHeight = getResponsiveSize(400), getResponsiveSize(450) function showLoginPanel() joinTick = getTickCount(); addEventHandler("onClientRender", root, drawLoginPanel) end function drawLoginPanel() loginPanelX,loginPanelY = interpolateBetween(-windowWidth, screenY/2 -windowHeight/9, 5, screenX/1.600 -windowWidth, screenY/1.500 -windowHeight,0, (getTickCount()-joinTick)/1000, "OutBounce" ); dxDrawRectangle(loginPanelX, loginPanelY, windowWidth,windowHeight, tocolor(0,0,0,190)) drawButton(loginPanelX + windowWidth/2 - buttonWidth/2 + margin, loginPanelY + windowHeight - buttonHeight - margin, buttonWidth - margin*2, buttonHeight, strings.loginBtn, tocolor(0,0,0,150), tocolor(255,48,48,160), tocolor(255,255,255,255)) end function drawButton(x,y,w,h,text,backgroundColor,hoverColor,textColor, font, textSize) if (isCursorInPosition(x,y,w,h)) then dxDrawRectangle(x,y,w,h,hoverColor) else dxDrawRectangle(x,y,w,h,textColor, font, textSize) end centerText(text, x,y,w,h,textColor) end function isCursorInPosition(x,y,w,h) local cursorX,cursorY = getCursorPosition(); cursorX,cursorY = cursorX * screenX, cursorY * screenY return(cursorX >= x and cursorX <= x + w) and (cursorX >= y and cursorY <= cursorY + h) end function centerText(text,x,y,w,h,textColor,font,size) dxDrawText(text, x + w/2, y + h/2, x + w/2, y + h/2, textColor,size,font, "center", "center", false,false,false,true) end showLoginPanel(); heres some pictures from debugscript 3: https://imgur.com/a/KgUtNv3
  9. Eu quero pedir ajuda para solucionar um problema, estou tentando modificar o chat nativo desabilitando com um codigo e colocando um mod de chat local e um global para o mapa mas não esta funcionando. Eu queria saber se alguem ja passou por algo assim e se sabe me ajudar
  10. Estou desenvolvendo esse Script do zero , e ele esta me dando erros no "toggleAllControls" e o "setElementFronzen" no "setTimer" no serverSide! Essa é a Linha do script : function fabricarParafal () local money = getPlayerMoney ( source ) if ( money >= 1000) then takePlayerMoney (source, 1000) setElementFrozen (source, true) toggleAllControls (source, false) setPedAnimation (source, "UZI", "UZI_reload", 5000, true, false, false, false) giveWeapon (source, 31, 100, true) outputChatBox ("#708090[ #FF0000 ᴠᴇɴᴅᴇᴅᴏʀ ᴅᴇ ᴀʀᴍᴀs #708090] #FFFFFF ᴠᴏᴄᴇ ᴇsᴛᴀ ғᴀʙʀɪᴄᴀɴᴅᴏ ᴜᴍᴀ #000000 ᴘᴀʀᴀғᴀʟ #FFFFFF !.", source, 255, 255, 255, true) setTimer(function() setElementFrozen(source, false) toggleAllControls (source, true) end, 5000, 1) else outputChatBox ("#708090[ #FF0000 ᴠᴇɴᴅᴇᴅᴏʀ ᴅᴇ ᴀʀᴍᴀs #708090] #FFFFFF ᴠᴏᴄᴇ ɴᴀᴏ ᴛᴇᴍ #000000 ᴅɪɴʜᴇɪʀᴏ #FFFFFF !.", source, 255, 255, 255, true) end end addEvent ("fParafal", true) addEventHandler("fParafal", getRootElement(), fabricarParafal) https://prnt.sc/udbg98 e se eu Corrigir isso colocando o "source" na linha "function fabricarParafal (..source..)" , ele nao funciona a verificaçao do Dinheiro
  11. Some images of my code: https://imgur.com/a/NBGSEQK Console error: https://imgur.com/a/YA6uKIL What is wrong with that code?
  12. Hello i need help with this gamemode i dont know how i can fix this error, thank for ur attention, sorry for my english. [Pterodactyl Daemon] Server marked as STARTING [Pterodactyl Daemon] Checking size of server data directory... [Pterodactyl Daemon] Disk Usage: 321M / 31000M [Pterodactyl Daemon] Ensuring correct ownership of files. [Pterodactyl Daemon] Running server preflight. [Pterodactyl Daemon] Starting server container. steam user is not set. Using anonymous user. No appid set. Starting Server :/home/container$ ./mta-server64 --port ${SERVER_PORT} --httpport ${SERVER_WEBPORT} -n /entrypoint.sh: line 46: ./mta-server64: Permission denied [Pterodactyl Daemon] Server marked as OFF [Pterodactyl Daemon] ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon] Exit Code: 126 [Pterodactyl Daemon] Out of Memory: false [Pterodactyl Daemon] Error Response: [Pterodactyl Daemon] Aborting automatic reboot due to crash within the last 60 seconds.
  13. Hey guys, I would like to know how I can add the name of my server to the scoreboard, besides this, change the colors of the columns and add players to teams when starting a job. I would really appreciate a help. Thanks
  14. Please, I need help When logging into any server This problem occurs I need a solution ASAP, Please respond quickly
  15. Help, I have tried to place a delay for the commands, but it does not help me at all, could you help me? I don't speak English, that's why the code is in another language. Server: function ablanca(source) if isElementWithinMarker(source, cablanca) then if getElementData(source, "slicencia") == true then if getPlayerMoney(source) >= 2000 then takePlayerMoney(source, 2000) giveWeapon(source, 4, 1, true) outputChatBox("Has comprado un #EE850Ecuchillo #FFFFFFpor $2000.", source, 255, 255, 255, true) else outputChatBox("No tienes dinero suficiente", source, 255, 255, 255, true) end end end end addCommandHandler("ablanca", ablanca)
  16. Hi, I hope someone can help me with this question, I would like to display the latest server logs on a website using PHPSDK but I have a question on how to do it efficiently as it will update in real time. any ideas?
  17. BOA NOITE, TO TENDO PROBLEMA COM 2 JOGADORES QUE FOI BANIDO 3 VEZES NO SERVIDOR E AINDA VEM ME AMEAÇANDO A BUGAR O SERVIDOR E MESMO BANIDO ELES CONSEGUE VOLTAR A JOGAR. EU FAÇO BANIMENTO VIA SERIAL E ELES CONSEGUE AINDA ENTRAR NO SERVIDOR DPS. MUDANDO SERIAL NAO SEI COMO
  18. local vehicle; function makeVeh(player, cmd, vehID) if (vehID) then else outputChatBox("#FFFFFF[#FF4F4fHiba#FFFFFF] Használat : /makeveh [Modell ID]", player, 255, 0, 0, true ); end end addCommandHandler("makeveh", makeVeh) Worthless Cynomys youtube videói alapján el kezdtem scriptelni, már sikerült egy alap hud-ot írnom 0-ról, de valamiért itt elakadtam. A problémám kifejtve : Ha az outputChatBox végére odarakom a true-t (Ugye hogy színkódolt-e) akkor nem írja ki az üzenetet, és próbáltam úgy is, hogy kitörlöm a 255, 0, 0,-t a scriptből, de úgy sem. Valaki erre egy megoldást? (Worthless-nél a szövegen és a színkódon kívül ugyan így volt írva, és nála működött.)
  19. Hello, I had a small question about the possibility to have my server in the top 20. There is a option to pay 12 dollar to promote your server, however, when i want to do it, it sais there is a waiting list and my server is on nr 942. Is this still active or is this function something from the past? Gr. Hazy.
  20. Hi guys so I'm new to the community and as well as coding, but I'm learning it by myself right now. So I watched this video from this guy and I followed everything in the video. He gave a little assignment at the end of an episode 2 video before, to set "vehicle rotation". I did everything and tried to run my server, I was getting a warning and error. By the way there's a github link in the video to see his "commits" and stuff. Here's the screenshot Regarding to the screenshot of me launching the server, I've done some research about the meaning those words in the warning & the error, Vector3 means for 3d games, about directions and stuff (X, Y, Z) and for boolean it means "True or False" but I'm not sure what they have to do with it. if anyone knows what I'm doing here is wrong please let me know it would be much of appreciation.
  21. I have a VPS with a Debian "buster", but I am having problems starting the server. I looked for possible solutions to my problem, but nothing solved it. libncurses5 is installed, I tried an i386 architecture thinking that this would be the problem, but nothing .... Some topics ask to look for the file inside /usr/lib/, but it is in /usr/lib/x86_x64-linux-gnu How can I solve this problem and turn on the server?
  22. I have this code (client-side) which gets the nearest element but the problem was something I don't want. I mean the element it gets is not the nearest but the second nearest element. Example: Me (localPlayer) Player 1 (v) Player 2 (v) the camera target will be element Player 2 not element player 1 which what I want. function exampleCode() for ik, v in ipairs (getElementsByType("player")) do if v ~= localPlayer then x, y, z = getElementPosition(localPlayer) xv, yv, zv = getElementPosition(v) distance = getDistanceBetweenPoints3D(x, y, z, xv, yv, zv) if distance < 10 then setCameraTarget(xv, yv, zv) end end end end
  23. Hello, how are you ?, Today I had a problem with the MTA the issue is that when I try to change the resolution of the screen, when you put a resolution and you can accept I ask you for the mta to restart the game (the game closes and opens again ) when opening the game it is still the same with the same resolution that I did not want (it did not have any change). (PS: this also when I change the controls of any key and close the game and reopen it continues with the default controls)
  24. Hello, I have a question, I hope someone can help me, since I did not find any information, or maybe you can give me a workaround, I would like to know if mtaserver supports rcon remote connection to send commands externally. -I am developing a "Web Console" so I need to know this, so far I have done some testing using phpsdk, but you need to have a lua script on the server running for it to work.
  25. Boa noite, Alguem pode me ajudar, eu mudei meu sistema de backup para .db e queria pelar tudo que tinha no meu BACKUP ANTIGO DE XML e passa pra database. Existe como? Como faço?
×
×
  • Create New...