Jump to content

Controlled

Members
  • Posts

    167
  • Joined

  • Last visited

Everything posted by Controlled

  1. Controlled

    Script bug

    Why are you asking us "like this?" just test it and tell us if it makes a error.
  2. Great job with this. Can you post more detailed instructions for installing this?
  3. Its checking this onClientRender. It checks the key and if its being pressed it continues. Is that the right way to use it?
  4. No matter what I do, I can't get getKeyState to work at all. I've been trying to work with Synced Fires community script and getKeyState makes the script not work. Returns false each time. if getKeyState("mouse1") == true or getKeyState("mouse2") == true then Thats the line. And no matter what it returns false... Theres got to be a reason, right?
  5. Sure that works for finding the current time. But how can I compare that time with the format I posted above?
  6. I'm wondering how I can find the amount of days that passed between two different dates. For example 2014-07-02 00:00:00 - Compared to now() How can I get output in days?
  7. Can the fire be taken out via firetruck water? Or would I have to use the script that is in the Synced Fire resource?
  8. I saw this tip on this page on the wiki today: https://wiki.multitheftauto.com/wiki/Scripting_Tips I'm just confused by what it means when it says the element has to be re-used by MTA in a a weeks time.. I'm not sure what it means to be 100% honest. Can anyone explain to mean what that means? I would appreciate it. Thanks!
  9. Is it possible to destroy a createFire instantly? It doesn't make a element so I don't know how to get rid of it...
  10. I don't think you should be taking the name of http://mtarp.co "They are based on vG we aren't" Based on what I've heard about what you are trying to do and how you can't figure it out makes me not believe that. MTA:RP has a unique script after years of development on it. Same with uG. They aren't just vG scripts anymore.
  11. download: Whether or not to be sent to the client automatically (optional). Default is "true". Using "false" will mean they are not sent on resource start but could later be used by downloadFile (from version 1.4) https://wiki.multitheftauto.com/wiki/Meta.xml Don't know about protected though. Probably just doesn't cache the script which means they have to download it again, next time they join, but they can't steal the script from you. You don't need that though because you got luac.multitheftauto.com
  12. All fixed. Thanks for the help Et!
  13. Ok fixed it, only issue now is its not removing it from the table after... Causes the table to fill up and make errors.
  14. Loads in fine, doesn't delete though. Error: Expected Element got Table
  15. I dont understand you. Your english is very poor.
  16. You can't compress it and then extract it once the client has it, you can do what I said, so that after they join they have the option to download the files. That way its not a large initial download. Just using downloadFile you can make a GUI with all the mods you want on it and have the player choose what they want to download.
  17. Can I use destroyElement(objects) On the table? Probably not, thats what I don't understand about doing this. You say put it into another table but that doesn't answer what I asked about to actually destroy everything in the table...
  18. I dont think I understand. If I do getElementsByType, I could start destroying objects that aren't in my table... How can I make the script check?
  19. Ok so your saying do something like objects = { {1237, 2838.873, 1712.0601, 9.844}, {1237, 2855.843, 1712.0601, 9.844}, {1237, 2823.625, 1712.0601, 9.844}, } for placeNumber, elementData in ipairs(objects) do createObject(elementData[1], elementData[2], elementData[3], elementData[4]) end How would I destroy them? And how would I recreate the table after then?
  20. I have a bunch of create objects in a .lua file. And I want to trigger them via a command, and destroy them seperately. but I'm wondering if I can make the code a lot smaller with a table? Example objects = { createObject (1237, 2838.873, 1712.0601, 9.844) createObject (1237, 2855.843, 1712.0601, 9.844) createObject (1237, 2823.625, 1712.0601, 9.844) } made = false function spawnObjects() if made then -- Destroy them else -- Create them end end I'm just wondering how to make and destroy them with a minimal amount of code..
  21. Once 1.4 comes out, use https://wiki.multitheftauto.com/wiki/DownloadFile downloadFile
  22. Controlled

    check

    I made an achievement system, and i'm trying to give the player an award after first time using jetpack.. function checkWhoHaveJetpack() for index, thePlayer in ipairs(getElementsByType("player"))do if doesPedHaveJetPack(thePlayer) then -- Trigger Achievement end end end setTimer(checkWhoHaveJetpack, 1000, 0) lol?
×
×
  • Create New...