-
Posts
118 -
Joined
-
Last visited
Everything posted by mehmet
-
with this Shader, can I make the center empty? or can I give the image an effect?
-
and how do I then give the image effect?
-
in the center of the circle transparent do?
-
I didn't understand. show me an example? you speak Russian?))
-
It makes a fade effect. I need the middle empty
-
for example, what is a Shader? circle.fx? https://wiki.multitheftauto.com/wiki/Shader_examples and how to work with them? dxDrawCircle(950, 500, 250, 360, 0, tocolor(0, 0, 0, 1000),invsible, 100) so?
-
But in the center nothing should be
-
But I do not understand. how to make empty inside
-
Sorry about my stupidity, I got it. Topic closed
-
Hello guys, I use dxdrawcircle function, how do I draw a circle? and how to make a circle transparent? shader? function dxDrawRoundedRectangle(x, y, rx, ry, color, radius) rx = rx - radius * 2 ry = ry - radius * 2 x = x + radius y = y + radius if (rx >= 0) and (ry >= 0) then dxDrawRectangle(x, y, rx, ry, color) dxDrawRectangle(x, y - radius, rx, radius, color) dxDrawRectangle(x, y + ry, rx, radius, color) dxDrawRectangle(x - radius, y, radius, ry, color) dxDrawRectangle(x + rx, y, radius, ry, color) dxDrawCircle(x, y, radius, 180, 270, color, color, 7) dxDrawCircle(x + rx, y, radius, 270, 360, color, color, 7) dxDrawCircle(x + rx, y + ry, radius, 0, 90, color, color, 7) dxDrawCircle(x, y + ry, radius, 90, 180, color, color, 7) end end addEventHandler( "onClientRender", root, function() dxDrawRoundedRectangle(350, 50, 100, 100, tocolor(0, 255, 0, 255), 20) end )
-
Прочитал что грамотней будет круг сделать через тоже шейдер)) а прозрачность мне как применять уже с помощью blur? ТО есть юзать 2 шейдера?
-
Привет всем! Хочу сделать панель в виде круга. как на скрине ниже. Для прозрачности взял шейдер blur. Но не знаю как отрисовать круг, не подскажите?
-
Hello, want to make a inventory system. What is better CEF or dxDraw? Say CEF slow performance, but faster development.
-
спасибо! За помощь!
-
Hello, I want to rent a server. What is the priority of RAM or CPU?
-
Я знаю что некоторые используют для этой системы setElementData. Но это плохо, если можно обойтись и сделать через vehicleEngine = { } Верно говорю? И последний вопрос: vehicleEngine = { } Это мы создали таблицу?
-
Да, спасибо. Скажи пожалуйста чем isElement отличается от? getElementData? И зачем нужна эта функция? addEventHandler ( "onElementDestroy", root, function ( ) if getElementType ( source ) == "vehicle" then if vehicleEngine [ source ] then vehicleEngine [ source ] = nil end end end )
-
Thx)) isElement this is the same getElementData? (isElement = getElementData?)
-
thx Patrick2562. but is this way better? without ElementData. EngineTable = {} function enterVehicle () setVehicleEngineState(source, EngineTable[source] or false) EngineTable[source] = nil end addEventHandler ( "onVehicleEnter", root, enterVehicle) function exitVehicle () EngineTable[source] = getVehicleEngineState(source) end addEventHandler ( "onVehicleExit", root, exitVehicle) function setEngine() setVehicleEngineState(getPedOccupiedVehicle(player),not getPedOccupiedVehicle(player)) end addCommandHandler("engine",setEngine)
