Jump to content

Search the Community

Showing results for tags 'script'.

  • 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. How can i add more than one ACL on this code if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Polis")) then
  2. Hi people! me again Guy I'm completley new to it, so I know nothing about scripting. But I need a simple resource, a simple script which by using a command, ex(/veh421) a particular player will be able to spawn a particular vehicle that won't be in the F1 menu list; It is supposed to be a private vehicle but not only the player will be able to drive it. I just need that this player is the only one who can spawn it. I found a resource online but it allowes only the ones in the ACL group to get in the car, But that's not what I need. In resume, I need a resource that allows a particular player to spawn a particular vehicle, and this vehicle can be used by other players. Thank you very much buys.
  3. (I'm Brazilian and I use google translate) Hello, I made a script that I searched a lot on the internet and did not find it, so I decided to do it myself. It is simple, when climbing on any bike is generated a helmet on the player's head, works with any skin. You can remove the helmet by typing /removecapa or descending from the motorcycle. NOTE: For the script to work you must have the resource "bone_attach".
  4. Whenever I go to do a dx panel this error appears ... What can I do to correct? "ERROR: Server triggered clientside event "eventoabrir", but event is not added clientside" -------------------CLIENT-------------------------- function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Pdx) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Pdx) painel = false end end addEvent("abrir", true) addEventHandler("abrir", root , abrir) ------------------SERVER-------------------------- local abrir = "painel" function showPanellr(thePlayer) triggerClientEvent(root, "abrir", thePlayer) end addEventHandler("onMarkerHit", mrkInicio, showPanellr)
  5. I want play songs from youtube, but i don't know how to use a converter to this.. Anyone can send me a WORKING link like this: http://www.convertmp3.io/fetch/?video=..ytlink..? Sorry for my bad english...
  6. Hi, I've been sharing on my site for 4 years. Download source Start and launch the server. I do not speak English, I can not explain it in detail. You visit and write your views. Thanks.. Click to wiev >> www.Mtasan1.com
  7. Hola, estoy buscando la persona capasitada para hacer miras, distintos zoom por cada mira, que la bala del arma llege, y si saben tambien poder lograr un recolit como se ve en el video. Igualmente me sirve el zoom, la forma de disparo. pago, me pueden contactar por MP. o busquen ''Preper'' en Facebook.
  8. I need help from you guys, I'm doing a script to drop moneyfrom pedestrians, but I can't. --[[ Triggers whenever a ped is killed ]]-- function killedPed(totalAmmo, killer, killerWeapon, bodypart, stealth, npc) -- Get profitability multiplier local probability_of_richness = math.random(1,1000) if probability_of_richness < 900 then probability_of_richness = 1 elseif probability_of_richness < 975 then probability_of_richness = 3 elseif probability_of_richness < 999 then probability_of_richness = 10 else probability_of_richness = 100 end -- Create a money pickup at the position of the dead bot local x,y,z = getElementPosition(source) npc[killer] = math.random(1,40)*probability_of_richness -- Max profit: $4´000 -- Make the pickup and make sure it's removed after 2 minutes if not picked up local pickup = createPickup(x, y, z, 3, 1212, 120000, npc[killer]) if pickup then setTimer(destroyMinutePickup, 120*1000, 1, pickup) addEventHandler("onPickupHit", pickup, givePickupMoney) end end addEventHandler("onPedWasted", root, killedPed) --[[ Destroy the pickup after given time ]]-- function destroyMinutePickup(pickup) if isElement(pickup) then removeEventHandler("onPickupHit", pickup, givePickupMoney) destroyElement(pickup) end end --[[ Make the robber wanted on money pickup ]]-- function givePickupMoney(plr) if not npc[plr] then npc[plr] = math.random(1,50) end removeEventHandler("onPickupHit", source, givePickupMoney) destroyElement(source) givePlayerMoney(plr, npc[plr]) -- Get wanted for stealing money setWl(source, round(wanted_level, 2), 10, "Você cometeu o crime de roubo") end
  9. Hola bueno quería pedirles si me pueden ayudar con este script que ise lo que pasa es que ya funciona todos los botones y eso pero al momento de logearme me sale que esta mal la contraseña o no existe y al momento de registrarme me sale que ya existe queria saber si me ayudan a repararlo no se si es un problema de algun evento grid o algo por favor llevo todo el dia intentando y no me sale que podra ser el error cliente: GUIEditor = { button = {}, window = {}, edit = {}, staticimage = {}, label = {} } zero = "" two = "" GUIEditor.window[1] = guiCreateWindow(0.38, 0.31, 0.22, 0.32, "Login", true) guiWindowSetSizable(GUIEditor.window[1], false) showCursor(true) logon = guiCreateButton(0.03, 0.82, 0.46, 0.15, "Login", true, GUIEditor.window[1]) guiSetFont(logon, "default-bold-small") GUIEditor.button[2] = guiCreateButton(0.52, 0.82, 0.46, 0.15, "Registro", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") GUIEditor.staticimage[1] = guiCreateStaticImage(0.02, 0.06, 0.96, 0.26, ":guieditor/images/plus.png", true, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(0.41, 0.34, 0.20, 0.08, "Usuario", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(0.41, 0.55, 0.20, 0.08, "contraseña", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.edit[1] = guiCreateEdit(0.28, 0.42, 0.47, 0.11, "", true, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(0.28, 0.65, 0.47, 0.10, "", true, GUIEditor.window[1]) guiEditSetMasked ( password, true ) usuario = guiGetText ( GUIEditor.edit[1] ) guiGetText ( GUIEditor.edit[2] ) function onregister ( ) triggerServerEvent("rg",getLocalPlayer(),usuario,contra) end addEventHandler ( "onClientGUIClick", GUIEditor.button[2], onregister) function onlogin ( ) triggerServerEvent("lg",getLocalPlayer(),usuario,contra) end addEventHandler ( "onClientGUIClick", logon, onlogin) function ocu ( ) guiSetVisible( GUIEditor.window[1], false ) showCursor(false) end addEvent ( "ocultar", true ) addEventHandler ( "ocultar", getLocalPlayer(), ocu) button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "OK", true ) --Create an edit box and define it as "editBox". editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this --setup our function to output the message to the chatbox function outputEditBox () local text = guiGetText ( editBox )--get the text from the edit box outputChatBox ( contra ) --output that text end addEventHandler ( "onClientGUIClick", button, outputEditBox ) y servidor function rg(usuario,contra) if (addAccount(usuario,contra)) then triggerClientEvent(source,"ocultar",source) logIn (source,getAccount(usuario,contra),contra) else outputChatBox("la cuenta ya existe") end end addEvent("rg",true) addEventHandler("rg",getRootElement(), rg) function lg(usuario,contra) cuenta = getAccount(usuario,contra) if (cuenta) then triggerClientEvent(source,"ocultar",source) logIn (source,getAccount(usuario,contra),contra) outputChatBox("te logeaste correctamente") setCameraTarget(source) else outputChatBox("la cuenta no existe o la contraseña esta mal") end end addEvent("lg",true) addEventHandler("lg",getRootElement(), lg) addEventHandler ( "onPlayerJoin", getRootElement(),function () triggerClientEvent(source,"abrir",source) end) function setCameraOnPlayerJoin() -- slowly fade the camera in to make the screen visible fadeCamera(source, true, 5) -- set the player's camera to a fixed position, looking at a fixed point setCameraMatrix(source, -1568, 540, 80, -400000, 10000000, 99.881813049316) end addEventHandler("onPlayerJoin", root, setCameraOnPlayerJoin) addEventHandler ( "onResourceStart", getRootElement(), setCameraOnPlayerJoin )
  10. i looking for a race gamemode, which have a animation while the countdown run, when 3 then set the camera target before the local player car, when 2 then set the camera target another position... where can i download thi gamemode? or how to make this? sorry for my very-very bad english :c
  11. Xerodus

    ATM robbery

    Hi all! I need a ATM robbery script. like this: Thanks Guys!
  12. where is located tuning panel/tuning menu in resources??? pleasee help i have owl gamemode
  13. Where can i download a good inventory script for rp server?
  14. anybody can give me a resource for Random messages on chat please????
  15. Hello! i triyin create a new script but u have some problems... the purpose of the script is get maximun stats of all weapons a every players in the spawn. I look the wiki but dont it doesnt help... Thanks
  16. Всем привет, ребят подскажите как сделать на своём сервере в mta чтобы человек от куда выходил на том же месте и появлялся когда заходил и ещё как сделать чтобы когда человек например покупает скин после выхода и входа скин у него оставался, заранее огромное спасибо
  17. 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=14387 ) 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, theVehicle or source, 0.95, 0, -0.55) attachElements ( neon, theVehicle or source, -0.95, 0, -0.55 ) busque la id del hydra, o bien, vehiculos aereos en general, pues he visto varios servers en los que vehiculos aereos pueden tener neon(un ejemplo puede ser el Proyecto SX) alguien tiene todos esos comandos para vehiculos aéreos?xd
  18. Good night, good morning, or good afternoon! I am a beginner on the moon, I would like to know how to use string.find, or some other method, to start a mod that has a particular tag. In my case, I put the tag "[VZR]" in my mods. Thank you.
  19. I'm sell this unique soft. This program is for encryption, designed to protect your models on the server. This program excludes artifacts and memory overflow when using RAW-LOADING. * Benefits: 1. Minimally increases the weight of the file. 2. Everything works very quickly. 3. Great reliability. 4. Free updates. 5. A large number of settings. 6. Free help. 7. The password to the files, personally yours and not transmitted anywhere. Price: 12$ [FOREVER] Soon I will make a video on the use of the program.
  20. <catalog type="vehicle"> <group name="Latające"> <group name="Helikoptery"> <vehicle id="548" name="Cargobob" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="417" name="Leviathan" /> <vehicle id="487" name="Maverick" /> <vehicle id="488" name="News Chopper" /> <vehicle id="497" name="Policyjny Maverick" /> <vehicle id="563" name="Raindance" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="469" name="Sparrow" /> </group> <group name="Samoloty"> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="511" name="Beagle" /> <vehicle id="512" name="Cropduster" /> <vehicle id="593" name="Dodo" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="553" name="Nevada" /> <vehicle id="476" name="Rustler" /> <vehicle id="519" name="Shamal" /> <vehicle id="460" name="Skimmer" /> <vehicle id="513" name="Stuntplane" /> </group> </group> <group name="Jednoślady"> <group name="Motory"> <vehicle id="581" name="BF-400" /> <vehicle id="462" name="Faggio" /> <vehicle id="521" name="FCR-900" /> <vehicle id="463" name="Freeway" /> <vehicle id="523" name="HPV1000" /> <vehicle id="522" name="NRG-500" /> <vehicle id="461" name="PCJ-600" /> <vehicle id="448" name="Pizza Boy" /> <vehicle id="468" name="Sanchez" /> <vehicle id="586" name="Wayfarer" /> <vehicle id="471" name="Quadbike" /> </group> <group name="Rowery"> <vehicle id="509" name="Miejski" /> <vehicle id="481" name="BMX" /> <vehicle id="510" name="Górski" /> </group> </group> <group name="Łodzie"> <vehicle id="472" name="Łódź Straży" /> <vehicle id="473" name="Dinghy" /> <vehicle id="493" name="Jetmax" /> <vehicle id="595" name="Łódź Wojskowa" /> <vehicle id="484" name="Jacht 2" /> <vehicle id="430" name="Łódź Policyjna" /> <vehicle id="453" name="Reefer" /> <vehicle id="452" name="Speeder" /> <vehicle id="446" name="Squalo" /> <vehicle id="454" name="Jacht 1" /> </group> <group name="Samochody"> <group name="Sportowe"> <vehicle id="602" name="Alpha" /> <vehicle id="429" name="Banshee" /> <vehicle id="402" name="Buffalo" /> <vehicle id="541" name="Bullet" /> <vehicle id="415" name="Cheetah" /> <vehicle id="480" name="Comet" /> <vehicle id="562" name="Elegy" /> <vehicle id="587" name="Euros" /> <vehicle id="565" name="Flash" /> <vehicle id="411" name="Infernus" /> <vehicle id="559" name="Jester" /> <vehicle id="603" name="Phoenix" /> <vehicle id="560" name="Sultan" /> <vehicle id="506" name="Super GT" /> <vehicle id="451" name="Turismo" /> <vehicle id="558" name="Uranus" /> <vehicle id="555" name="Windsor" /> <vehicle id="477" name="ZR-350" /> </group> <group name="Lowridery"> <vehicle id="536" name="Blade" /> <vehicle id="575" name="Broadway" /> <vehicle id="518" name="Buccaneer" /> <vehicle id="419" name="Esperanto" /> <vehicle id="534" name="Remington" /> <vehicle id="567" name="Savanna" /> <vehicle id="535" name="Slamvan" /> <vehicle id="576" name="Tornado" /> <vehicle id="412" name="Voodoo" /> </group> <group name="2-Drzwi"> <vehicle id="496" name="Blista Compact" /> <vehicle id="401" name="Bravura" /> <vehicle id="527" name="Cadrona" /> <vehicle id="542" name="Clover" /> <vehicle id="533" name="Feltzer" /> <vehicle id="526" name="Fortune" /> <vehicle id="474" name="Hermes" /> <vehicle id="545" name="Hustler" /> <vehicle id="517" name="Majestic" /> <vehicle id="410" name="Manana" /> <vehicle id="436" name="Previon" /> <vehicle id="475" name="Sabre" /> <vehicle id="439" name="Stallion" /> <vehicle id="549" name="Tampa" /> <vehicle id="491" name="Virgo" /> </group> <group name="4-Drzwi"> <vehicle id="445" name="Admiral" /> <vehicle id="438" name="Cabbie" /> <vehicle id="507" name="Elegant" /> <vehicle id="585" name="Emperor" /> <vehicle id="466" name="Glendale" /> <vehicle id="492" name="Greenwood" /> <vehicle id="546" name="Intruder" /> <vehicle id="551" name="Merit" /> <vehicle id="516" name="Nebula" /> <vehicle id="467" name="Oceanic" /> <vehicle id="426" name="Premier" /> <vehicle id="547" name="Primo" /> <vehicle id="405" name="Sentinel" /> <vehicle id="580" name="Stafford" /> <vehicle id="409" name="Stretch" /> <vehicle id="550" name="Sunrise" /> <vehicle id="566" name="Tahoma" /> <vehicle id="420" name="Taxi" /> <vehicle id="540" name="Vincent" /> <vehicle id="421" name="Washington" /> <vehicle id="529" name="Willard" /> </group> </group> <group name="Służbowe"> <vehicle id="416" name="Ambulans" /> <vehicle id="433" name="Barracks" /> <vehicle id="427" name="Ciężarówka SWAT" /> <vehicle id="490" name="FBI" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="407" name="Straż Pożarna" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="596" name="Policja (LS)" /> <vehicle id="598" name="Policja (LV)" /> <vehicle id="597" name="Policja (SF)" /> <vehicle id="599" name="Jeep Policyjny" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> </group> <group name="Ciężkie"> <group name="=Służbowe"> <vehicle id="524" name="Ciężarówka z Cementem" /> <vehicle id="578" name="Ciężarówka 1" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="455" name="Ciężarówka 2" /> <vehicle id="530" name="Wózek Widłowy" /> <vehicle id="403" name="Ciężarówka 3" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="515" name="Duża Ciężarówka" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="514" name="Ciężarówka 4" /> <vehicle id="525" name="Holownik" /> <vehicle id="408" name="Śmieciarka" /> <vehicle id="1" name="='Zablokowane" /> </group> <group name="Przyczepy"> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="537" name="Pociąg" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="584" name='Przyczepa 1" /> <vehicle id="1" name="Zablokowane" /> <vehicle id="435" name="Przyczepa 2" /> <vehicle id="450" name="Przyczepa 3" /> <vehicle id="591" name="Przyczepa 4" /> </group> <group name="Ciężarówki"> <vehicle id="499" name="Benson" /> <vehicle id="609" name="Black Boxville" /> <vehicle id="422" name="Bobcat" /> <vehicle id="498" name="Boxville" /> <vehicle id="414" name="Mule" /> <vehicle id="600" name="Picador" /> <vehicle id="543" name="Sadler" /> <vehicle id="428" name="Securicar" /> <vehicle id="478" name="Walton" /> <vehicle id="456" name="Yankee" />żż <vehicle id="554" name="Yosemite" /> </group> <group name="Vany"> <vehicle id="1" name="Zablokowane" /> <vehicle id="482" name="Burrito" /> <vehicle id="483" name="Camper" /> <vehicle id="508" name="Journey" /> <vehicle id="418" name="Moonbeam" /> <vehicle id="582" name="News van" /> <vehicle id="413" name="Pony" /> <vehicle id="440" name="Rumpo" /> </group> <group name="Jeepy"> <vehicle id="589" name="Club" /> <vehicle id="579" name="Huntley" /> <vehicle id="400" name="Landstalker" /> <vehicle id="500" name="Mesa" /> <vehicle id="470" name="Patriot" /> <vehicle id="404" name="Perennial" /> <vehicle id="489" name="Rancher" /> <vehicle id="479" name="Regina" /> <vehicle id="442" name="Romero" /> <vehicle id="495" name="Sandking" /> <vehicle id="458" name="Solair" /> <vehicle id="561" name="Stratum" /> </group> </catalog>
  21. Pessoal, me tirem uma dúvida... Tenho um emprego e queria incluir dentro desse emprego uma função... Por exemplo: /marcar PlayerName (e aí essa função colocaria um blip nele no mapa, e /desmarcar PlayerName para remover. Como posso fazer isso?
  22. Firstly Hello guys Im not bad at scripting, but that job did not get how to handle so I was working on bus job and failed can someone teach and Show me how to do that ? I really need you guys.
  23. Firstly Hello guys Im not bad at scripting, but that job did not get how to handle so I was working on bus job and failed can someone teach and Show me how to do that ? I really need you guys.
  24. WiBox

    Blips

    Hey I want a code that allowed me to disable blips from the mini-map, I searched at https://wiki.multitheftauto.com but I couldn't find the way I want to remove a specific blip, I want at the dimension 2 that using a command I remove the players blips from mini-map. I appreciate that if someone can tell me the commands needed for I make that thing and thanks.
  25. Why is this script broken ? function impoundVehicle(thePlayer, commandName) if tonumber(getElementData(thePlayer, "acc:admin") or 0) >= 8 or exports.exg_dashboard:isPlayerInFaction(thePlayer, 7) then if getElementData(thePlayer, "loggedin") then for k, v in ipairs(getElementsByType("vehicle")) do local x, y, z = getElementPosition(thePlayer) local tx, ty, tz = getElementPosition(v) local int, dim = getElementInterior(thePlayer), getElementDimension(thePlayer) local tint, tdim = getElementInterior(v), getElementDimension(v) local distance = getDistanceBetweenPoints3D(x, y, z, tx, ty, tz) if distance <= 3 and int == tint and dim == tdim then local veh = v local ownerID = getElementData(veh, "veh:owner") or 0 local ownerName = getElementData(veh, "veh:oname") or "" local vehName = exports.exg_carshop:getVehicleRealName(getElementModel(veh)) local plate = getVehiclePlateText(veh) local vehID = getElementData(veh, "veh:id") setElementDimension(veh, 10000+ownerID) setElementData(veh, "veh:impounded", 1) dbExec(con, "UPDATE vehicle SET lefoglalva='1' WHERE id='" .. vehID .. "'") for key, value in ipairs(getElementsByType("player")) do if getElementData(value, "loggedin") and getElementData(value, "acc:id") == ownerID then outputChatBox(" ", value) --outputChatBox("#0094ffLos Santos Police Department:#ffffff Egy járművét szabálytalan parkolás miatt lefoglaltuk. További információkért fáradjon be a postára, és vegye át a hivatalos értesítőt.", value, 255, 255, 255, true) --outputChatBox("#0094ffTípus: #ffffff"..vehName .. "", value, 255, 255, 255, true) --outputChatBox("#0094ffRendszám: #ffffff"..plate .. "", value, 255, 255, 255, true) outputChatBox("================ #0094ffLos Santos Police Department értesítés#ffffff ================", value, 255, 255, 255, true) outputChatBox("#ffffffEgy járművét lefoglaltuk. Amennyiben szeretné kiváltani, forduljon a rendőrséghez.", value, 255, 255, 255, true) outputChatBox(" ", value) sendGroupMessage(7, getPlayerName(thePlayer) .. " lefoglalt egy járművet.") sendGroupMessage(7, "Rendszám: " .. plate .. " | Típus: " .. vehName .. "") sendGroupMessage(7, "Tulajdonosként nyílvántartott: " .. ownerName .. "") exports.mta_admin:outputAdminMessage("#7cc576" .. getPlayerName(thePlayer):gsub("_"," ") .. "#ffffff lefoglalt egy járművet. (" .. plate .. " | " .. vehID .. ")") end end end end end end end addCommandHandler("lefoglal", impoundVehicle) It works. But the cars dimension doesent change
×
×
  • Create New...