Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. You could at least try to to make a decent sentence if you expect help..
  2. See what you do by just posting a finished, more or less working script? People make more topics and expect to get a working script again. You should ask yourself if you wanna help people or just show off with your "skills".
  3. Can't you read what that other guy wrote?
  4. Does not matter. I can decompile both. Tough guy. But the majority can't.
  5. Alright, nevermind. I found something useful. But still, that shifting shound seems to be totally random.
  6. Bonsai

    wrog number

    http://www.lua.org/manual/5.1/manual.ht ... ath.random
  7. Hey Peeps, I'm try to create some manual transmission stuff since I couldn't find anything good online. getVehicleCurrentGear() works pretty good, but the interval between the shifts is different for any car. I want to calculate the RPM without having to put values for every car first. Anyone got an idea how to get this done? Bonsai
  8. Yeah, I know that. I was talking about checkIfPlayerAlreadyHasDownloaded(), sorry. This downloadFile function seems to cause a lot of problems. I never used it so I don't know if its caused by people being unable to use it or general problems.
  9. Bonsai

    Scrollpane

    Hmm, it worked for me that way. No idea why.
  10. Bonsai

    Scrollpane

    Alright, then try to create an empty label and after that the label with text inside. local pX = 200 local label = guiCreateLabel(pX, 0, 380, 481, "", false, scrollpane) local label = guiCreateLabel(pX, 0, 380, 481, "ABC", false, scrollpane)
  11. Bonsai

    Scrollpane

    Try to make it relative.
  12. As far as I know you don't even have to check if its existing already, since it won't download but still trigger that finish function in that case. Try this with one file only, maybe without importing, also put an "else" to that if (sucess) then thing.
  13. Its very simple. If you are talking about the default freeroam resource. Just find the "fr_server.lua" file and check the function at line 133. Bonsai
  14. I'm just thinking the handler to draw the download message isn't needed before it actually starts. Also, its not needed anymore after the download is finished. But its fine, since you remove it there. But if you add the handler inside of a loop, you add it multiple times. Even though this outputs some error in the debuglog and won't work anyway, its just more "clean" this way. EDIT: Did you try /debugscript 3? It should show some more information, about some infinite running stuff or something.
  15. Not sure why that would help, but also some mistake in that for loop. for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile ) end Also, don't add the handler inside of that loop.
  16. You don't need to call downloadState(). Its bound to onClientRender, so it will be called on every frame automatically. Instead, you could add the Handler there. But not inside the loop. Also, whats with that for loop in line 12? Its not needed and wrong placed anyway.
  17. Why do you store the team anyway? Couldn't you just go through all nodes, get the name, and compare with the team name? if xmlNodeGetAttribute(nodes,"name") == teamName then xmlNodeSetAttribute(nodes,"tag",newtag) return end
  18. I think the wiki has some nice examples how to use xml functions. Overall, its nothing to hard.
  19. No idea whats the point of this, but you could use something like a lock. state = true if state then move state = false end
  20. Bonsai

    EventHandler

    Alright, but I was worried about if I have to take care about those handlers, even though the function won't be called anymore, are they still existing somehow, using memory etc. ?
  21. Hmm, Actually Remember me should work. At least I didn't notice any problems there. I changed Freeroam to not being car only, meaning u can walk around, use weapons.. Can't do anything about the admin panel, you would have to edit it yourself. Also changed command flood to be anti spam only. Will upload later.
  22. Bonsai

    EventHandler

    Hey Peeps, just some quick question. Does an EventHandler gets removed if the element it is attached to gets destroyed? Bonsai
  23. Its not that hard. Why don't you try it yourself? Assuming its clientside: -onClientMarkerHit -destroyElement -getElementsByType("marker") -outputChatBox
  24. Is that function also existing client side?
×
×
  • Create New...