Search the Community
Showing results for tags 'oop'.
-
السلام عليكم ورحمة الله وبركاتة كيف حال الشباب عساكم طيبين الجواب من اصحاب الخبرة والاحتراف ( القصة مو سهلة على ما اعتقد )ا اليوم كنت اشتغل على برمجة بالدي اكس @t3wz وصادفت انو لازمني 2 جريد ليست وانا بستخدم جريد ليست حقت وانا مشغل نظام الكوائن بملف الميتا <oop>true<...
-
Hi there! I'm trying to spawn player on some location when they spawn, but I don't know why doesn't work. function onJoin() outputChatBox(tostring(source)) source:spawn(-2404.00000, -598.00000, 132.64844) source:fadeCamera(true) source:setCameraTarget(source) end addEventHandler("onPlayerJoi...
-
Hello MTA SA Community i started this thread so someone who knows how the OOP works can explain it to me aswell because i have some questions and couldn't understand some of the wiki. I've seen some people using OOP in their resources instead of calling exported functions if i saw correctly. Can i...
-
registro = {} registro.__index = registro function registro.new(nome,senha) local dados = {} setmetatable(dados,registro) dados.nome = nome dados.senha = senha return dados end function registro:name() outputDebugString(tostring(self.nome)) end function registro:pw() o...
-
Hello, I'm using vectors and im wondering if there is a better way of changing a vector into a table? This is what I'm currently doing because i want to use the unpack() function. pos = localPlayer.position T = {pos.x,pos.y,pos.z}
-
Hi guys, I'm working on my Spiderman script and was wondering if anyone knew how to rotate an object to always look at a position. Been trying to make the player lean with the web but no luck at all.
-
Сразу оговорюсь, данный урок требует основных знаний о таблицах Lua На самом деле в просторах сети полно учебников по данной теме, поэтому решил я написать этот учебник просто потому что его тут нет (естественно копировать всё из других учебников я не стану, а постараюсь рассказать своими слов...