maksam07
-
Posts
55 -
Joined
-
Last visited
Posts posted by maksam07
-
-
8 hours ago, Pirulax said:
There is something wrong with the mod I suppose.
Use another model and it should be fine.
does not work, tried 3 different models
Can you skip the version of the script that works for you? -
I tried to replace the model of clothes, but when I sit down on nrg-500, the game closes without errors
download: https://dropmefiles.com/MdA4S
Please, help..
-
how to run scripts when the entire cache will be loaded completely?
-
4 hours ago, DmitrySkripak said:
How to fix this fuzziness? help)
show me a piece of code
-
14 hours ago, DmitrySkripak said:
How to put dgsDxCreateWindow Over all elements? property AlwayOnTop doesn`t work. Thank you
dgsDxGUIBringToFront
-
Hello! Tell me, how can I remove the inscription MTA: SA ... * in the lower right part of the screen?
-
Edit the wiki
https://wiki.multitheftauto.com/wiki/DgsDxCreateWindow
row = 0
change to
row = 1
Because the lines begin with one (at least in the latest versions)
-
Thank you all for the tips. I was able to do it, but in my own way. For some reason, I can not provide the code.
Spoiler -
first option:
function inArea( pos1, pos2, size ) x1, y1, _ = getElementPosition ( pos1 ) x2, y2, _ = getElementPosition ( pos2 ) local dis = getDistanceBetweenPoints2D( x1, y1, x2, y2 ) return size > dis end for i, pl in ipairs ( getElementsByType ( "player" ) ) do if inArea( pl, marker, getMarkerSize ( marker ) ) then -- end end
Then it will be possible to use a marker of any type, but the input / output events from the marker may not work correctly ( It does not seem important to me )
Let me remind you that a bug with transparency only on the marker of the type "checkpoint"
-
28 minutes ago, NeXuS™ said:
@maksam07, the tocolor thing won't work, as the syntax is not what he wrote. About changing the size of a colshape, you can't do it with just changing a variable. This is not a reference variable. After the colshape has been created the variable could be reassigned anything, and it would not effect the size of the colshape at all.
I know all this. Just decided to prove to them that it will not work by example. Now I will test my sketches.
By the way, do you understand me well? I use a translator -
13 hours ago, SuperCroz said:
What do you mean? Why not?
But it does not work.
local radius = 520 local MySphere = createColSphere(0, 0, 3, radius) function changeMySphereSize( size ) radius = size if ( radius > 10 ) then setTimer ( changeMySphereSize, 1000, 1, radius-1 ) end end setTimer ( changeMySphereSize, 1000, 1, radius-1 )
error:
9 hours ago, shay103 said:tocolor( r or 255, g or 255, b or 255, a or 0 )
-
4 minutes ago, SuperCroz said:
Changing a colshape's size is pretty easy. You will just need to set the shape size at the creation as 'x' which should be globally defined as a number at first, and then create a function that modify x's value which will lead to change the colshapes' size.
But the size does not change unless you create a collision again
-
14 minutes ago, NeXuS™ said:
No, it's not possible without removing and then recreating it.
In this and the problem, I would not want to delete. I still have an idea of how to do this with a different type of marker. Only you can not use the input and output events to it. I guess I later unsubscribe about results
-
29 minutes ago, NeXuS™ said:
You can create a function which would do it for ya.
Function that will change the size? Is this possible without the removal of collisions and creating a new one with a smaller size? I do not see other options
-
On 10.08.2017 at 16:02, SuperCroz said:
Why use a checkpoint when you can use colshapes, they are already invisible and come in plenty shapes; a tube, a cubid a sphere...
I've considered this option before, but the problem is that collision can not change the size, as it can be done with the marker - SetMarkerSize. Or I'm wrong?
-
7 hours ago, DonOmar said:
try this:
and don't forget to change positions.
function line3d() dxDrawLine3D(-1196.956, -1065.557, 128.218, -1196.686, -909.289, 128.200, tocolor(255, 255, 0, 255 ), 3) end addEventHandler("onClientRender", root, line3d)
yes, i know that.
can you give me other a hint
-
Good time of day! Question: how to draw lines without using showcol in a circle or sphere (the circle is more interesting)?
I will accept any clues, if there is no such ready resource
Thanks in advance for answers -
I create a marker and try twice to ask him the alpha
local marker = createMarker ( ax, ay, 0, "checkpoint", aradius, r or 255, g or 255, b or 255, 0 ) setElementAlpha(marker, 0)
For the marker type cylinder it works, but for the checkpoint alpha type it does not work and the marker is visible
Used:
setElementVisibleTo( marker, getRootElement(), false )
But then the marker is hidden on the map (I have markers getElementsByType ("marker"))
Still tried it, but it does not work:
for i, pl in ipairs ( getElementsByType("player") ) do setElementVisibleTo ( marker, pl, false ) end
Found this problem on the bugtracker
https://bugs.mtasa.com/view.php?id=7292
The bug was discovered back in 2013 but still the problem remained. How can I solve the problem? I need the marker to be without the Z position
-
Всем привет!
На сервере в дебаге появляется ошибка при входе на сервер: ERROR "строка" exports: Call to non-running client resource (ресурс) [string '?']
Дело в том, что ресурс запущен и добавлен в мтасервер перед всеми другими ресурсами. Где-то нагуглил что клиентские скрипты запускаются в разное время а не по порядку и вроде как проблема исправлена, или я просто не правильно понял. Возможно ли как то решить эту проблему? Если нужна еще инфа, говорите - дам.
-
Кениксу спасибо большое за помощь. Смог написать антимат на сервер, не самый конечно хороший, но все же
Теперь в чат выводятся сообщения формата: "ты [оск] [оск], понял??7"
Так же эта функция работает и для англ слов, что очень хорошо. Не каждая такое может (работать и с русскими и англ символами)
-
Kenix, сделал код по твоему примеру, но оно выводит Not Found. Разве так и должно быть?
local aWords = { "Привет", "Пока" }; function comm ( playersource ) local sInputWord = "ПРивет"; sInputWord = utf8.lower( sInputWord ); for i, sWord in ipairs( aWords ) do if sInputWord == sWord then outputDebugString( "Found" ); break; end end outputDebugString( "Not Found" ); end addCommandHandler ( "qq", comm )
-
а может юзать preg?
pregFind? Он же регистр соблюдает. Или о чем ты?
-
Есть ли в луа функция, которая будет проверять слово игнорируя регистр букв?
То бишь берем слово "привет", и в проверке "Привет", "привет", "ПРИвет" и т.д. функция будет возвращать true?
Не знаю как лучше объяснить, но надеюсь кто-то меня поймет.
-
юзалась элементдата в рендере с включенной синхронизацией с сервером
у меня синхронизация будет выключена. мне только нужно получать значение для одного игрока. я выбрал этот метод, потому что он подходит как для серверной части, так и для клиентской
why is MTA closed after adding clothes?
in Client
Posted
I figured it out.
The models must be of the same resolution as the original ones
and still it is impossible to apply dff and because of it many other problems
I think that the issue has not been resolved. need to modify MTA