Search the Community

Showing results for tags 'resources'.



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
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • 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 27 results

  1. Está iniciando seu servidor ou começando scripting no MTA? Aqui será listado tudo o que você precisa para aprender desde configurar seu servidor, ACL, colocar resources, até aprender Lua no MTA e criar scripts para modificar o jogo por meio da programação. Se você é totalmente leigo no assunto você também verá links que irá te introduzir no nível básico da programação, basta ter o mínimo de esforço e acompanhar os tutoriais aqui mostrados. Se você já têm uma noção de programação, encontrará tutoriais que irão te ajudar a se aprofundar na programação Lua e ter uma boa experiência de Scripting no MTA. Informações relacionadas ao MTA Se você busca configurar corretamente o seu Servidor e entender como as coisas funcionam, estes links serão de grande ajuda: Links traduzidos para português Manual do Servidor ACL - Arquivo de controle de acesso Resources (ou Recursos) - O que são? O arquivo meta.xml Quer editar e programar scripts? Acompanhe este links: Nota: Se você é um iniciante na programação veja também os tutoriais para iniciantes Introdução a Scripting no MTA (link útil) Programar GUI no MTA Depurando seu código Programação e a linguagem Lua Iniciando na programação: Vídeo - Introdução a Algoritmos Introdução aos Algoritmos Vídeo - Lógica de programação Programação Lua: Conheça a linguagem Lua Manual de Referência de Lua 5.1 Playlist - Programando em Lua (vídeo) Playlist - Curso de programação em Lua (vídeo) Introdução à linguagem de programação Lua Teaching-lp seminario-lua PDF Outros links (em inglês): lua.org Lua wiki www.tutorialspoint.com/lua Lista de tutoriais e manuais Lua Sub-fórum - Tutorials E também: Tutoriais: sub-fórum da seção Portuguesa Editores para programador e Ferramentas Com plugins/extensões do MTA disponíveis: - Notepad++ | Plugins do MTA - Sublime Text | Plugins do MTA - Visual Studio Code | Extensões: MTA:SA Lua, MTA:SA Debugger and Test Framework Sem plugins do MTA: - ZeroBrane Studio - IntelliJ IDEA - Atom Editor - Eclipse - Decoda Lua IDE Também: Lua for windows | GitHub
  2. Opá. Manos conheci esse site agora e já jogo MTA a um tempo mais nunca parei para criar um servidor bom estou criando o meu agora e quando os players vão digitar no painel login exemplo se logarem ou registrarem acabam soltando sua BIND eu queria saber se tem como bloquear soltar as BINDS apenas no painel Login. Obrigado pela Compreensão ❤️ Qualquer coisa já ajuda
  3. Hello! I would like to buy some resources for my dayz server. (Anyway, if you have/know any free res. you can share it if u want wink wink) PAYPAL Only! I can pay enough for nice resource. ↓ ↓ ↓ ↓ ↓ ↓ Thank you,have a nice day/night/whatever you want #SryForMyBadEnglish
  4. sevenlwo

    freeroam help

    Hello, i'm trying to create a checkbox to enable and disable the ghost-mode on my F1(freeroam) panel on MTA server, but actually i dont know how to do it. someone can help me?
  5. Hello everyone, guys please help me, I need a script that will protect custom machines, maps, write in a personal, or here in the topic, thank you all in advance
  6. First I would like to say if there is any possibility or some way I am depriving the resources of my server, however I say if there is any way to get access to the resource folders for players. Features these I say as .DFF .TXD both of cars and skin, as I am with some exclusive ones that I paid dearly and would not want them to simply be stolen. My question is: Is there any way I can block resource folders or just those modifications so nobody can catch them?
  7. Fala galera, estou com um problema na nova versão do MTA, seguinte quando eu edito algo no freeroam e salvo, depois vou no Painel Admin e do um restart na resource "Freeroam", e não muda nada continua como padrão, só muda quando eu desligo o servidor e volto a liga-lo ai sim eu vejo oque eu mudei!.Será que é algum bug ou uma opção no servidor que esteja causando esse bug?, em versões antigas do MTA, o RESTART na, resource funciona normalmente, sem eu precisar desliga e ligar o servidor novamente.Estou a 2 dias, procurando a solução e nada ate agora, se alguma alma viva que esteja com o mesmo problema e tenha conseguido corrigir isso, pls mande a solução, grato!.
  8. Server closed, mode resources https://drive.google.com/file/d/1a1LhPHrO0mmq2bSfqlUhCwS2BOwyQeCt/view
  9. Server closed, mode resources https://drive.google.com/file/d/1a1LhPHrO0mmq2bSfqlUhCwS2BOwyQeCt/view
  10. Tengo errores en esta funciones dentro de mi sistema de nivel me ayudarían a solucionarlo por favor?. ---EN EL SERVER TENGO ESTE ERROR AQUI: getPlayerEXP = function(l_13_0) if not tonumber(getElementData(l_13_0, "exp")) then -- return not l_13_0 or type(l_13_0) ~= "userdata" or getElementType(l_13_0) ~= "player" or 0 -- do return end -- AQUI end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_13_0) .. "]", 2) return false end -- EN EL CLIENTE TENGO ESTE ERROR AQUI EN LAS MIMAS LINEAS: getPlayerEXP = function(l_7_0) if not tonumber(getElementData(l_7_0, "exp")) then return not l_7_0 or type(l_7_0) ~= "userdata" or getElementType(l_7_0) ~= "player" or 0 do return end -- AQUI end outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_7_0) .. "]", 2) return false end -- LOS ERRORES SON DE: `end`expected (to close `if` at line 197) near do
  11. where i can change the text from that circled photo??? where is placed in resources ?? in announcement isn't https://imgur.com/a/galEmaI PLEASE HELP MEEEE
  12. I already rebooted the mta, gave stop and restart in the panel of the host and did not return the resources https://uploaddeimagens.com.br/imagens/mta-screen_2018-05-08_22-42-39-png
  13. Hi... i'm making my own rpg / rp server with my friend and i have a little issue As you can see in the title; when i start a new resource when my "rpg" gamemode is enabled the maps are loaded multiple times, so i have to restart my "rpg" gamemode to have just a single map loaded It means that, for example, i hit a marker and the GUI is displayed 2 times (Because there are 2 markers in the same place) The way to load maps i do is in 'meta' like this: ----------------------------------------------------------------------------------------------------------------- <meta> <!-- MAPPING --> <script src="mapping/mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapping/mapEditorScriptingExtension_c.lua" type="client" validate="false"></script> <map src="mapping/BASE_Map.map" dimension="0"></map> <!-- MARKERS --> <map src="markers/freecars.map" dimension="0" /> <script src="markers/freecars_s.lua" type="server" /> <script src="markers/freecars_c.lua" type="client" /> </meta> ------------------------------------------------------------------------------------------------------------ I saw another post that probably talks about the same problem, but, at least i noticed is map loading's fault: https://forum.gtanet.work/index.php?threads/entershape-gets-triggered-twice.2044/ If you know how to solve this kind of "over load" it's perfect for me But if you don't really know i would like to know a different ways (As much ways as you know) to load those maps when i start my rpg mode Thanks <3
  14. Hola , queria una ayuda con el respawn de hospitales mas cercanos , quiero que los users vayan al hospital mas cercano cuando mueren , pero no puedo , siempre me dirije el hospital LS , cerca de groove, desactive el play para ver si era eso , sin embargo me seguia pasando lo mismo , me dirigia al hospital ls , y entonces desactive el respawn que tenia puesto , y cuando moria iba al mismo hospital LS , y nose como sacar ese respawn que solo vaya al hospital ls.
  15. hi. im looking for pubg (battle ground) backup any 1 please?
  16. Me ayudan con este pequeño problema?, es un error que me tira estas lineas cuando me acerco a una tent (tienda de campaña) if getElementData(source,"vehicle") then if not getElementData(source,"deadVehicle") then showClientMenuItem("Vehicle",(getVehicleName(getElementData(source,"parent")) or "Tienda de Campaña"),getElementData(source,"parent")) -- ERROR AQUI setElementData(getLocalPlayer(),"currentCol",source) setElementData(getLocalPlayer(),"loot",true) setElementData(getLocalPlayer(),"lootname","Gear ("..(getVehicleName(getElementData(source,"parent")) or "Tienda de Campaña")..")") -- ERROR AQUI setNewbieInfo(true,"Equipo","Presiona J para acceder al inventario!",source) return end end Los errores son: Bad argument @ getvehiclename....
  17. Hello,i got a script which replaces the default sniper scope with a custom one by using shaders,now i got the bug that my scope doesnt draw correctly,it draws 4 scopes Here is the code table = { {"files/siterocket.png", "siterocket"}, {"files/SNIPERcrosshair.png", "SNIPERcrosshair"}, } addEventHandler( "onClientResourceStart", resourceRoot, function() for i = 1, #table do local shader, tec = dxCreateShader ( "texreplace.fx" ) local tex = dxCreateTexture ( ""..table[i][1].."" ) engineApplyShaderToWorldTexture ( shader, table[i][2] ) engineApplyShaderToWorldTexture ( shader, table[i][2].."lod" ) dxSetShaderValue ( shader, "gTexture", tex ) end end)
  18. Hello guys,i made something which replaces explosion sounds,weapon sounds,weapon models,sniper scope,rocket crosshair and disables default weapon sounds in 1 script,now the problem is whenever i shoot with my gun it makes me lag,i dont use any custom effects or stuff.Pls help. Thank You.Btw heres the code if u need local distance = 75 --distance from where you can hear the shot local explostionDistance = 150 local cSoundsEnabled = true local reloadSoundEnabled = false local explosionEnabled = true ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/knife.txd" ) engineImportTXD ( txd, 335) dff = engineLoadDFF ( "Weapons/knife.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 335) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/pistol.txd" ) engineImportTXD ( txd, 346) dff = engineLoadDFF ( "Weapons/pistol.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 346) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/silenced.txd" ) engineImportTXD ( txd, 347) dff = engineLoadDFF ( "Weapons/silenced.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 347) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/deagle.txd" ) engineImportTXD ( txd, 348) dff = engineLoadDFF ( "Weapons/deagle.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 348) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/shotgun.txd" ) engineImportTXD ( txd, 349) dff = engineLoadDFF ( "Weapons/shotgun.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 349) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/sawnoff.txd" ) engineImportTXD ( txd, 350) dff = engineLoadDFF ( "Weapons/sawnoff.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 350) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/striker.txd" ) engineImportTXD ( txd, 351) dff = engineLoadDFF ( "Weapons/striker.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 351) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/uzi.txd" ) engineImportTXD ( txd, 352) dff = engineLoadDFF ( "Weapons/uzi.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 352) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/mp5.txd" ) engineImportTXD ( txd, 353) dff = engineLoadDFF ( "Weapons/mp5.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 353) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/tec9.txd" ) engineImportTXD ( txd, 372) dff = engineLoadDFF ( "Weapons/tec9.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 372) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/ak47.txd" ) engineImportTXD ( txd, 355) dff = engineLoadDFF ( "Weapons/ak47.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 355) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/m4.txd" ) engineImportTXD ( txd, 356) dff = engineLoadDFF ( "Weapons/m4.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 356) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/rifle.txd" ) engineImportTXD ( txd, 357) dff = engineLoadDFF ( "Weapons/rifle.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 357) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/sniper.txd" ) engineImportTXD ( txd, 358) dff = engineLoadDFF ( "Weapons/sniper.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 358) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/launcher.txd" ) engineImportTXD ( txd, 359) dff = engineLoadDFF ( "Weapons/launcher.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 359) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/hlauncher.txd" ) engineImportTXD ( txd, 360) dff = engineLoadDFF ( "Weapons/hlauncher.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 360) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/minigun.txd" ) engineImportTXD ( txd, 362) dff = engineLoadDFF ( "Weapons/minigun.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 362) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/grenade.txd" ) engineImportTXD ( txd, 342) dff = engineLoadDFF ( "Weapons/grenade.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 342) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/teargas.txd" ) engineImportTXD ( txd, 343) dff = engineLoadDFF ( "Weapons/teargas.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 343) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/molotov.txd" ) engineImportTXD ( txd, 344) dff = engineLoadDFF ( "Weapons/molotov.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 344) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) function replaceWeapon() txd = engineLoadTXD ( "Weapons/satchel.txd" ) engineImportTXD ( txd, 363) dff = engineLoadDFF ( "Weapons/satchel.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 363) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/parachute.txd" ) engineImportTXD ( txd, 371) dff = engineLoadDFF ( "Weapons/parachute.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 371) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----RIP function replaceWeapon() txd = engineLoadTXD ( "Weapons/bomb.txd" ) engineImportTXD ( txd, 364) dff = engineLoadDFF ( "Weapons/bomb.dff") -- use weapon model ID, not GTA weapon ID (model ID from https://wiki.multitheftauto.com/wiki/Weapons) engineReplaceModel ( dff, 364) -- Likewise, model ID, for M4 as example it's 356 end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceWeapon) ----Adds New Explosion Sounds addEventHandler("onClientExplosion", getRootElement(), function(x,y,z, theType) local Sdimension = getElementDimension(source) local Sinterior = getElementInterior(source) if(explosionEnabled)then if(theType == 0)then--Grenade local explSound = playSound3D("Explosions/explosion1.mp3", x,y,z) setSoundMaxDistance(explSound, explostionDistance) setElementDimension(explSound, Sdimension) setElementInterior(explSound, Sinterior) elseif(theType == 4 or theType == 5 or theType == 6 or theType == 7)then --car, car quick, boat, heli local explSound = playSound3D("Explosions/explosion3.mp3", x,y,z) setSoundMaxDistance(explSound, explostionDistance) setElementDimension(explSound, Sdimension) setElementInterior(explSound, Sinterior) elseif(theType == 1)then else local explSound = playSound3D("Explosions/explosion2.mp3", x,y,z) setSoundMaxDistance(explSound, explostionDistance) setElementDimension(explSound, Sdimension) setElementInterior(explSound, Sinterior) end end end) ----Adds New Weapon Sounds function playSounds(weapon, ammo, ammoInClip) if(cSoundsEnabled)then local x,y,z = getElementPosition(source) if weapon == 31 then --m4 if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/m4.wav", x,y,z) else local sound = playSound3D("Sounds/m4.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 22 then --pistol if(ammoInClip == 0 and reloadSoundEnabled)then pistolReload("Sounds/pistole.wav", x,y,z) else local sound = playSound3D("Sounds/pistole.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 23 then --silenced if(ammoInClip == 0 and reloadSoundEnabled)then pistolReload("Sounds/silenced.wav", x,y,z) else local sound = playSound3D("Sounds/silenced.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 24 then --deagle if(ammoInClip == 0 and reloadSoundEnabled)then pistolReload("Sounds/deagle.wav", x,y,z) else local sound = playSound3D("Sounds/deagle.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 25 then --shotgun if(weapon == 25)then local sound = playSound3D("Sounds/shotgun.wav", x,y,z) setSoundMaxDistance(sound, distance) shotgunReload(x,y,z) else local sound = playSound3D("Sounds/shotgun.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 28 then --uzi if(ammoInClip == 0)then mgReload("Sounds/uzi.wav", x,y,z) else local sound = playSound3D("Sounds/uzi.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 38 then --minigun if(ammoInClip == 0)then mgReload("Sounds/minigun.wav", x,y,z) else local sound = playSound3D("Sounds/minigun.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 29 then --mp5 if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/mp5.wav", x,y,z) else local sound = playSound3D("Sounds/mp5.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 26 then --sawnoff if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/sawnoff.wav", x,y,z) else local sound = playSound3D("Sounds/sawnoff.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 27 then --sawnoff if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/striker.wav", x,y,z) else local sound = playSound3D("Sounds/striker.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 32 then --tec-9 if(ammoInClip == 0)then tec9Reload(x,y,z) else local sound = playSound3D("Sounds/tec-9.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 30 then --ak if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/ak.wav", x,y,z) else local sound = playSound3D("Sounds/ak.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 33 then --rifle if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("Sounds/rifle.wav", x,y,z) else local sound = playSound3D("Sounds/rifle.wav", x,y,z) setSoundMaxDistance(sound, distance) end elseif weapon == 34 then --sniper local sound = playSound3D("sounds/sniper.wav", x,y,z) setSoundMaxDistance(sound, distance) end end end addEventHandler("onClientPlayerWeaponFire", getRootElement(), playSounds) ----Disables Default Explosion And Weapon Sounds setWorldSoundEnabled(5, false) function removeWorldSounds() setWorldSoundEnabled(5, 3, false) setWorldSoundEnabled(5, 4, false) setWorldSoundEnabled(5, 5, false) setWorldSoundEnabled(5, 6, false) setWorldSoundEnabled(5, 7, false) setWorldSoundEnabled(5, 8, false) setWorldSoundEnabled(5, 11, false) setWorldSoundEnabled(5, 12, false) setWorldSoundEnabled(5, 13, false) setWorldSoundEnabled(5, 14, false) setWorldSoundEnabled(5, 15, false) setWorldSoundEnabled(5, 16, false) setWorldSoundEnabled(5, 17, false) setWorldSoundEnabled(5, 18, false) setWorldSoundEnabled(5, 21, false) setWorldSoundEnabled(5, 22, false) setWorldSoundEnabled(5, 23, false) setWorldSoundEnabled(5, 24, false) setWorldSoundEnabled(5, 26, false) setWorldSoundEnabled(5, 27, false) setWorldSoundEnabled(5, 29, false) setWorldSoundEnabled(5, 32, false) setWorldSoundEnabled(5, 33, false) setWorldSoundEnabled(5, 52, false) setWorldSoundEnabled(5, 55, false) setWorldSoundEnabled(5, 63, false) setWorldSoundEnabled(5, 73, false) setWorldSoundEnabled(5, 76, false) setWorldSoundEnabled(5, 83, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), removeWorldSounds) ----Replaces The Sniper Crosshair table = { -- you can add more stuff here :) -- Crosshair {"files/siterocket.png", "siterocket"}, {"files/SNIPERcrosshair.png", "SNIPERcrosshair"}, } addEventHandler( "onClientResourceStart", resourceRoot, function() for i = 1, #table do local shader, tec = dxCreateShader ( "texreplace.fx" ) local tex = dxCreateTexture ( ""..table[i][1].."" ) engineApplyShaderToWorldTexture ( shader, table[i][2] ) engineApplyShaderToWorldTexture ( shader, table[i][2].."lod" ) dxSetShaderValue ( shader, "gTexture", tex ) end end)
  19. Como es esto? tengo estas funciones la primera es la función de que si te rompes los huesos no puedes correr ni saltar... La segunda es la función de que si tieens sueño no puedes correr pero SI saltar... Cúal es el problema? pues es que cuando te rompes los huesos puedes correr pero no saltar.... La verdad no se que pasa es como si estuvieran mezcladas las funciones (mal colocadas nosé). function checkBrokenbone() if getElementData(getLocalPlayer(), "logedin") then if getElementData(getLocalPlayer(), "brokenbone") or getElementData(localPlayer,"sleep") <= 0 then if not isPedDucked(getLocalPlayer()) then end toggleControl("jump", false) toggleControl("sprint", false) else toggleControl("jump", true) toggleControl("sprint", true) end end end setTimer(checkBrokenbone, 1400, 0) --------------------------------------------------- --sleep function checkSleeping() if getElementData(getLocalPlayer(),"logedin") then if getElementData(getLocalPlayer(),"sleep") <= 20 then if not isPedDucked(getLocalPlayer()) then end toggleControl ( "sprint", false ) else toggleControl ( "sprint", true ) end end end setTimer(checkSleeping,1400,0) Se supone que la idéa sería que si me rompo los huesos no pueda correr ni saltar y cuando tenga sueño no pueda correr pero SI saltar.... Cúal es la solución chicos?????
  20. My Resources Do Not Load On My Server, I'm With 216 Resources, And My Last 2 Do not Load, I Need Help, It's All Right In It, With the .lua file and the meta.xml file please help me By: Troken_XD
  21. He echarías una mano te lo ruego? Me solucionarías estas líneas?... function debugJump() if PedControlState("jump") then Aqui el error ---- attempt to call global ´PedControlState´ (a nil value) setElementData(getLocalPlayer(), "jumping", true) setTimer(debugJump2, 650, 1) end end setTimer(debugJump, 100, 0) function debugJump2() setElementData(getLocalPlayer(), "jumping", false) end Y luego esta parece ser el mismo error que el de arriba: function debugShooting() if PedControlState("fire") then -- Error-- attempt to call global ´PedControlState´ (a nil value) local weapon = getPedWeapon(getLocalPlayer()) local noise = getWeaponNoise(weapon) or 0 setElementData(getLocalPlayer(), "shooting", noise) if shootTimer then killTimer(shootTimer) end shootTimer = setTimer(debugShooting2, 100, 1) end end setTimer(debugShooting, 100, 0) function debugShooting2() setElementData(getLocalPlayer(), "shooting", 0) shootTimer = false end
  22. any resource to save vehicles? I've been investigating this and I have not found anything that works
  23. Hey so ummm, i'm new in MTA so im just asking, Can we Install MTA's resources to Our GTA San Andreas Offline? Thanks!
  24. Open Source Roleplay Hi there. As most of you know there aren't many strict roleplay servers on Multi Theft Auto for various reasons; one of the main reasons being that there aren't any roleplay resources out there for one to download and create a server, so people resort to using leaked roleplay scripts from previously hacked servers, which results in DDoS wars, hacking, revenge, servers getting taken down, and so on. In the end, only one server stays up and that is the one and only OwlGaming that has been around since 2014. Ofcourse you can find old and outdated roleplay scripts on the internet that you could use for your server for example vG and uG scripts. But there's no point in using those since they're old, malfunction and players dislike them. For a long time no one has ever decided to work publicly on an open source roleplay resource pack. I think if we want MTA to evolve it should be time that we all unite and get our hands on some RP scripts that anyone can download and make a server with. You may ask: wouldn't this mean there'd be tons of identical roleplay servers out there? There would, but that's actually the point. If we want MTA to grow and attract more players to it this is the solution: allow people to create their own rolpeplay servers legally without using any stolen scripts. This thread is a suggestion and its intention is to discuss this matter and maybe gather scripters to create this unique Open Source Roleplay resource pack for the community to use. It doesn't need to be super high quality and detailed. It should contain the basic scripts that allow roleplay to take place. For those that are not very familiar with it let me list some down: • Account System • Login Panel • Tutorial • Vehicle System • Property/Interior System • Bank/Currency System • Inventory System • Faction System • Elevator System • Faction System • Gate System • Fuel System • Chat System • GPS Sytem | Map Blips • Help System • Admin System • Radio System • Phone System • Donation System • Event System ... Let's end the suffering, the DDoS wars, the hacking, the leaked scripts and let's all join together and create the best roleplay scripts out there! It won't take long to make and it won't require a lot of effort if done in a large team of contributors. And thanks to MTA's almost non-existing scripting limitatios we can beat SAMP in this! Leave your opinion and comment below. Cheers. <3
  25. Então sou meio novo nesse sistema de editar servidor procurei no youtube,mas não achei nenhum tutorial bom para ensinar a instalar resources. outro fato é que não conisgo apertar P e entrar no painel de admin o terceiro fato é como ativo o modo debug?