Search the Community

Showing results for tags 'resource'.



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
  • General MTA
    • News
    • Media
    • Site/Forum/IRC/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • 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
  • 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


Gang


Location


Occupation


Interests

Found 36 results

  1. Andres99907

    How can i delay a function? Help :(

    I have this: function Salir() if isElement(tableVehicles[source]) then destroyElement(tableVehicles[source]) end end addEventHandler("onPlayerVehicleExit",getRootElement(),Salir) This function destroys the vehicle when the player leaves, I want this to happen after a second and not immediately, i need to use "Set timer", but I do not know how to use it, I tried different ways but none of them
  2. Regeneration (health) This resource lets you regenerate player and vehicle* health. It is not an unique idea, I know... but there weren't good implementations for it at the community resource list. So that's why I share this with YOU. * Vehicle regeneration for the driver only. Version 1.0.0 Not compiled! Smooth health regeneration No UI, just the manager Settings (Admin panel) Settings Regeneration [on/off] (player/vehicle) Regeneration value (player/vehicle) Regeneration delay (player/vehicle) Regeneration [on/off] while the vehicle is burning Download link: https://community.multitheftauto.com/?p=resources&s=details&id=15757 Take a quick look into the source code (v1.0.0) Client Server Meta
  3. I bring the GM DayZ 0.6.7 of Marwin totally free of bugs (fixed by me) and errors. Ready to edit to your liking. I hope you enjoy it! DOWNLOAD! https://hadesmta.blogspot.mx/2018/04/mtadayz-067-simplificada-limpia.html
  4. Hola a todos , soy nuevo tengo un resource que necesito reiniciar siempre al entrar al servidor , no se porqué , lo que quiero es que se reinicie despues de 2 minutos , pero que se reinicie esa unica vez lo de hacer que se reinicie ya me quedó con settimer pero no se como hacer para que lo haga una sola vez sería con killtimer? ya lo intenté y nada setTimer( function() --restarting this resource 2 min restartResource(getThisResource()) end, 120000, 0)
  5. Hello Community, first of all, i have searched for any fortnite battle royal gamemode or server on MTA:SA but i didn't find, and i can be wrong, well, today i'm making a Fortnite Battle Royale game mode and i will release it when i complete it, and if you have any suggestions you can post it down, you know its a hard work and it will take a little time because actually i'm working alone on my local server. - Regards xMKHx Here is some screenshots
  6. É um script de proteção de bases! Tipo, apenas quem está na acl ''MARINHA'' pode ir para a base da marinha brasileira, como faço pra mais de uma acl poder ir para essa base? SCRIPT: RestricLocation = {} TeleportLocation = {} EnabledAlarm = true ColCuboid = false --------------------------------------- CONFIGS -------------------------------------------- RestricLocation["location1"] = {-264.21362304688,3335.7004394531,1.1062507629395} -- Local 1 RestricLocation["location2"] = {775.92932128906,2741.86544785156,150.10624694824} -- Local 2 TeleportLocation = {1976.0953369141,-1924.1055908203,13.546875} -- Local de TP GroupName = "MARINHA" -- Nome da Gang ou Grupo ACL GroupNameBy = 2 -- 1 para Gang, e 2 para ACL MsgInvasao = "Base da MARINHA! Você não pode entrar aqui!" EnableVehicleGodMode = true -- Habilitar HabilitarAdmin = false -- Todos admins vao poder entrar na base GodMode = false -- Ao entrar na área protegida, habilita GodMode NaoAtirar = false -- Ao entrar na área protegida, não podera atirar --------------------------------------- CONFIGS -------------------------------------------- function sendMsg(iplayer,msg) outputChatBox ( msg, iplayer, 255, 0, 0, true ) end function EnterPlace ( theElement ) local veh = getPedOccupiedVehicle(theElement) local accName = getAccountName(getPlayerAccount(theElement)) if HabilitarAdmin == true then if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) ) then return end end if (getElementType ( theElement ) == "player") and (PlayerHaveLevel (theElement) == false) then sendMsg(theElement,MsgInvasao) if veh then setElementPosition( veh, TeleportLocation[1], TeleportLocation[2], TeleportLocation[3]) else setElementPosition( theElement, TeleportLocation[1], TeleportLocation[2], TeleportLocation[3]) end sendMsgOwners(theElement) elseif getElementType ( theElement ) == "vehicle" then SetVehicleGodMode(theElement,true) end end function ExitPlace ( theElement ) if GodMode == true then setElementData(theElement,"blood",12000) end if NaoAtirar == true then toggleControl(theElement, "fire", true) toggleControl(theElement, "vehicle_fire", true) toggleControl(theElement, "vehicle_secondary_fire", true) toggleControl(theElement, "aim_weapon", true) end if getElementType ( theElement ) == "vehicle" then SetVehicleGodMode(theElement,false) end end function PlayerHaveLevel( PlayerID ) if GroupNameBy == 1 then if ( getElementData ( PlayerID , "gang" ) == GroupName ) then if GodMode == true then setElementData(PlayerID,"blood",999999999999999) end if NaoAtirar == true then toggleControl (PlayerID, "fire", false) toggleControl (PlayerID, "vehicle_fire", false) toggleControl (PlayerID, "vehicle_secondary_fire", false) toggleControl (PlayerID, "aim_weapon", false) end return true else return false end else local accName = getAccountName ( getPlayerAccount ( PlayerID ) ) if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( GroupName ) ) ) then if GodMode == true then setElementData(PlayerID,"blood",999999999999999) end if NaoAtirar == true then toggleControl (PlayerID, "fire", false) toggleControl (PlayerID, "vehicle_fire", false) toggleControl (PlayerID, "vehicle_secondary_fire", false) toggleControl (PlayerID, "aim_weapon", false) end return true else return false end end end function ResourceStart( ) LoadLocations() CreateCollision() end addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ),ResourceStart) function LoadLocations() local RX, RY, RZ, WRX, WRX, WRX if(RestricLocation["location1"][1] > RestricLocation["location2"][1]) then RestricLocation["maxx"] = RestricLocation["location1"][1] RestricLocation["minx"] = RestricLocation["location2"][1] else RestricLocation["maxx"] = RestricLocation["location2"][1] RestricLocation["minx"] = RestricLocation["location1"][1] end if(RestricLocation["location1"][2] > RestricLocation["location2"][2]) then RestricLocation["maxy"] = RestricLocation["location1"][2] RestricLocation["miny"] = RestricLocation["location2"][2] else RestricLocation["maxy"] = RestricLocation["location2"][2] RestricLocation["miny"] = RestricLocation["location1"][2] end if(RestricLocation["location1"][3] > RestricLocation["location2"][3]) then RestricLocation["maxz"] = RestricLocation["location1"][3] RestricLocation["minz"] = RestricLocation["location2"][3] else RestricLocation["maxz"] = RestricLocation["location2"][3] RestricLocation["minz"] = RestricLocation["location1"][3] end end function CreateCollision() RX = RestricLocation["minx"] WRX = RestricLocation["maxx"] - RestricLocation["minx"] RY = RestricLocation["miny"] WRY = RestricLocation["maxy"] - RestricLocation["miny"] RZ = RestricLocation["minz"] WRZ = RestricLocation["maxz"] - RestricLocation["minz"] ColCuboid = createColCuboid ( RX, RY, RZ, WRX, WRY, WRZ ) if ColCuboid then addEventHandler ( "onColShapeHit", ColCuboid, EnterPlace ) addEventHandler ( "onColShapeLeave", ColCuboid, ExitPlace ) else outputDebugString("Erro, verifique: location1 e location2") end end function ResourceStop( ) destroyElement ( ColCuboid ) end addEventHandler( "onResourceStop", getResourceRootElement( getThisResource() ),ResourceStop) function sendMsgOwners( PlayerID ) local connectedPlayers = getElementsByType ( "player" ) for i, aPlayer in ipairs(connectedPlayers) do if(PlayerHaveLevel (aPlayer) == true) then sendMsg(aPlayer," O Jogador " ..getPlayerName ( PlayerID ) .." esta tentando invadir a sua BASE !") end end end function SetVehicleGodMode( VehicleID, godEoD ) if EnableVehicleGodMode == true then setElementData(VehicleID, "godmode", godEoD) setVehicleDamageProof (VehicleID, godEoD ) end end
  7. Andu333

    tuning panel/tuning menu

    where is located tuning panel/tuning menu in resources??? pleasee help i have owl gamemode
  8. anybody can give me a resource for Random messages on chat please????
  9. KingBC

    Help in Job Taxi/Uber

    I wanted to create a taxi/uber job that the passenger/player (not NPC) would be charged after getting off the vehicle. How can I do this?
  10. Hey guys i saw many servers have a resource make staff/Moderators able to warp using F11 map, by clicking anywhere on the map they will warp there.. like mta freeroam map warping.... So if someone have this resource pls gimme it... I want it fast, Thnx
  11. 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
  12. Lormateve

    Help to find resource

    Previously I had a resource, that in the podia within the game, to know what texture they were in a radius of X meters. That is to say that the name of all the DFF appeared before me, and I did not have to search for the name or id of the object manually.
  13. minik

    Resource donwloads

    Hello, i have been wondering how can i write a script that is displaying a login panel after downloaded all resources. Can you give me some tips how to do that? Thanks!
  14. #Heshan||eUNLOCK||

    REDIRECT PANEL

    server redirect system (you can redirect player to another server using this script sorry for my little english) you can edit server names and ip & ports in client.lua & server.lua Don't forgot to give admin this resource #eUNLOCK PRODUCTION MY FIRST RESOURCE REL COMMENT YOUE IDEAS AND HELP ME TO DEVELOP THIS DOWNLOAD https://community.multitheftauto.com/index.php?p=resources&s=details&id=15214
  15. Community Resources: Released Resources: N/A Upcoming Resources: N/A Planning Resources: N/A To start this off I just got to say everything discussed here could make it's way into any resources but the main point here is to give opinions based on how you want the community resource to be and feature what ever you want. After saying that I would like to welcome you to the first ever topic/thread about us coming together creating a community resource where everything mentioned and agreed upon with the community would be put into a community resource. To get started we shall now come up with a resources that we all probably want to share as a community; example is like a in-game script editor or housing system. Everything is going to be talked about in individual topics I created by me (Only to keep spam down) and the resources would be posted on the MTA Community website under a username I still have to create and will be public after the first resource goes live. Pitch your ideas and for what resource you are talking about in an example post: Current Topic: N/A We'll change the current topic to who ever posts first.
  16. zB3NJ4

    [REQUEST] - TOP-Kills Resource

    Hi, i like to request a Resource, TOP-Kills for MTA:DayZ! PLS HELP :C
  17. FallenEvolution

    [HELP] WarpToMe script.

    Hi! I've started learning to script LUA and i want to warp players TO me by command instead of admin panel but my currect script isn't working, some help would be appreciated. addCommandHandler( "w2m", function( sourcePlayer, command, targetPlayerName ) if targetPlayerName then -- We check if an target has been set if getPlayerFromName(targetPlayerName) then -- We get the player element instead of the player name. if not (targetPlayerName == getPlayerName(sourcePlayer)) then -- We make sure the player isn't trying to warp to himself setElementPosition( targetPlayerName, 0, 0, 3 ) else outputChatBox("[Error] You can't warp to yourself!", sourcePlayer, 255, 0, 0, false) return false end else outputChatBox("[Error] Player could not be found, maybe he/she is offline?", sourcePlayer, 255, 0, 0, false) return false end else outputChatBox("[Error] Please choose a target", sourcePlayer, 255, 0, 0, false) return false end end ) Error: Thanks in advance!
  18. Kors

    Health & Armor

    Where i can find this resource ?
  19. Xwad

    triggerServerEvent

    Is it possible to prevent trggerServerEvent and TriggerClientEvent from triggering other resources? Thanks
  20. El Colorado

    Need help,

    Hello , I have quick question. How to add more weapon properties ?? Because when I try to add flag 0x000010 it doesn't work. So how ? addEventHandler("onResourceStart", resourceRoot, -- resourceRoot == the resource that just started (this resource) function () setWeaponProperty("ak-47", "poor", "flags", 0x000020) end)
  21. Hello everyone. I have a script with some settings that can be changed on Admin Panel, they are working fine without any error. The settings are declared on meta.xml like this: <settings> <setting name="*playerHouseCounter" value="[1]" friendlyname="Número de casas por jogador" group="General" accept="1-5" desc="Quantas casas cada jogador pode ter ao mesmo tempo." /> <setting name="*keyVipLength" value="[4]" friendlyname="Número mínimo de caracteres na senha" group="General" accept="1-10" desc="Quantos caracteres no mínimo devem ter as senhas das casas." /> <setting name="*vipACL" value="Vip" friendlyname="ACL Group VIP" group="General" accept="*" examples="Premium, VIP, vips, Payers, Pay2Play, etc" desc="Nome exato da ACL Group dos jogadores que são VIPs." /> </settings> BUT When I change a setting (from 1 to 2 as example), it appears duplicated with the new value, like this: In the script, I get those values with this: get( 'playerHouseCounter' ) How can I do this? This error doesn't happens with original resources.
  22. Olá novamente. Eu estou fazendo um script que possui configurações fora do script, aquelas configurações que vc declara no meta.xml e podem ser alteradas pelo painel admin. O script está tudo certo e as configurações estão funcionando. O problema é que quando eu altero qualquer valor de qualquer configuração, ele cria uma cópia dessa configuração com o novo valor e passa a utilizar essa nova configuração em vez da original, a configuração original continua com seu valor padrão e não é mais utilizada. Se eu tentar alterar o valor da cópia, ele cria uma terceira configuração cópia da cópia com este novo valor e assim por diante. Se eu alterar o valor na configuração original, ele aplica a alteração na cópia e mantém a configuração original no valor padrão. Se eu colocar o valor padrão na configuração original, nada acontece e a cópia não é alterada. As configurações estão declaradas assim no meta.xml: <settings> <setting name="*playerHouseCounter" value="1" friendlyname="Numero de casas por jogador" group="General" accept="1-5" desc="Quantas casas cada jogador pode ter ao mesmo tempo." /> <setting name="*keyLength" value="4" friendlyname="Numero minimo de caracteres na senha" group="General" accept="1-10" desc="Quantos caracteres no mínimo devem ter as senhas das casas." /> <setting name="*vipACL" value="Vip" friendlyname="ACL Group VIP" group="General" accept="Everyone,Moderator,Vip,Premium,Etc" desc="Nome exato da ACL Group dos jogadores VIPs." /> </settings> E acontece isso, quando eu altero por exemplo a configuração "Numero de casas por jogador" que originalmente é 1, dai eu alterei para 2: Obs: Já tentei declarar desse outro jeito mas continua com esse mesmo problema. <settings> <setting name="*playerHouseCounter" value="2" accept="1-9" desc="Quantas casas cada jogador pode ter ao mesmo tempo." /> <setting name="*keyLength" value="4" accept="1-9" desc="Quantos caracteres no mínimo devem ter as senhas das casas." /> <setting name="*vipACL" value="Vip" accept="Everyone,Moderator,Vip,Premium,Etc" desc="Nome exato da ACL Group dos jogadores VIPs, o grupo aparece no painel Admin ao selecionar um jogador VIP, do lado de Everyone." /> </settings> Obs2: Esse problema não acontece nas configurações do Scoreboard, resource original do MTA.
  23. Wrench 2000

    [QUESTION] What wrong in this script?

    i got this warning, and error: "rC.lua:40: bad argument @ 'dxDrawImageSection' [Expected material at argument 9, got nil]" - This is the warning msg.. "sC.lua:6: attempt to index global 'WorldRadar' (a nil value)" - This is the error msg.... And code(s): rC.lua:40: - dxDrawImageSection(WorldRadar["monX"], WorldRadar["monY"], WorldRadar["width"], WorldRadar["height"], mapX + 50, mapY + 60, WorldRadar["width"]/zoom, WorldRadar["height"]/zoom, WorldRadar["Map"], 0, 0, 0, tocolor(255, 255, 255, 255)) --- and the sC:lua:6: - Map = {} Map["F11"] = false function Map.start() MiniMap.start() WorldRadar.start() end Map.start() function Map.draw() if Map["F11"] then return end MiniMap.draw() end addEventHandler("onClientRender", root, Map.draw) function Map.stop() end What wrong? How to fix this problems? Thanks the help!
  24. O que há de errado? Objetivo: o jogador que estiver no grupo acl "EB" tem acesso ao comando /skin que por sua função tem de setar a skin do jogador para a skin 287, caso contrário aparece uma mensagem para ele dizendo que apenas membros do exercito podem executar o comando. Quem poder me ajudar fico grato, sou novato em desenvolver scripts mas ja tenho uma noção, pois, eu edito bastante scripts por ai. Ah eu gostaria que no outputChatBox("") o comando da cor #FF0000 funcionasse. Obrigado. function darSkin( thePlayer ) local nomeAcc = getAccountName(getPlayerAccount(thePlayer)) if not isObjectInACLGroup("user."..nomeAcc, aclGetGroup("EB")) then outputChatBox("Somente membros do Exercito Brasileiro podem pegar a skin!") else setPlayerSkin(thePlayer, 287) end addCommandHandler("skin", darSkin)
  25. Hello everyone, I am trying to make a converter from seconds to days, hours and minutes, and gives me error, could you tell me where the problem is? Sorry for my bad English. function secondsToClock(seconds) local seconds = tonumber(seconds) if seconds <= 0 then return "0 día(s), 0 hora(s) y 0 minuto(s)" else local days = math.floor(seconds/86400) local hours = string.format("%02.f", math.floor(seconds/3600 - (days*24))) local mins = string.format("%02.f", math.floor(seconds/60 - (hours*3600) - (days*24))) return days.." día(s), "..hours.." hora(s) y "..mins.." minuto(s)" end end