aka Blue

Members
  • Content Count

    2,269
  • Joined

  • Last visited

  • Days Won

    1

aka Blue last won the day on November 9 2018

aka Blue had the most liked content!

Community Reputation

138 Excellent

About aka Blue

  • Rank
    Shooter
  • Birthday 13/10/2000

Details

  • Gang
    $k
  • Location
    VLC
  • Interests
    Lua, HTML, PHP and CSS

Recent Profile Visitors

4,873 profile views
  1. 3dsMax. Hay muchos tutoriales por ahí.
  2. aka Blue

    Exporting to the scoreboard.

    If you dont post your code lines we cant help you.
  3. aka Blue

    [BROWSER] Inject text to browser

    @IIYAMA I will test it. Thank you so much anyway!
  4. aka Blue

    [BROWSER] Inject text to browser

  5. aka Blue

    [BROWSER] Inject text to browser

    @IIYAMA I get that:
  6. aka Blue

    [BROWSER] Inject text to browser

    @IIYAMA Not working
  7. aka Blue

    [BROWSER] Inject text to browser

    One more thing. When I modify the browser with the size and position I want, the click detecting it's working wrong. Like, I need to click the left corner of the screen to search or something like that. local sx, sy = guiGetScreenSize() local x, y = ( sx / 1024 ), ( sy / 768 ) local ancho, alto = 500, 500 local webBrowser = createBrowser(x*ancho, y*alto, false, false) function webBrowserRender() dxDrawImage((sx-x*ancho)/2, (sy-y*alto)/2, x*ancho, y*alto, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end function onKey(button) if button == "mouse_wheel_down" then injectBrowserMouseWheel(webBrowser, -40, 0) elseif button == "mouse_wheel_up" then injectBrowserMouseWheel(webBrowser, 40, 0) end end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "http://www.youtube.com") addEventHandler("onClientRender", root, webBrowserRender) function onCursorMove ( relativeX , relativeY , absoluteX , absoluteY ) injectBrowserMouseMove ( webBrowser , absoluteX , absoluteY ) end addEventHandler ( "onClientCursorMove" , root , onCursorMove ) addEventHandler("onClientKey", root, onKey) addEventHandler("onClientClick", root, function(button, state) if state == "down" then injectBrowserMouseDown(webBrowser, button) else injectBrowserMouseUp(webBrowser, button) end end) focusBrowser(webBrowser) end )
  8. aka Blue

    [BROWSER] Inject text to browser

    @IIYAMA Thank you!
  9. aka Blue

    [BROWSER] Inject text to browser

    So I want to do a simple YouTube simple to listen to music but I don't know what function or script use to inject text into a Browser. I'm using dxDrawImage to draw the browser because for me it's more editable. The mouse works perfectly but I need to make the keyboard work too. Thanks! --In order to render the browser on the full screen, we need to know the dimensions. local screenWidth, screenHeight = guiGetScreenSize() --Let's create a new browser in remote mode. local webBrowser = createBrowser(screenWidth, screenHeight, false, false) --Function to render the browser. function webBrowserRender() --Render the browser on the full size of the screen. dxDrawImage(0, 0, screenWidth, screenHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end --The event onClientBrowserCreated will be triggered, after the browser has been initialized. --After this event has been triggered, we will be able to load our URL and start drawing. addEventHandler("onClientBrowserCreated", webBrowser, function() --After the browser has been initialized, we can load www.youtube.com loadBrowserURL(webBrowser, "http://www.youtube.com") --Now we can start to render the browser. addEventHandler("onClientRender", root, webBrowserRender) function onCursorMove ( relativeX , relativeY , absoluteX , absoluteY ) injectBrowserMouseMove ( webBrowser , absoluteX , absoluteY ) end addEventHandler ( "onClientCursorMove" , root , onCursorMove ) addEventHandler("onClientKey", root, onKey) addEventHandler("onClientClick", root, function(button, state) if state == "down" then injectBrowserMouseDown(webBrowser, button) else injectBrowserMouseUp(webBrowser, button) end end) end ) function onKey(button) if button == "mouse_wheel_down" then injectBrowserMouseWheel(webBrowser, -40, 0) elseif button == "mouse_wheel_up" then injectBrowserMouseWheel(webBrowser, 40, 0) end end
  10. aka Blue

    ipairs, table expected got nil

    I think the problem is in the 7 line. getElementPosition returns 3 floats, not table values, so, you can't index them. PD: And... the loop is wrong.
  11. aka Blue

    Fuego, el efecto es posible remplazar?

    Debes reemplazar la textura con un shader.
  12. aka Blue

    Dx Fade Out

    Podrías utilizar https://wiki.multitheftauto.com/wiki/InterpolateBetween pero es más sencillo el ejemplo que te pondré abajo: local alpha = 255 -- El alpha inicial. Pongamosle 255 local cantidad_a_disminuir = 10 -- Vamos de 10 en 10 para abajo en cada frame. local desvaneciendo = false function dibujar() if desvaneciendo and alpha > 0 then -- Si el alphaInicial es mayor a 0, osea, es visible aun... alpha = math.max( alpha - 10, 0 ) -- Vamos bajandole 10 hasta llegar a 0 end end addEventHandler( "onClientRender", root, dibujar )
  13. aka Blue

    Ayuda, Skins de armas.

    No te va a funcionar. Para estas cosas debes hacer el arma invisible y sustituir un objeto que nunca vayas a usar en el sv por el arma. Deberías utilizar bone_attach para pegarlo al jugador y tal. Las armas de los jugadores no son objetos como tal hasta donde tengo entendido. Aquí tienes un script: https://github.com/Dante383/custom-weapons (no estoy seguro si se sigue desarrollando. No hace lo que digo arriba pero quizás te interese.)
  14. aka Blue

    Mapear en otra dim

    Debes buscar en la lista de interiores (si te refieres al mundo "negro"). En caso de que quieras pasar todos los objetos de un mapeo a otra dimension edita el archivo .map del mapeo y cambia la dimension. Yo sinceramente te recomendaría utilizar algún convertidor de mapas a .lua (hay uno online: http://mta.cemgokmen.com/converter/) y cargar el mapeo como un script. Una vez cargado el mapeo como script simplemente cambias la dimension de donde se crean los objetos y listo.
  15. aka Blue

    Hacer un respawn de vehiculo en dim 12

    local vehiculo = createVehicle( 602, -308.154296875, 1532.3466796875, 75.133796691895 ) -- creas el vehiculo setElementDimension( vehiculo, 12 ) -- Lo colocamos en la dimension 12 addEventHandler( "onVehicleExplode", vehiculo, -- Si explota... function() setTimer( respawnVehicle, 2000, 1, source ) -- Lo respawneamos tras 2 segundos aprox setElementDimension( source, 12 ) -- Por si acaso, lo metemos otra vez en la dimension 12 end )