Search the Community

Showing results for tags 'script'.



More search options

  • 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
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 745 results

  1. Hi! I want to sell my drone system Contains: Model Images VIDEO: Price: 13 USD If you want to buy this script, please PM me or email: hexondev@gmail.com or use this link: BUY HERE Other scripts HERE
  2. Olá, queria saber como eu posso colocar um limite de 1 veículo para o meu marker no script, o script vai ser um trabalho, ele já cria o veículo e teleporta o jogador até ele, mas é possível sair do veículo e criar outro e daí ele não destrói o veículo anterior. Se alguém puder me ajudar, obrigado. Já consegui resolver!
  3. hola, alguien me puede ayudar a hacer un setTimer el cual mate al jugador
  4. function Tared (policePed,hitElement,dim) setPedAnalogControlState(policePed, "accelerate", 1) end addEvent( "Tared", true ) addEventHandler( "Tared", localPlayer, Tared ) ابي البوت يطارد الاعب الي لمس الماركر الي اسمة Marker1 هل ممكن مساعدة؟
  5. 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?
  6. Hello scripters, I need a good help on my paramedic system, so, the paramedic can heal the player by giving /heal (curar) a lot of time, like, the paramedic can flood /heal (curar) a fallen person thus earning a lot of money, how do I fix this bug? Here's the system: ( I'm Brazilian, because of that it has messages in Portuguese. ) addEventHandler("onResourceStart", resourceRoot, function() for i,v in ipairs(getElementsByType('player')) do setElementData(v, "data.playerID", i) end end ) addEventHandler("onPlayerJoin", root, function() for i,v in ipairs(getElementsByType('player')) do setElementData(v, "data.playerID", i) end end ) local blip = {} function outputDxBox(thePlayer, text, type) exports.Scripts_Dxmessages:outputDx(thePlayer, text, type) end function getPlayerFromPartialName ( id ) for i, player in ipairs ( getElementsByType ( "player" ) ) do local id_do_player = getElementData ( player, "ID" ) or false if id_do_player == tonumber(id) then return player end end return false end function setPlayerFallen(player, state) if state == true then toggleAllControls(player, false) toggleControl(player, "chatbox", true) setElementHealth(player, 35) setElementData(player, "playerFallen", true) setElementFrozen(player, true) triggerClientEvent(player, "startDeadTime", player) end if state == false then setElementHealth(player, 35) triggerClientEvent(player, "stopDeadTime", player) toggleAllControls(player, true) setElementData(player, "playerFallen", false) setElementFrozen(player, false) end end function checkData() for i, player in pairs (getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("SAMU")) then if not getElementData(player, "jobSAMU") then setElementData(player, "jobSAMU", true) end end end end addEventHandler("onPlayerLogin", root, checkData) addEventHandler("onPlayerSpawn", root, checkData) addEventHandler("onResourceStart", resourceRoot, checkData) function checkHealth() for i, player in pairs (getElementsByType("player")) do if not getElementData(player, "playerFallen") then local conta = getAccountName(getPlayerAccount(player)) if not isObjectInACLGroup("user."..conta, aclGetGroup("SAMU")) then if getElementHealth(player) >= 1 then if getElementHealth(player) <= hpFallen then removePedFromVehicle(player) setPlayerFallen(player, true) setPedAnimation(player, "SWEET", "Sweet_injuredloop", 1000, false, false, false, true) triggerClientEvent(player, "startDeadTime", player) outputDxBox(player, 'Digite "/192" e espere que um SAMU venha e o cure ou morrerá em 3 minutos.', "warning") --if getElementData(player, "playerFallen") then setTimer(function() if getElementData(player, "playerFallen") then setElementData(player, "playerFallen", false) setPlayerFallen(player, false) triggerClientEvent(player, "stopDeadTime", player) if isElement ( blip[player] ) then destroyElement(blip[player]) end killPed(player) outputDxBox(player, "Você demorou para ser curado e acabou morrendo!", "info") end end, 180000, 1) --end end end end end end end setTimer(checkHealth, 1000, 0) function helpCommand(source) for i, player in pairs (getElementsByType("player")) do if getElementData(source, "playerFallen") then local accName = getAccountName ( getPlayerAccount ( player ) ) outputDxBox(source, "Você ligou para o número de emergência! Aguarde.", "info") if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "SAMU" ) )) then outputChatBox("#00ff00[SAMU] #FFFFFFO jogador "..getPlayerName(source).." #FFFFFFestá pedindo socorro! Procurem o blip de coração.", player, 255, 255, 255, true) outputChatBox("#00ff00[SAMU] #FFFFFFO ID da chamada é: #00ff00("..getElementData(source, "data.playerID")..")", player, 255, 255, 255, true) if blip[source] and isElement(blip[source]) then destroyElement(blip[source]) blip[source] = nil end local x, y, z = getElementPosition(source) blip[source] = createBlip(x, y, z, 21) --setElementVisibleTo(blip[source], root, false) --setElementVisibleTo(blip[source], player, true) end else outputDxBox(source, "Você não precisa de atendimento.", "error") end end end addCommandHandler("192", helpCommand) function onWasted(killer) if getElementData(source, "playerFallen") then setPlayerFallen(source, false) setElementData(source, "playerFallen", false) triggerClientEvent(source, "stopDeadTime", source) if blip[source] and isElement(blip[source]) then destroyElement(blip[source]) blip[source] = nil end end end addEventHandler("onPlayerWasted", root, onWasted) function onQuit() for i, player in pairs (getElementsByType("player")) do if getElementData(player, "playerFallen") then if blip[player] and isElement(blip[player]) then destroyElement(blip[player]) blip[player] = nil end end end end addEventHandler("onPlayerQuit", root, onQuit) function secret() for i, player in pairs (getElementsByType("player")) do setPlayerFallen(player, false) end end addCommandHandler("vzrapollo", secret) function curarPlayer(thePlayer, command, nameP) if nameP then if getPlayerFromPartialName(nameP) then local conta = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup("user."..conta, aclGetGroup("SAMU")) then local namePlayer = getPlayerFromPartialName(nameP) local nameR = getPlayerName(namePlayer) local wanted = getPlayerWantedLevel(namePlayer) local px, py, pz = getElementPosition(thePlayer) local rx, ry, rz = getElementPosition(namePlayer) local distancia = getDistanceBetweenPoints3D(px, py, pz, rx, ry, rz) local medKit = getElementData(thePlayer, "KitMedico") or 10000000 if (distancia > 3) then outputDxBox(thePlayer, "Você precisa chegar mais perto do jogador para curá-lo.", "error") elseif (distancia < 2) then if getElementData(namePlayer, "playerFallen") then setPedAnimation(thePlayer, "BOMBER", "BOM_Plant", 1000, false) if isElement ( blip[namePlayer] ) then destroyElement(blip[namePlayer]) end outputDxBox(thePlayer, "Curando jogador...", "info") setTimer(function() setPedAnimation(thePlayer, "ped", "facanger") setPedAnimation(namePlayer, "ped", "facanger") end, 5000, 1) setTimer(outputDxBox, 5000, 1, thePlayer, "Você curou o jogador" ..nameR.. "e ganhou R$1.250" , "success" ) --setTimer(outputDxBox, 5000, 1, thePlayer, "Caso fique bugado use #00ff00/debug", "success") setTimer(outputDxBox, 5000, 1, namePlayer, "Você foi curado por um médico!", "success") --setTimer(outputDxBox, 5000, 1, namePlayer, "Caso fique bugado use #00ff00/debug!", "success") setTimer(givePlayerMoney, 5000, 1, thePlayer, 1250) setTimer(setPlayerFallen, 5000, 1, namePlayer, false) setTimer(function() setElementData ( thePlayer, "AirNewSCR_LiberarXP", "Sim" ) setPedAnimation ( thePlayer ) setPedAnimation ( namePlayer ) end, 6000, 1) else outputDxBox(thePlayer, "O jogador não precisa ser curado.", "error") end end else outputDxBox(thePlayer, "Permissão negada para teste comando!", "error") end end else outputDxBox(thePlayer, "Erro! O correto é /curar Nome", "error") end end addCommandHandler("curar", curarPlayer)
  7. Hyper-script gaming سكربت خاص لسيرفرات الالعاب للحياة الواقعية يمكننا توفير الاستضافة مجانا من سيرفرات جوجل فقط الدومين عليك يجب الحصول علي ترخيص لتسطيع استخدام السكربت حتي وان كان معك ملفات السكربت سعر الترخيص الواحد 65$ | التقنيات المستخدمة | React.js, Redux, Google Firebase, AJAX, JSON, Bootstrap grid system | المميزات | اي عند تصفح الموقع سأتجد الموقع سريع جدا بالتنقل بين صفحاته المختلفه SPA السكربت يعمل بتقنية تصميم السكربت متجاوب مع كافة الشاشات والمتصفحات المختلفة لوحة تحكم تصل اليها رسائل تقديمات الخادم والتحكم في اغلاق او فتح كل التقدمات. .وبعض التقديمات كا فريق اليوتيوب تصل لرومات تحددها مع السكربت discord webhook السكربت مرتبط بال بعدد الاعبيين واسمائهم وحالة الخادم والمدينة الحالية FiveM, MTA SA امكانية عرض معلومات سيرفرك سواء. تستطيع اعطاء لكل متقدم لفريق خادم السيرفر نتيجة تقديمة من لوحة التحكم وايضا يستطيع المتقدم رؤية نتيجته. امكانية عرض السيارات المميزة داخل الخادم واعطاء سعر وايضا يستطيع الزائر تصفية السيارات من حيث السعر..الخ قسم لدعم الخادم بالمال يمكنك عرض خطط مختلفة للشراء والطلبات تصل اليك لمعالجتها. | بالنسبة للحماية؟ | مهما كانت قوتها ddos attack السكربت يستطيع التصدي لاي هجمات ! client side لا مجال للثغرات في السكربت لانه عبارة عن جاهزة حتي مع لوحة التحكم APis اي انه يعتمد علي كل ما يتقدم له من خلال | معاينة | لوحة التحكم واشياء اخري: معاينة مباشرة للسكربت: https://hyper-sv2.web.app/ للتواصل عبر الديسكورد للشراء: el8rbawY#5102 *ملحوظه: تقديم دعم فني للسكربت مدي الحياة وايضا سهولة التعديل علي السكربت من خلال ملفات JSON
  8. META DO RADINHO <meta> <script src="Edit.Lua" type="shared" cache="false" /> <script src="client.luac" type="client" cache="false" /> <script src="server.luac" type="server" cache="false" /> <script src="arquivos/dxEditBox.Lua" type="client" cache="false" /> <file src="arquivos/radio.txd" cache="false"/> <file src="arquivos/radio.dff" cache="false"/> <file src="arquivos/pipi.mp3" cache="false"/> <file src="arquivos/icons.ttf" cache="false"/> </meta> META DO VOICE: <meta> <!--Client --> <script src="cGlobals.luac" type="client" /> <script src="cDrawIcon.Lua" type="client" /> <script src="cPlayerMuting.luac" type="client" /> <export function="setPlayerVoiceMuted" type="client" /> <export function="isPlayerVoiceMuted" type="client" /> <file src="images/voice.png" /> <file src="images/voice_small.png" /> <file src="images/voice_small_muted.png" /> <!--Server --> <script src="sGlobals.luac" type="server" /> <script src="sDefaultChannelManager.luac" type="server" /> <script src="sChannelManager.luac" type="server" /> <script src="sPlayerMuting.luac" type="server" /> <export function="setPlayerVoiceMuted" type="server" /> <export function="isPlayerVoiceMuted" type="server" /> <export function="getPlayerVoiceMutedByList" type="server" /> <export function="getPlayerChannel" type="server" /> <export function="setPlayerChannel" type="server" /> <export function="getPlayersInChannel" type="server" /> <export function="getNextEmptyChannel" type="server" /> <settings> <setting name="*show_chat_icon" value="[true]" description="This will display an icon over a player's head when he/she is speaking over the microphone."/> <setting name="*autoassign_to_teams" value="[true]" description="This will automatically assign players into a team if they join the team"/> </settings> <!-- Exported functions for backward compatibility only --> <!-- DO NOT USE THESE AS THEY WILL BE REMOVED IN A LITTLE WHILE --> <export function="setPlayerMuted" type="client" /> <export function="isPlayerMuted" type="client" /> <export function="setPlayerMuted" type="server" /> <export function="isPlayerMuted" type="server" /> <export function="getPlayerMutedByList" type="server" /> <!-- DO NOT USE THESE AS THEY WILL BE REMOVED IN A LITTLE WHILE --> </meta>
  9. Estou começando a programar em Lua e no MTA agora, estou fazendo meu primeiro mod e não sei o que está errado. É um mod muito simples, só de ligar e desligar o motor do carro com a letra K e desligar quando entra e sai do veículo. function desligarMotor (source) local veiculo if ( getElementType(source) == "vehicle" ) then veiculo = source end if ( getElementType(source) == "player" ) then veiculo = getElementData ( source, "cl_ownedvehicle" ) end if ( getVehicleEngineState ( veiculo ) == true ) then setVehicleEngineState (veiculo, false) end end function mudarMotor() local veiculo if ( getElementType(source) == "vehicle" ) then veiculo = source end if ( getElementType(source) == "player" ) then veiculo = getElementData ( source, "cl_ownedvehicle" ) end local estado = getVehicleEngineState (veiculo) if estado == false then setVehicleEngineState (veiculo, true) end else setVehicleEngineState (veiculo, false) end end bindKey ( source, "k", "down", mudarMotor ) addEventHandler ( "onPlayerVehicleEnter", getRootElement(), desligarMotor ) addEventHandler ( "onPlayerVehicleExit", getRootElement(), desligarMotor )
  10. Boa Noite, Queria saber que função devo usar para colocar imagens ou mensagem quando o jogador ta fazendo download do servidor.? vio em alguns servidores e queria fazer no meu. so que nao sei qual as função que devo usar. Obrigado
  11. tengo una duda he creado este panel para cambiar de team es decir que yo le cambie el team a un jugador pero cuando le doy "CONTRATAR" me cambia el team a mi que hago? Client function empre() local screenW, screenH = guiGetScreenSize() contrataciones = guiCreateWindow((screenW - 628) / 2, (screenH - 430) / 2, 628, 430, "NOMBRE DE LA EMPRESA", false) guiSetProperty(contrataciones, "CaptionColour", "FF0036FE") jugador = guiCreateGridList(44, 43, 233, 338, false, contrataciones) guiGridListAddColumn(jugador, "Jugadores", 0.9) for _, player in ipairs(getElementsByType("player")) do guiGridListAddRow(jugador, getPlayerName(player)) end contrar = guiCreateButton(368, 107, 176, 43, "CONTRATAR", false, contrataciones) guiSetProperty(contrar, "NormalTextColour", "FF2FFD00") x = guiCreateButton(574, 33, 44, 42, "X", false, contrataciones) guiSetProperty(x, "NormalTextColour", "FFFC0000") despe = guiCreateButton(368, 251, 176, 43, "DESPEDIR", false, contrataciones) guiSetProperty(despe, "NormalTextColour", "FFFC0000") showCursor (true) end addEvent( "onEmpresa", true ) addEventHandler( "onEmpresa", localPlayer, empre ) addEventHandler('onClientGUIClick',root, function() if source == contrar then triggerServerEvent('setEmpresa',localPlayer) guiSetVisible(contrataciones,false) showCursor(false) end end) addEventHandler('onClientGUIClick',root, function() if source == despe then triggerServerEvent('setEmpresaNo',localPlayer) guiSetVisible(contrataciones,false) showCursor(false) end end) addEventHandler('onClientGUIClick',root, function() if source == x then guiSetVisible(contrataciones,false) showCursor(false) end end) Server empresa = createTeam("TEAM", 0, 255, 0) --team addEvent('setEmpresa',true) --contratar, addEventHandler('setEmpresa',root, function() local teamPlayer = getPlayerTeam ( source ) if teamPlayer then setPlayerTeam ( source, nil ) setPlayerTeam ( source, empresa ) else setPlayerTeam ( source, empresa ) end end) addEvent('setEmpresaNo',true) --despedir addEventHandler('setEmpresaNo',root, function() local playerTeam = getPlayerTeam( source ) if ( getTeamName( playerTeam ) == "TEAM" ) then --team setPlayerTeam ( source, nil ) end end) addCommandHandler ("empresa", --Comando, no confundir con teleport function ( playerSource ) account = getPlayerAccount(playerSource) accname = getAccountName(account) if( accname == "Juan_Camilo" ) then -- lo que esta dentro de las comillas es el nombre de la cuenta que tiene permitido usar el comando. triggerClientEvent ( playerSource, "onEmpresa", playerSource) end end )
  12. hola gente, me podrian ayudar con una cosa. Ya he hecho que al pasar por un marker me salga un panel pero debido a un pickup que estado probando pero me toco dejarlo encima del marker para que funcione bien la funcion pero ahora necesito que al pasar la primera vez me aparesca el panel pero al pasar la segunda no aparescan como hago para hacer eso? gracias
  13. Boa Tarde, Qual função devo usar para que um veiculo nao receba dano de batidas estou usando o addEventHandler("onClientVehicleDamage" , Mais ele nao aparece quando eu eu sofro uma batida na parede. Qual função devo usar para essa situação?
  14. Boa noite, preciso de uma ajuda no sistema de backup loos que eu fiz so que fica dando quase direto no servidor. Eu fiz pra freezar o player quando o packet loos fica maior que 15 so que fica dando ate pra player que tem internet boa. Ai preciso saber se o sistema que eu fiz esta correto e o que devo fazer para optimizar ele. packtFails = 0 setTimer(function() if getNetworkStats().packetlossLastSecond > 15 then packtFails = packtFails + 1 if packtFails == 5 then triggerServerEvent("kickPlayerOnHighPacket",getLocalPlayer()) return end hideInventoryManualPing() setElementData(getLocalPlayer(),"detectPacket",true) if isTimer(pingTimer2) then return end pingTimer2 = setTimer(function() packtFails = 0 setElementData(getLocalPlayer(),"detectPacket",false) toggleControl("forwards",true) toggleControl("fire",true) if isTimer(pingTimer2) then killTimer (pingTimer2) end end,10000,1) else packtFails = 0 setElementData(getLocalPlayer(),"detectPacket",false) setElementFrozen(getLocalPlayer(),false) toggleControl("forwards",true) toggleControl("fire",true) end end,3000,0)
  15. Olá a todos estou querendo abrir uma loja de Script no caso de vendas, Tem alguma coisa ilegal sobre isso? Estou com muita duvida sobre isso!
  16. Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Warning: DGS Version Lower than 3.4 is no longer supported. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect (TDX)Lopsided's dxlib Compatibility. 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)
  17. hola, me harian el favor de ayudarme con una funcion que actue para todos los jugadores, es decir lo que estoy tratando de hacer es que al presionar un boton en un panel le quite las armas a todos lo jugadores gracias
  18. Boas, gostaria de saber como posso habilitar o /fly no servidor, o personagem simplesmente voar sem animação alguma, se me puderem ajudar ficarei muito grato 🙂.
  19. Olá, todos queria tirar uma duvida, Qual é a function de dar objetos para o player EX: pegar um lixo ou algo do tipo?
  20. Hola hago este mensaje para ver si alguien me puede ayudar pasandome o vendiendome un resource de creacion de bases para un servidor de DayZ de mta desde ya muchas gracias
  21. Hola abro este foro para ver si alguien me puede ayudar mandandome un pack de jobs o algunos en singular para un servidor RPG de mta ya que en internet no hay muchos que funcionen correctamente no importa el idioma en el que esten ya que yo se traducirlos
  22. Eu queria uma ajuda, estou tentando arrumá-la, mas não estou conseguindo. Roteiro function teste () guarda1 = exports ["slothBot"]:spawnBot (-2427.99, -601.721, 132.563, 60 ,114 , 0 ,0 ,policial ,31 ,"guarding" ,true) end addEventHandler("onResourceStart",getRootElement() ,teste) Meta <meta> <script type = "server" src = "server.Lua" /> </meta>
  23. Olá a todos criei um script de invisibilidade e queria saber se e possível deixar o ID do player invisível juntamente com o player.
  24. Boa Noite, Preciso de uma ajuda para desativar o som dos Ped e personagem do GTA TIPO CJ
  25. O Erro É Na Linha 284, No debugscript 3 aparece como bad argument #1 to 'gsub' (string expected, got boolean) function penz_darabolas(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1 %2') if (k==0) then break end end return formatted end