Jump to content

Search the Community

Showing results for tags 'command'.

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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 16 results

  1. Scrolling through the tutorials, I found a script that displays players in the server when joining and quitting. function playerCount ( ) outputChatBox("#ff8800[server]: #ffffffPlayers: #ffffff(" .. getPlayerCount() .. "#ffffff)" , root, 255, 0, 0, true) end addEventHandler ( "onPlayerJoin", getRootElement(), playerCount ) addEventHandler ( "onPlayerQuit", getRootElement(), playerCount ) What would I have to add to trigger it with a command, such as "/players"?
  2. HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the ATM system activated here by writing a text(Command For Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88
  3. [SOLVED] This will certainly be a beginner's subject. The folder [gameplay], located in "Resources", is filled with .rar files. I want to edit 'help.xml', which is inside "freeroam.rar". I tried extracting everything into a new folder called "freeroam", but my server is not detecting said folder. I'm sure I'm ignoring a command somewhere that's failing to locate the folder (might be written to only locate "freeroam.rar"). What can I do to reach the file, modify it, and keep the freeroam files working?
  4. Hey! My (not so original) idea is putting this /rp command into the server (local). I want it to work like this -> If you write your IC action next to /rp in chat (for example: /rp fasten the seat belt) then it gonna appear above the player in this form -> *fasten the seat belt. So basically it would repeat the action text above the player who said it (without the "/rp"). Is it possible to script it? If it is, then can someone help me, Im kindda new in scripting. If its not possible then it would be still cool if the repeated action would appear only in the chatbox. But the best and the
  5. function hirsiz (player) if not isGuestAccount(getPlayerAccount(player)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Hirsiz")) then takeAllWeapons (player ) setPedArmor (player, 0 ) giveWeapon(player,4) giveWeapon(player,22,100) setPedSkin(player, 144 ) setPlayerTeam ( player, Hirsiz ) outputChatBox("#FFFFFF[#00FF00!#FFFFFF] Hırsızlık araçları verildi.", player, 255, 0, 0, true) else outputChatBox("#FFFFFF[#FF0000!#FFFFFF] Bu komutu kullanmak için Hırsız olmanız gerekiyor.", player, 255, 0, 0, true) end end end addCommandHandler("hirsiz",hirsiz)
  6. Hello.... i need help. i starting scripting and i need support whit this script. function giveWeaponsOnPlayerSpawn (TheSpawnpoint, theTeam) giveWeapon (source, 26, 20) -- sawed-off and 20 ammo end addEventHandler ("onPlayerSpawn", getRootElement (), giveWeaponsOnSpawn) META: <meta> <script src="script.lua" type="server"/> <meta> ¿wich is the problem here? thanks
  7. Alguien de casualidad sabe como ponerle neon al hydra? pasa que encontre un script de neon ( https://community.multitheftauto.com/index.php?p=resources&s=details&id=8890 ) y resulta que no se puede poner neon en vehiculos aereos, al entrar al archivo zip, en el bloc llamado server, aparece algo tipo: elseif ( id == 504 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.55, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.55, 0, 0, 90 ) attachElements ( neon1, theVehic
  8. Hi everyone, I am facing a small problem with tables, well I am not sure how to add something to a table by using addCommandHandler. Like, if this is my table local random = { -- x = y ['a'] = 'Two', ['b'] = 'One', ['c'] = 'Ten', } Then how can I add another line to this table by a command (addCommandHandler) For example If the command is "/add Q A" ~~~ ("/add d six") then it should add a new line to the table like -> local random = { ['a'] = 'Two', ['b'] = 'One', ['c'] = 'Ten', ['d'] = 'Six', } On the other h
  9. Buenas, les quería comentar que recientemente he intentado poner un timer sin exito para el drop, lo que yo quiero es que al poner el comando /drop en say, automáticamente se active un timer para que por si el jugador vuelve a tipear el comando deba esperar 5 segundos para volver a hacerlo, de esa manera no me harían un masivo floodeo con el comando, y ademas de eso el comando /drop queda bindeado con la tecla de "backspace" he buscado si en el archivo del teleport estaba la linea del bind pero no la encontré y a la hora de escribir o hacer ciertas cosas con otros resources se vuelve molesto a
  10. Somebody help please! Somebody told me to type in a command so when I typed it in my game froze and it glitched out! So now whenever I join any server, walk or drive forward, it freezes and glitches me out! Please somebody help me with this! I really love this game! And please don't tell me, ''just move backwards or to the sides'', and don't say, ''just punch to move''. Please help though.
  11. Hello guys, I would like to know if there is any command to solve my problem, I put a ped in an interior but it is practically invisible impossible to be seen. Do you have something to solve this?
  12. Hola, soy nuevo, por favor alguien podría explicarme como hago para que salga un mensaje (a todos los jugadores) para un determinado comando? Lo quiero hacer funcionar con este script: Gracias de antemano!
  13. Hello friends, how can I make this button execute the / wp command when preloading it? adminPanel.button[31] = GuiButton(6, 232, 91, 21, "IG:Warp", false, adminPanel.tab[2])
  14. السلام عليكم ورحمة الله وبركاته بسم الله الرحمن الرحيم سآتي لكم بطريقة تشغيل ملفات لوا داخل برنامج النوت باد باختصار لوحة مفاتيح الطريقة لاتعمل على المودات ابدا الطريقة هي عن طريق تشغيل باتش من برمجتي داخل البرنامج عند ضغط اختصار أولا تحميل الباتش rlua.bat قم بتحميل الباتش ولا تنسى ان تحتفظ بمساره ثانيا التأكد ان امر لوا مفعل داخل الكوماند قم بكتابة هذا الامر في الكوماند lua -v اذا ظهرت رسالة هكذا Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio اذا ظهرت رسالة مختلفة قم بتحميل لوا عن طريق الرابط التالي Lua5.1.5.zip ال
  15. Hello everyone. I was testing some commands on Console, and I can use normally this to make the player User#ff00ffname logout from the server. aexec User#ff00ffname logout BUT If I try this below, it doesn't work. aexec User#ff00ffname disconnect or aexec User#ff00ffname quit Can someone explain a way to make it? Or it is not possible anyway?
  16. Hello, I try make a special admin command that sends admin message (/aMSG <message to send>) but I have problems with this. I make it as a part of one .lua script file with rest of chat tags anyway the tags are work fine but when I send the command to the server for example "/aMSG Test" it shows me two WARNING and then one ERROR in console. Console error image This is the script: function onSpecialPlayerChat(amsg, commandName) local aAccount = getAccountName(getPlayerAccount(source)); local aName = getPlayerName(source); local aRoot = getRootElement(); if isObjec
  • Create New...