Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. No, I actually re-created the images one at each side of the screen.
  2. What is the problem? what doesn't work? any errors?
  3. There's also this function ( recently added ): https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle
  4. Castillo

    help shader

    Try this: addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local texture = dxCreateTexture ( "images/vehiclepoldecals128.jpg", "dxt5" ) local shader = dxCreateShader ( "lights.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "vehiclepoldecals128" ) end )
  5. I did a quick search and found this: http://viremo.eludi.net/LuaXML/
  6. You must convert these positions to relative as I said on my first reply, that's what I did with the other images. I used guieditor to load the images, then change them to relative, output them and done.
  7. Tambien necesitas: guiGetVisible guiSetVisible
  8. Creo que quiere que al morir los jugadores suelten dinero en forma de pickups.
  9. I don't understand what do you mean.
  10. I did, but since the orange I set is really similar to red, you can confuse. Change this: 255, 50, 0 To another orange code, like this: 255, 100, 0
  11. Post your full code.
  12. percent = 100 label = guiCreateLabel( 0.855, 0.235, 0.1, 0.1, percent ..' %', true ) setTimer ( function ( ) if ( percent > 0 ) then percent = ( percent - 1 ) guiSetText ( label, percent ..' %' ) local color = ( percent < 30 and { 255, 0, 0 } or percent < 60 and { 255, 50, 0 } or percent >= 60 and { 0, 255, 0 } ) guiLabelSetColor ( label, unpack ( color ) ) end end ,50, 0 ) Works ( tested ).
  13. Try this: GUIEditor = { label = {}, staticimage = {}, } fadeCamera(false) showChat(false) showCursor(true) GUIEditor.label[1] = guiCreateLabel(234, 30, 877, 72, "Welcome To Gta Pro Server (=", false) guiLabelSetColor(GUIEditor.label[1], 221, 254, 0) GUIEditor.label[2] = guiCreateLabel(157, 556, 1124, 100, "Chose Your Best Game And Have Fun!", false) guiLabelSetColor(GUIEditor.label[2], 221, 254, 0) Drift = guiCreateStaticImage(0.08, 0.20, 0.41, 0.45, "1.png", true) --------------------------------------- War = guiCreateStaticImage(0.51, 0.20, 0.41, 0.45, "2.png", true)
  14. percent = 100 label = guiCreateLabel( 0.855, 0.235, 0.1, 0.1, percent ..' %', true ) setTimer ( function ( ) if ( percent > 59 ) then percent = ( percent - 1 ) guiSetText ( label, percent ..' %' ) if ( guiGetText ( label ) == percent ..' %' ) then guiLabelSetColor ( label, 0, 255, 0 ) end end end ,50, 0 )
  15. Then you don't want both on center, because one will stay over the other.
  16. You should create the GUI on relative positions, not absolute. You can also center it with this function: https://wiki.multitheftauto.com/wiki/CenterWindow
  17. What do you mean it shut down? it crashed?
  18. Does "label" exist? post your full code.
  19. Castillo

    Spawn

    function test(player) guiSetVisible ( ventana , false ) guiSetVisible ( spawn_button , false ) guiSetVisible ( info , false ) showCursor ( false ) end addEventHandler("onClientPlayerSpawn",localPlayer,test) function test2(localPlayer) guiSetVisible ( ventana , true ) guiSetVisible ( spawn_button , true ) guiSetVisible ( info , true ) showCursor ( true ) end addEventHandler("onClientPlayerWasted",localPlayer,test2)
  20. variable = 100 variable = ( variable > 59 and variable - 1 ) You'll have to execute it on a timer.
×
×
  • Create New...