Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. You made it even worse. Checking the type of a not existing element variable. Also, its not helpful at all.
  2. Or not. Just add some kind of lock as you did with that "tempdata.farmer", that allows you do use the command handler. There is no need of removing the handler. Add it once, and in the plant function you check if the player is allowed to use it.
  3. You create the vehicle clientside, thats why only 1 player can see it. Make that stuff happening on serverside.
  4. Bonsai

    Voice

    You are letting your friends listen to your music over voice chat? Thats.. weird.
  5. Sorry, but there is a freeroam resource thats does exactly the same thing. Just search those files until u find the stuff that you need. Takes 20 minutes.
  6. What do you wanna save? This event is hardly triggered. Maps are the only resources that getting started and stopped a lot. If its about maps and you are using race resource then there is an event for map ending. Else you might wanna go with onPlayerQuit.
  7. Hey Peeps, is there a way to stretch images created by guiCreateStaticImage? It seems that the width and height used in that function is limited by the screen resolution. If the picture is wider than the screens width, it becomes compressed. Unfortunately I can't use dx functions here. Bonsai
  8. About the the first thing, pretty much what Sam said. You either have to do a server restart and use /refresh and /reloadmaps. That should work. About the /st command. Its indeed not working. When I moved its scripts into a seperate resource I forgot a few functions that are needed there. You can fix that yourself by checking which functions fail to be called in /debugscript 3 and move them into the stats resource.
  9. Bonsai

    getPlayerIP

    Its not just not equal, its nil. This seems to be the admin resource. So you must have screwed up editting something.
  10. Maybe he came to the conclusion this is more sad and not a change in life at all
  11. Check this out: https://wiki.multitheftauto.com/wiki/Script_security Even though I never heard about such problems.
  12. Well, if you use tonumber, you also have to check if it returns nil. That makes sure only numbers get through.
  13. ... He obviously meant you can do most stuff with existing functions somehow, but its still better to have it built-in.
  14. Bonsai

    Widescreens

    If its about Text, make everything depend on the font height and text width. There are function to get those values. Anything else should depend on the height of the screen resolution.
  15. If you got this far with your custom radar this task shouldn't be too hard
  16. C'mooooon, someone gotta know something
  17. I guess the easiest solution is to draw the map + blibs to a render target. Then you only need to rotate the render target.
  18. What else you need? The error message provides everything you need to know. No idea which line is 22 in this part of the script, probably line 7. getElementData returns false if there is no data. Now you should be able to fix that.
  19. Bonsai

    Help us out

    The resource does restart every time you join, at least the clientside.
  20. I think this function, does not work anymore
  21. Whats wrong with u? showChat(not isChatVisible())
  22. Hey Peeps, is there a way to get the commands that are bound to a key? I've only found a function to get to functions bound. But since its also possible to bind commands, there gotta be a way to get those too. Bonsai
×
×
  • Create New...