Jump to content

madis

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by madis

  1. madis

    metatables

    Not sure about that, or even if there is such meta function. However, what for would you need it exactly?
  2. madis

    metatables

    I don't know much about metatables, but you're positive the script is serverside, right? Also, it seems you're overwriting the old table indexes, not adding new http://lua-users.org/wiki/MetamethodsTutorial
  3. madis

    Mta orange? :S

    I have heard that eating oranges might be lethal to your right brain. What have you heard?
  4. Think about the issues when players don't have same modifications. If they want to have modifications, a lot of these are already available to be scripted in MTA, which means all of the players will have them.
  5. Me haz two! Madis Morangedis k|ersurk orankersurk Orange ftw!
  6. 010110010110111101110101001000000111001101110101011000110110101100100001
  7. setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true)
  8. setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true)
  9. One function should do only one specific thing. So, probably the more functions (and shorter) you have the better. Except, if there's a function that's called only by one function and you know there won't be any more places it'll be called, then it's usually better to put inside the parent function.
  10. One function should do only one specific thing. So, probably the more functions (and shorter) you have the better. Except, if there's a function that's called only by one function and you know there won't be any more places it'll be called, then it's usually better to put inside the parent function.
  11. Just a word of warning. Don't put the objects outside the world area. I'm not sure about the z coordinate, put if setting x and y outside of the map area (you'll see the area with F11 radar). Why? If you spawn your player there the camera will see through the objects, like landscape and any buildings. Took me some time to understand why it did so, so I thought I'll post it. EDIT: Of course, seems it's posted here before. There should be more coverage on that, still, so mappers would know it before it happens.
  12. Just a word of warning. Don't put the objects outside the world area. I'm not sure about the z coordinate, put if setting x and y outside of the map area (you'll see the area with F11 radar). Why? If you spawn your player there the camera will see through the objects, like landscape and any buildings. Took me some time to understand why it did so, so I thought I'll post it. EDIT: Of course, seems it's posted here before. There should be more coverage on that, still, so mappers would know it before it happens.
  13. Looks great (on the pictures) (y)
  14. Looks great (on the pictures) (y)
  15. Congratulations! For borning several years ago, today!
  16. Congratulations! For borning several years ago, today!
  17. Get it from Object browser for example (in Map Editor), you can search with ID in there as well (just type id in the search box).
  18. Get it from Object browser for example (in Map Editor), you can search with ID in there as well (just type id in the search box).
  19. madis

    spawn into car

    warpPedIntoVehicle is server-only function, so you can't simply use getLocalPlayer() (which is client-only function). Server should check if something triggered some event you need to use warping at, and usually the source of the event will be the player who trigger it and you can use that source instead of getLocalPlayer().
  20. madis

    spawn into car

    warpPedIntoVehicle is server-only function, so you can't simply use getLocalPlayer() (which is client-only function). Server should check if something triggered some event you need to use warping at, and usually the source of the event will be the player who trigger it and you can use that source instead of getLocalPlayer().
  21. You could set LOD of model to higher, maybe that would help. https://wiki.multitheftauto.com/wiki/Eng ... ODDistance I've got bad history with collisions myself, so there might be some problems with them in MTA itself.
  22. You could set LOD of model to higher, maybe that would help. https://wiki.multitheftauto.com/wiki/Eng ... ODDistance I've got bad history with collisions myself, so there might be some problems with them in MTA itself.
  23. Which servers are the most troublesome? Do you know what resources are running there? It probably isn't just you, ask other people on the server if they are getting the often crashes as well. Some functions (or resources themselves) might not be rock solid and cause unexpected behaviours.
  24. Which servers are the most troublesome? Do you know what resources are running there? It probably isn't just you, ask other people on the server if they are getting the often crashes as well. Some functions (or resources themselves) might not be rock solid and cause unexpected behaviours.
  25. Are you using original gta_sa.exe or a cracked one (just say no to the first question in that case)?
×
×
  • Create New...