Jump to content

DRW

Members
  • Posts

    364
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by DRW

  1. You know, it's kind of funny. 4 months ago, before I came back to MTA I thinking about going straight to FiveM (an MTA """"equivalent"""" mod for GTA V) because I thought MTA was dying. Until I found out there are servers that get more concurrent players than most Call of Duty games, .
  2. So yeah, made a little script demonstration which could be very useful for the innovative server creators. If you're a Diablo (Dungeon Siege in my case) fan, you'll definitely love this. Know what? Give this post some feedback and I'll post it to the community with exports and custom events
  3. 1. Utiliza el bloque code para poner código y hacerlo legible. 2. Este post va a la sección "Spanish/Español de Other Languages". 3. Mira los posts en la wiki (pulsa lo naranja) y básate en eso. isObjectInACLGroup () aclGetGroup () getPlayerAccount() getAccountName ()
  4. guiCreateRadioButton() guiCreateLabel () addEventHandler ("onClientGUIClick",root,function()) triggerServerEvent() setAccountData () These functions should be enough for you to make that work.
  5. Z N E X T : Z O M B I E S Welcome everyone to the post of our awesome server! What is ZNEXT? ZNEXT is a hardcore zombie RPG server, but saying that is just underrating it, it's so much more than that. We've always wanted a great one, the server everyone would prefer among the other ZM gamemodes, filling it with dozens of things to do. We always provide our players with awesome updates and huge fixes so the experience is as neat as possible, thanks to our team of developers/mappers and Staff members. We've started as a spanish community but we've decided to expand, so everyone can finally play this server decently. You can select between two languages: Spanish and English. But most importantly: What does ZNEXT have? We mostly focus on quality, fairness and difficulty, but also on making it fun; that's why we invested so much time in developing AI enemies, not just zombies, but bosses and bandits, so you've got plenty of things to kill. We encourage players to join clans and go out capturing other clans' turfs, killing (not just) zombies together with exclusive per-companion boosters. And damn, we've even got missions so you don't get bored when you're alone. SOME FEATURES (We've got a sh*t ton of features more): SCREENSHOTS AND VIDEOS Video: (OUTDATED AND IN SPANISH) Before the retexture: Now (You can revert it back to normal): The mission giver: Damn zombies are hard! One of our 8 bases: Good activity: Bandits Bosses: Boss raid in the christmas special event: Our beloved community: IP: mtasa://www.znext.es:22003 Discord: discord.gg/YAzunVZ Forum (ENG/SPA): www.znext.es Have fun!
  6. I've recently had an order related to the freeroam panel, and I had to add some buttons here and there, and just seen this: Freeroam item structure: HTML:
  7. Have you checked if you saved the file? Also, try removing the "onClientResourceStart" event and function, and just use it in the root of the file. txd = engineLoadTXD ( "elecfence_bar.txd" ) engineImportTXD ( txd, 987 ) PD: These kinds of topics have to go to the "scripting" section, not here.
  8. GUIEditor = { button = {}, window = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(519, 260, 344, 304, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit((344 - 199) / 2, (304 - 20) / 2, 199, 20, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(280, 256, 55, 26, "‗הב", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(507, 146, 0, 110, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(17, 196, 245, 86, "", false, GUIEditor.window[1]) end ) local key = "F3" bindkey(key, "down", function() guiSetVisible(GUIEditor.window[1],true) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root, if (source == GUIEditor.button[1]) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end By the way, this should go to the "scripting" section, not here.
  9. It will work, the player elements that are children of the root element will be affected. So yes.
  10. Remove those onColShapeHit/onColShapeLeave events. They are setting the dimensions dynamically so when you leave the colShape the element goes to another dimension so you can't see it.
  11. DRW

    Removing HUD?

    Exactly, but don't use getResourceRootElement in this case, it has nothing to do with the event. Use localPlayer, since you want to check if you die, not others. local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } addEventHandler("onClientPlayerWasted", localPlayer, function () for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end end) local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } addEventHandler("onClientPlayerSpawn", localPlayer, function () for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end end)
  12. ¿Podrías decir qué error es específicamente? No podemos basarnos en nada si no tenemos más información.
  13. DRW

    Removing HUD?

    Either the current spawn/death script does that intentionally, or it is a built-in thing. Just hide it again depending where it happens, either onClientPlayerWasted or onClientPlayerSpawn, or both. Try stopping the default spawn/death resource and try again.
  14. Doubt anyone will give you a satisfying answer. I can give you this: createObject(id,x,y,z) setElementData(object,data,val) setTimer(function,time,times) moveObject (object,time,x,y,z) This will help you make one, check out the syntax in the wiki.
  15. DRW

    Custom - map

    Learn from this resource or straight take it and modify it: https://community.multitheftauto.com/index.php?p=resources&s=details&id=381. This replaces the default map with a custom one. About showing different blips, you can always set different dimensions on clientside and check for the distance between you and the blip. local distanceMax = 50 local x,y,z = getElementPosition (localPlayer) for i,blips in ipairs (getElementsByType("blip")) do local bx,by,bz = getElementPosition (blips) local dist = getDistanceBetweenPoints3D (x,y,z,bx,by,bz) if dist < 50 then setElementDimension (blips,getElementDimension(localPlayer)) else setElementDimension (blips,getElementDimension(localPlayer)+1) end end Try doing something like this, you'll probably have to modify this example to make it suitable for your needs.
  16. Because the month range is 0-11 (It does not count months like that, it calculates months passed since January, so from January to February a month passes, then February is 1, from January to December, 11 months pass, so December is 11). Your script actually works since the month 1 is February.
  17. Esto no va aquí. Va en la sección "Spanish/Español". Enseña el código entero, por favor.
  18. This is the wrong section to post this on. Probably has to do with the connection between you and the server, or that server does not use an external HTTP server, but the built-in download server, which is very limited and downloads can be really slow depending on the HTTP server load. Long story short: Either you're too far away from the server, the server has a bad download server or it is just badly optimized.
  19. https://github.com/mabako/mta-paradise Most of the RPs I know have been based in some way on this game mode.
  20. Una es descargar por HTTP con fetchRemote. Aunque esto no usará el sistema built-in de descarga de MTA (No hay barra de progreso). Por tanto, si quieres informar al cliente del progreso de la descarga, vas a tener que crear un sistema de descarga para las skins en especial, separándolo del que viene ya en el cliente. Si quieres el sistema de descarga built-in y evitar problemas, es utilizar esto en el meta.xml del resource con cierta prioridad, cuanto mayor sea el número, antes se descargará, en caso de que sea un número negativo, se descargará después de los siguientes. <download_priority_group>prioridad(número)</download_priority_group> Ésto los descargará en tandas y se iniciarán antes, aunque en la barra de descarga se mostrará el peso total del servidor. Así que aunque tu server pese 70mb y sólo tengas 2mb en mayor prioridad, seguirá mostrando un progreso de 2/70mb.
  21. Thank you for that, that'll help me optimize my server by a lot.
  22. Something like this happened to me a couple of years ago. Check EVERY single clientsided script which has the event "onClientPedDamage" in it and look for the cancelEvent() part of that event. Then, remove that line.
  23. If you talk about doing this with GUI and interact with it, I don't see how. If you talk about dxDraw events, it is indeed possible, though you would need some knowledge. Create a table and make arrow keys responsible of highlighting certain options, by looping through the table and setting different data per option. It's the only way I can think of something similar.
×
×
  • Create New...