Piorun

Members
  • Content count

    403
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Piorun

  • Rank
    Thug
  1. Hi, Today I found that on steam there is GTA:SA for MacOS / OSX so i decided to write this topic. Can you compile MTA source code for MacOS also?
  2. Hi, Is possible to extend MTA classes like Vehicle, Player etc. using classlib by sbx320?
  3. What's this: https://wiki.multitheftauto.com/wiki/SetDebugViewActive?
  4. Hi, Do WebSockets (for ex. libraries like Socket.IO) are working with browser created in MTA? I'm asking because I want to connect server via Socket.IO locally (NodeJS Express.js).
  5. You mean by your code I can do something like local p = Person("Piorun","test"); outputChatBox(p.address); and it will work or I should call address in other way?
  6. Show me how to mix private and public variables and we will be in da house.
  7. C# is great oop language. There could be an option to choose between Lua and C# so ppl won't need to remake his scripts. Lua is bad if we are talking about oop. Many programmers prefer OOP over procedural cause it's better and cleaner.
  8. How about C# ?
  9. Got it. How about female skin?
  10. Nice but then this doesnt work https://wiki.multitheftauto.com/wiki/SetPedLookAt ? Cause head is static ( i think ). And another q - how u removed CJ's head? Or meybe you didnt?
  11. Nice but then this doesnt work https://wiki.multitheftauto.com/wiki/SetPedLookAt ? Cause head is static ( i think ). And another q - how u removed CJ's head? Or meybe you didnt?
  12. I can use something like "CLuaClassDefs::Index" in Lua or only in C++?
  13. Hi, Can anyone explain me this: https://wiki.multitheftauto.com/wiki/OO ... _Structure (this metatable structure)? I know OOP in other languages like Java, PHP etc. so i'm not 'oop noob'. Anyway how I can use this knowledge to create my own Lua classes in MTA?
  14. I still have no clue how to extend / implement class made by me for ex. from Vehicle class or any other MTA created class.
  15. Hi, I'm working now on PHP. One thing i really like is OOP in this lang. We have simple classes, objects and also inheritance, interfaces etc. It would be awesome if it would be possible for ex. create PoliceVehicle class which gets all methods and variables from Vehicle class and work like a normal vehicle. It would improve iterations (cause i don't need to do getElementsByType('vehicle') and iterate all vehicle but simple getElementsByType('policevehicle')) and speed up searching. And also it would optimalize code. One more thing - improve OOP in Lua by adding class() function or some constructor() for constructor etc. It would be really pro and awesome!