Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Yes, the second one starts "addEventHandler("onClientRender", getRootElement(), onLevelHundred)" which means to start drawing the picture. Which means, it draws by everyone. Replace "addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)" which the trigger.
  2. Your client-side function gets started as soon as the resource is started. Logical that it draws for everyone. The trigger should start the 'onClientRender', not 'onClientResourceStart'.
  3. Like I told you with the triggerClientEvent. I doubt you have it correct. Repost scripts.
  4. Et-win

    Need help

    Try it by yourself first, then ask.
  5. Et-win

    Need help

    If it didn't, then post your script + errors, the standard thing you do....
  6. Et-win

    Need help

    isObjectInACLGroup Server-sided is needed.
  7. Located in map modes/base.lua
  8. MTA does not support stolen scripts from your server. It's your own fault if you didn't protect your scripts enough.
  9. Maybe it is in mapmanager, but I'm totally not sure.
  10. Can't be my router/modem, I didn't had this bug since the last update I think, still thanks for replying. Anyway, I reïnstalled my laptop (Because of stuff) and it works again. No help needed anymore.
  11. Just stop downloading/taking script and ram them into a new topic here on the MTA Forums and go read the script by yourself because you are doing this by litterly every script where you have 'problems' with. You are totally not taking the time to even learn the simplest LUA basic/code/or whatever. Trust me, when you learn to script, you have the best scripts working how you want to with an orginal server.
  12. Just a simple question: Is it called Clan War or Clanwar?
  13. Et-win

    [Help] SQL

    You are receiving the players their data, so you have to add codes like getPlayerName. (For the ones who wanted to know the solution since he solved it)
  14. Stop selling stolen resources. -.-
  15. Welcome at the free scripting section. I use this too. What is wrong with it? It doesn't matter a ****. Atleast he is trying and getting better with scripting.
  16. Et-win

    Block login

    I know, but he said F8 so I would think about F8 only and not chat.
  17. Et-win

    Question :D

    Or math.floor (For largest, math.ceil for smallest)
  18. Et-win

    Block login

    That is also for the chat, MIKI785.
  19. Why making 3 topics for this? You have got an answer from Tosfera already. https://forum.multitheftauto.com/viewtopic.php?f=91&t=77880 viewtopic.php?f=91&t=77879&p=713907#p713907 Logical why no one responses.
  20. Maybe be more specific what you want? ..
  21. Et-win

    countdown

    addEventHandler("onClientPlayerWasted", getRootElement() Why you don't take time by yourself to look at it? Do you even look at what we give you?
  22. It doesn't mean the client downloaded the script faster than server started the server-side script.
  23. Probably server-side is started earlier than client-side. Maybe putting a timer on it works?
  24. function ObjectCreate() local counter = 1 for i = 1,50000 do createObject (3334,10,10+value,10+value) counter = counter + 1 end outputConsole(string.format("%d object created",counter),resourceRoot) end addEventHandler("onClientResourceStart",resourceRoot,ObjectCreate) function hideHUD() showPlayerHudComponent("all", false) end addEventHandler("onClientResourceStart", getResourceRootElement(),hideHUD) Or you can do: addEventHandler("onClientResourceStart",resourceRoot, function() local counter = 1 for i = 1,50000 do createObject (3334,10,10+value,10+value) counter = counter + 1 end outputConsole(string.format("%d object created",counter),resourceRoot) end ) addEventHandler("onClientResourceStart", getResourceRootElement(), function() showPlayerHudComponent("all", false) end ) PS: Changed getRootElement() to getResourceRootElement() because it otherwise will start the function by every resource that gets started.
×
×
  • Create New...