Jump to content

mehmet

Members
  • Posts

    118
  • Joined

  • Last visited

Everything posted by mehmet

  1. mehmet

    dxDrawCircle

    with this Shader, can I make the center empty? or can I give the image an effect?
  2. mehmet

    dxDrawCircle

    and how do I then give the image effect?
  3. mehmet

    dxDrawCircle

    in the center of the circle transparent do?
  4. mehmet

    dxDrawCircle

    I didn't understand. show me an example? you speak Russian?))
  5. mehmet

    dxDrawCircle

    It makes a fade effect. I need the middle empty
  6. mehmet

    dxDrawCircle

    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?
  7. mehmet

    dxDrawCircle

    But in the center nothing should be
  8. mehmet

    dxDrawCircle

    But I do not understand. how to make empty inside
  9. mehmet

    dxDrawCircle

    Sorry about my stupidity, I got it. Topic closed
  10. mehmet

    dxDrawCircle

    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 )
  11. Прочитал что грамотней будет круг сделать через тоже шейдер)) а прозрачность мне как применять уже с помощью blur? ТО есть юзать 2 шейдера?
  12. I think the inventory system to make dx. And the rest on the CEF. right?
  13. @IIYAMA and for the invetor system? when a lot of data transfer
  14. I didn't fully understand. CEF does not affect the performance? (I just don't understand English.) Sorry man
  15. Привет всем! Хочу сделать панель в виде круга. как на скрине ниже. Для прозрачности взял шейдер blur. Но не знаю как отрисовать круг, не подскажите?
  16. Hi, How start server on mac os?
  17. Hello, want to make a inventory system. What is better CEF or dxDraw? Say CEF slow performance, but faster development.
  18. mehmet

    RAM or CPU?

    Hello, I want to rent a server. What is the priority of RAM or CPU?
  19. Я знаю что некоторые используют для этой системы setElementData. Но это плохо, если можно обойтись и сделать через vehicleEngine = { } Верно говорю? И последний вопрос: vehicleEngine = { } Это мы создали таблицу?
  20. Да, спасибо. Скажи пожалуйста чем isElement отличается от? getElementData? И зачем нужна эта функция? addEventHandler ( "onElementDestroy", root, function ( ) if getElementType ( source ) == "vehicle" then if vehicleEngine [ source ] then vehicleEngine [ source ] = nil end end end )
  21. Thx)) isElement this is the same getElementData? (isElement = getElementData?)
  22. 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)
×
×
  • Create New...