Search the Community
Showing results for tags 'functions'.
-
MTA-Communication-Enhancement This is an enhancement that allows you to communicate between clientside and serverside a bit easier. If you know how to work with events, then you probably do not need this, but it has some nice features which allows you to sit back and write less code + achieve some nice results. Note: It is important to keep in mind that this is an enhancement. Which means it is just an layer on top of the basic functionalities of MTA. And most enhancements come with a cost, in this case that is bit of performance. I will keep the information of topic to th
- 4 replies
-
- 8
-
-
- await
- serverside
- (and 10 more)
-
Eu preciso fazer este circulo ao redor do blip, alguém pode me ajudar? https://prntscr.com/wid38f
-
Gostaria de colocar um botão (imagem) no login , onde ele pausaria ou iniciaria a musica . Consegui fazer isso , mas em botões separados , gostaria de uma ajuda para fazer essas duas funções em um mesmo botão (imagem) , assim trocando a imagem para som desativado .
-
Hi, I was curious when the garbage collector would clean something like this: function testFunction () local testVariable = 100 local function firstFunctionInBlock () print("first function, testVariable: " .. testVariable ) testVariable = testVariable + 1 end local function secondFunctionInBlock () print("second function, testVariable: " .. testVariable) testVariable = testVariable + 1 end return function () firstFunctionInBlock() secondFunctionInBlock () end end function testFunction () -------------------------- -- function block -- -------------
-
I want make more than one function to math.random, when i click on a button, choose a function, for example god mode, or give weapons, how to make it? Sorry for my very bad english.
- 2 replies
-
- math.random
- random
- (and 7 more)