-
Posts
748 -
Joined
-
Last visited
Everything posted by AMARANT
-
Please guys help me out to solve my problem. The thing is that my server starts to lag if it has 10-12+ people online. The lags are like: delay on sending chat message, on starting vehicle engine, turning on/off lights, even entering a vehicle and so on. Here is a screenshot of my server CPU usage given by performancebrowser: http://i.imgur.com/PGMq3g3.jpg I assume it's because of using much element data or bad hosting but I don't know how to check it I can give more information if you need, just tell me. Thanks in advance.
-
https://wiki.multitheftauto.com/wiki/GetTimerDetails
-
1. Да 2. Да
-
I need to disable blowing up when a vehicle is lying on the roof and starts to burn.
-
Is there a way to cancel vehicle blowing up?
-
What a nice and good-looking tutorial, mate! Two thumbs up!
-
Кто знает что за новые скины будут добавлены в МТА 1.6 (246 штук) и где их можно посмотреть? Пруф: https://wiki.multitheftauto.com/wiki/Character_Skins
-
You need to understand that you CAN'T add string values like "0$". It MUST be a number like 0. Your GUI labels contain data as strings so when you try to retrieve data from them it will be in a string format, not number. After that you add string to another string, but it's impossible. So convert your string to number with: tonumber(myString)
-
Man, isn't it obvious? You're trying to do maths with 'strings'. Can you add "ABC"+"ABC"? What will you get then? Convert your strings 'text' and 'text2' to numbers with this: tonumber
-
That happens because you didn't set the right Z coordiante. Your ped needs to be on the gorund in order the rotation to be set correctly. Calculate the exact Z coordinate of the place where you need to create the ped.
-
Попробуй проверь что возвращает сам handler перед запросом. Есть вероятность что соединение с базой пропадает.
-
Each weapon uses its own reloading animation. Find the block which is named after the weapon you want to reload. Then search for a word 'reload' in the animation name, e.g. "SILENCED", "Silence_reload" is reloading animation for Silenced pistol.
-
What do you mean by this? Is there another player on your server who can kill you? Or you kill yourself with some function? Because your code seems OK. UPD: Maybe your meta file is not correct. It should be like this:
-
Are you sure that it's server-side?
-
Я бы и с радостью, но я не знаю, чем помочь МТА. Все что делаю это работаю над своим модом чисто на энтузиазме, если это никому не надо будет - солью в общак скорее всего. Потому что с таким онлайном как в МТА особо не раскрутишься. Насчет пабликов и правда вообще печально. Например в mta_public с контингентом около 1000 человек новости или какой-нибудь пост раз в пятилетку. Другие паблики вроде как пиарят сервера, но насколько это работает - неизвестно. А про киберспорт в МТА вообще первый раз слышу...
-
You CAN use exported functions to create an element in another resource. Where did you get that information that you can't? Show your code if you have it.
-
See https://wiki.multitheftauto.com/wiki/Element_tree for more details.
-
He says that you should look up in the dxscoreboard_client.lua file from the 'dxscoreboard' resource dxDrawText functions which have arguments that can change string colors.
-
That's not just an order. That's a logical order. Like I said you set an empty variable to your table and only after that you defined it.
-
See lines 13 and 14 in my code and in yours.
-
parts = { [1015] = { } } function attachCarPart(hitElement, partID) if (tonumber(getElementData(hitElement, "partInHand")) > 0) then local IDpart = tonumber(getElementData(hitElement, "partInHand")) destroyElement(parts[IDpart][hitElement]) parts[IDpart][hitElement] = nil setElementData(hitElement, "partInHand", 0) else part = createObject(partID, 0, 0, 0) parts[partID][hitElement] = part setElementData(hitElement, "partInHand", partID) end end