Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 19/01/20 in all areas

  1. Hi, I was testing fetchRemote function and decide to create script that's gonna load map from cloud / URL. I added some settings soo you can create the whole system out of this few lines of code. Also this resource is gonna need access to 'fetchRemote' function, simply add it in ACL and you can use it. There are 2 maps added so you can test it out. local customMapsRawData = { ["Trash on Grove Street"] = { ["active"] = true, -- is map enabled or not ["link"] = "http://www.gubi.studio/tut/mta/trash-on-grove-street.txt", -- link to text file which contain whole data of your .map file ["visibleTo"] = getRootElement(), -- element which should see the map, can be player/getRootElement() ["annoucment"] = true, -- if set to true will annouce on chat that map has been loaded }, ["Shop on Grove Street"] = { ["active"] = false, ["link"] = "http://www.gubi.studio/tut/mta/shop-on-grove-street.txt", ["visibleTo"] = getRootElement(), ["annoucment"] = false, } } local function createMapFromRawData(data, error, mapName, annoucment, visibleTo) if error == 0 then loadMapData(xmlLoadString(data), visibleTo) outputDebugString("Map "..mapName.." has been loaded!") if annoucment == true then outputChatBox("Map "..mapName.." has been loaded!", root, 0,255,0) end else outputDebugString("Map "..mapName.." failed while loading! Check if link is valid!", 3) end end local function loadCustomMaps() if not hasObjectPermissionTo(getThisResource(), "fetchRemote", true) then outputDebugString("This resource needs access to \"fetchRemote\" in ACL!", 1) return end for mapName, mapData in pairs(customMapsRawData) do if mapData["active"] == true then fetchRemote(mapData["link"], createMapFromRawData, "", false, mapName, mapData["annoucment"], mapData["visibleTo"]) end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), loadCustomMaps)
    1 point
  2. Hello. This is my new custom window system with widgets. Just rewrited window system, including this custom GUI widgets: - Scroll Panes - Buttons (+ buttons with images) - Progress Bars (automatic checking for vertical or horizontal using its size, square is horizontal) - Scroll Bars (same as progress bars) - Custom Themed Edit Boxes, Memo Boxes, new widget - Number Boxes (support mouse scrolling) - Check Boxes - Combo Boxes - Tab Panel with tabs - Labels - Dialog Boxes - Tooltips - Loading Circles - Table Views (Grid Lists) Here I've just used only OOP coding style, just copy this one lua file in your projects, and start this resource automatically, because this file getting directories from main resourcename, and using files without copying. Screenshots Video: Example - Login Panel. Author - Estet (DK). Tutorial of installation: Download (GitHub) Wiki Documentation Thank you.
    1 point
  3. Troca setPedSkin por setElementModel
    1 point
  4. Alright, thanks bro! Already solved, but thanks for your advance, too!
    1 point
  5. Line 7: use resourceRoot instead of root. Else the code will be executed for every starting resource. Minimal timer delay should be 50. (Atleast that was a problem I had in the past) Don't create timers within loops. Don't create timers within timers. (Dangerous)
    1 point
  6. try to use addEvent function below the toggleOnPlayerMove variable
    1 point
  7. Did you check the debug? If you did, can you send what it says? If you don't know what's the debug it's a command "/debugscript" use it at level 3: "/debugscript 3", it will tell you were there're warning or errors.
    1 point
  8. Este painel de login ele faz login utilizando elemento, e não um LogIn. Para resolver isto, você precisa adapta-lo para criar uma conta usando a função addAccount e depois LogIn. Nesse meio, você precisará adiciona verificações para verificar a conta já não existe para não bugarem.
    1 point
  9. Olá pessoal. Fiz um vídeo bem detalhado sobre os painéis CEGUI, abordando algumas das principais dúvidas e também algumas propriedades que podem ajudar muito na hora de criar um painel GUI. Recomendo que assistam com fones de ouvido, ou então que ativem as legendas no YouTube. Críticas, sugestões, opiniões, perguntas relacionadas ao vídeo, podem fazer por aqui ou então deixar nos comentários do vídeo. (Deu muitíssimo trabalho de produzir o vídeo, deixe seu like neste post e no vídeo. Se puder, se inscreva no canal e acompanhe a página Lord Henry Entertainment no facebook.) Links e funções que aparecem no vídeo em ordem de aparição: http://static.cegui.org.uk/docs/0.8.7/ guiGetScreenSize guiCreateWindow guiCreateButton http://static.cegui.org.uk/static/WindowsLookProperties.html guiSetProperty http://static.cegui.org.uk/static/WindowsLookProperties.html#FrameWindow http://static.cegui.org.uk/static/WindowsLookProperties.html#Button isMouseOnGUICloseButton Standard_GUI_Font_Names guiSetEnabled guiSetAlpha guiEditSetReadOnly guiEditSetMasked Tenham todos uma boa semana.
    1 point
  10. Every player in the server does have an account. If the account is not created by script, then it is a guest account, which is automatic deleted when it is not required any more. if not isGuestAccount ( acc ) then
    1 point
  11. Ah oke Just don't add words that make it really aggressive: I meant, i've created my function for idle animations, not ready-to-use animations. And how can I reset players' idle time. So? WUTEVA, I DON'T NEED HELP WITH THIS ANYMORE! It will back fire and you get less help instead of more.
    1 point
  12. Please behave yourself. We do not want to inherit your stress.
    1 point
  13. Ok, sem problemas. Bom vou estar te passando dois tópicos, um é de como você estar usufruindo do fórum da maneira certa! É um tutorial em vídeo feito pelo Lord Henry link abaixo: O outro link é um outro tutorial, meio que um "passo-a-passo" feito pelo DNL291 sobre como começar na linguagem Lua no MTA. Leia com calma e paciência! Segue o link abaixo: Agora vamos lá. Primeiro o que é ELEMENT DATA? É uma forma de você salvar um dado ao player exemplo: o player Eder esta sendo revistado, eu quero salvar isso a mim o que eu faço? coloco setElementData(playerRevistado, "sendo:Revistado", playerRevistado), dessa forma eu acabei de colocar um dado a mim. Agora se eu quiser ver se eu estou sendo revistado ou não? Eu faço isto: if getElementData(playerRevistado, "sendo:Revistado") == true then ou seja se eu tiver esta data "sendo:Revistado" então algo acontecerá comigo... Vamos ao código: 1 - onde esta escrito local bank, coloque isto aqui: local bank = format(tonumber(getElementData(jogador, "Bank:Caixa") or 0)); Caso não funcione o problema deve estar no nome da data "Bank:Caixa", para verificar vc tem q abrir o seu mod do banco e procurar por isto lá dentro! 2 - para "adicionar a fome, sede e sono é necessário onde tem isto: local Fome = format(tonumber(getElementData(jogador, "hunger")) or 0); -- data da fome local Sede = format(tonumber(getElementData(jogador, "sede")) or 0); -- data da sede local Sono = format(tonumber(getElementData(jogador, "sono")) or 0); -- data do sono Os nomes "hunger", "sede" e "sono" precisam estar EXATAMENTE iguais ao que esta no seu mod de lanchonete! Para estar mudando é só apagar o que esta entre as aspas " ", e digitar com letras maiúsculas e minusculas o nome certo da data que esta lá no mod de lanchonete. Normalmente só abrir o arquivo e pesquisar por setElementData ou getelementData que vc encontrará. O básico é isso. Caso não tenha entendido só estar perguntando novamente, que tentarei lhe ajudar! Edit: E não se esqueça de ativar o debugscript 3!!
    1 point
  14. A solução está na resposta, kk function fix (playerSource) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("vip")) then local theVehicle = getPedOccupiedVehicle (playerSource) if theVehicle and getVehicleController ( theVehicle ) == playerSource then fixVehicle (theVehicle) outputChatBox ("" , thePlayer) end end end addCommandHandler ("fix" , fix)
    1 point
  15. Creio que seja do resource 'deathmessages', basta desativa-lo. Está localizado na pasta [gameplay].
    1 point
  16. See this function + example: https://wiki.multitheftauto.com/wiki/GetPlayerIdleTime
    1 point
  17. ServerIP: Our Discord: https://discord.gg/aR4kGxY OUR FORUM: https://forum.redcountyrp.net/ TEAMSPEAK: 116.202.33.23 Sky Roleplay is made to create the ultimate roleplay experience. Sky Roleplay is a medium/heavy roleplay server, based in Red County. Sky Roleplay has many custom interiors, unique mappings, many unique scripts and last but not least, realistical roleplay experience. Features: Vehicle Sounds Mappings Interiors ETC.. ______________________________________________________________________________________________________________________________________________________________ We Also have host alot of different events for the players with rewards and try to spice up the player experience. Screenshots from the server: DMV: FD: Hospital: The Montgomery Park: The Town Hall:
    1 point
  18. @#~Scared In the editor there is a map setting called useLODs. (Also you can just edit the meta.xml of the map) <meta> <info type="map" version="1.0.0"></info> <map src="test-lods.map" dimension="0"></map> <settings> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#useLODs" value="[ true ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#gravity" value="[ 0.0080000004 ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#camera" value='[ [ [ &quot;0&quot;, &quot;0&quot;, &quot;0&quot; ], [ &quot;0&quot;, &quot;0&quot;, &quot;0&quot; ] ] ]'></setting> <setting name="#locked_time" value="[ true ]"></setting> <setting name="#weather" value="[ 0 ]"></setting> <setting name="#time" value="12:0"></setting> </settings> <script src="mapEditorScriptingExtension_s.Lua" type="server"></script> <script src="mapEditorScriptingExtension_c.Lua" type="client" validate="false"></script> </meta> This will enable a list of GTA san lowLOD elements. (but it doesn't include all, there for you have to script a little bit more to use default elements as lowLOD objects, edit the mapEditorScriptingExtension files for that. Keep performance in mind while making those tweaks.)
    1 point
  19. Not create and attach the eventHandler to a new function. Use global named functions that can be attached and detached when it is no longer required. You currently created something you might consider similar to a memory leak.
    1 point
  20. Join our forum at https://forum.redcountyrp.net/ also join our teamspeak IP: 116.202.33.23
    1 point
  21. Dear @Da Nang I'm very sorry that this happened. You might sent me your discord so i can talk with you.
    1 point
  22. Hmm, now they work. Maybe related to an update of some sort, because I couldn't see them the moment I replied.
    1 point
  23. Bom, sem nenhum código fica um pouco difícil de ajudar, Mesmo para logar não precisando de permissão, sabe se o painel de login está com as permissão na acl?
    1 point
  24. Bom acredito eu que aqui não seja a seção certa para estar postando isto mas enfim. O cara entrou no seu servidor e logo após isto ele caiu? Primeiro você tem certeza que não foi problema na sua host? Segundo você divide senha do seu servidor ou deu acesso a alguma outra pessoa ao ftp, painel admin, ou até mesmo ao seu tc admin? Terceiro, verifique o console do seu tc admin, veja se tem algum comando efetuado pelo "cara", ou algo que envolva ele!
    1 point
  25. Mod note: topic locked for serious forum abuse by TS and consorts MTASERVER IP: mtasa://116.202.33.23:22003 DISCORDCHANNEL: https://discord.gg/44adDxJ Welcome to the Implicit Introduction. We are a server that started in the begin of 2016 Now we are almost alive for 4 years with ups and downs we came back in the game. - We want to bring back the roleplay as it was - Legal roleplay is very important in a roleplay server - ILLEGAL roleplay is important to but we are not a RPG server - We want to give everyone something to roleplay - We have an very nice administration team as they are ready to help everyone! - We allow everyone to come ingame if you speak english What do we offer you? We give you the experience to roleplay a good administration team working community and very friendly we offer everyone a faction wich need to have 3 faction members We want to give everyone something to roleplay with out faction or with a faction We have teamspeak almost up everyone is free to join! [ Links below ] ⦁ 21-03-2019 ⦁ Roleplay ⦁ English ⦁ IP: mtasa://116.202.33.23:22003 ⦁ Discord: https://discord.gg/44adDxJ ⦁ Find us on youtube
    1 point
  26. We now have a community partnership with SAAW gaming and their || World War 2 || server. our goal is to bring a bigger community together. UPDATE: Saaw ww2 IP: mtasa://116.203.196.16:22003 -Added mtasa://116.202.33.23:22003 GTA Roleplay IP to the advertisement system -Added new IMPLICIT / SAAW Discord server to advertisement: https://discord.gg/44adDxJ -Added ability "Raid": Medics can now capture zones with light vehicles -Added ability "Radio transmitter": Radio operators can deploy this device that uncovers all enemies for the whole team in a 20m radius. The transmitter can be shot. -Added a full map list to the "Votemanager" F9 help section -Advertisement/Help messages are now output to chatbox again (one message every 80 seconds) -Fixed a bug that calculated the wrong sound level for a player -Fixed a bug where some pistols made no noise when firing them -Fixed messed up shops in [TDM] Thailand -Nerfed Silent & deadly perk from 20/40% to 15/30% noise reduction -Slightly increased noise from jogging / swimming -Increased noise caused by weapon fire -Auto-Selfheal does now only heal up to ~90% - only a medic can heal beyond ~90% It is very likely that this update introduces new bugs. As usual, report them.
    1 point
  27. Alright @everyone the admin applications are open, as you can see, but please, fill out the form at https://docs.google.com/forms/d/e/1FAIpQLSfDKH54C3mfUkxPpcj1uFrFOQlaR_2pdh62j_cYOkGz5_pWiA/viewform
    1 point
  28. Helle there, for everyone who's interested we've opened the administration applications! If you like to roleplay and help players join our discord and fill in a application!
    1 point
  29. I meant that every roleplay server which is coming up will die anyways.
    1 point
  30. Tbh nta roleplay is becoming one hell of a joke
    1 point
  31. Lady's and gentlemen trust me I'll come back at MTA when I have the perfect laptop I'll even open a GTA 5 roleplay server I'll be creating a big community and trust me everyone who what's with me is getting good :~ in my server for sure
    1 point
  32. some random turkish guy opened servers under Fellow Team's name. mtasa://5.62.110.118:22003 mtasa://5.62.110.118:22003 i'm the original creator and leader of that clan and i shut it down just a few months ago after a rather successful 4 years run and i didnt give anyone a permission nor i have plans to reopen clan and servers under Fellow Team's name. funny enough the website that mentioned in the server's name doesn't even work since it got shut down along with Fellow Team's servers, though i still have rights for the domain's name hoping that something can be done about it, thanks.
    1 point
×
×
  • Create New...