Jump to content

Sticmy

Members
  • Posts

    254
  • Joined

  • Last visited

Everything posted by Sticmy

  1. mm en mi opinión utilizaría esta funciones destroyElement guiSetVisible -- (Sí son windows) removeEventHandler("onClientRender", getRootElement(), drawText) -- (Sí es sobre dxDrawText)
  2. Intenta ponerlo así. local screenHeight, screenWidth = guiGetScreenSize () addEventHandler("onClientRender", root, function() dxDrawText("Picadas 24/7", 428, 22, 864, 79, tocolor(153, 0, 0, 255), 3.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396 + 1, 609 + 1, 938 + 1, 706 + 1, tocolor(0, 0, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396, 609, 938, 706, tocolor(229, 140, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) end )
  3. Ya lo había hecho antes pero, igual gracias de todas maneras
  4. Ya no es necesario, ya hice el script gracias de todas maneras
  5. Bueno, no me sirve quiero ocultar el chat mientras les cargan los recursos :l. Lo he visto en algunos servidor, cómo CIT y otros más.
  6. Esó lo avía echo pero, no se oculta el chat mientras carga, por que es client. pensaba si utilizaría getElementData.
  7. Hay alguna manera de ocultar el chat, mientras le cargan?
  8. Excelente, quedo muy bueno el diseño +1
  9. Sticmy

    una duda

    Gracias venad.
  10. Sticmy

    una duda

    Buena idea, gracias.
  11. Sticmy

    una duda

    También lo hice cómo tu código, pero sale el 70 que baja de vida y me pareció muy raro, por que en un server baja el 41 hp de vida con la arma deagle.
  12. Sticmy

    una duda

    Hola, alguna función para saber cuanto bajaría de vida una arma? Lo hice así pero no sale exactamente cuanto baja. local range = getWeaponProperty(24, "poor", "damage") outputChatBox("damage: "..tostring(range))
  13. Prueba lo. function loginPlayer (userText, passText) if not (userText == "") then if not (passText == "") then local account = getAccount (userText, passText) if (account ~= false) then logIn (source, account, passText) end end end end addEvent("loginPlayer", true) addEventHandler("loginPlayer", getRootElement(), loginPlayer)
  14. Gracias por explicarme alfa.
  15. Gracias calculador
  16. Hey una pregunta, lo hice exactamente bien pero no stopea el setTimer. te dejo mi código: function colorescoches (player, cmd) if cmd == "color" then if hasObjectPermissionTo(player, "command.setgroup", false ) then if isPedInVehicle ( player ) then local uVehicle = getPedOccupiedVehicle( player ) if uVehicle then local tiempo = setTimer (function () setVehicleColor( uVehicle, math.random( 255 ), math.random( 255 ), math.random( 255) ) end, 50, 0) else outputChatBox("Debes estar en un vehículo para utilizar este comando", player, 255, 0, 0) end else outputChatBox("Acceso Denegado", player, 255, 0, 0) end elseif cmd == "parar" then killTimer ( tiempo ) end end end addCommandHandler("color", colorescoches) addCommandHandler("parar", colorescoches) También utilize esto y no funciono: if isTimer ( tiempo ) then killTimer ( tiempo ) end
  17. Hay alguna manera de parar un setTimer?
  18. addCommandHandler setTimer ( function( ) removeEventHandler("onClientRender", root, test) end, 3000, 1) -- son 3 segundos cámbialo a 5 = 5000
  19. Gracias a todos ya lo solucione y gracias por tu código alfa.
  20. Bueno no funciona puse la ID de la fila y no funciona dejo mi código. addEventHandler("onClientResourceStart", resourceRoot, function() panel = guiCreateWindow(397, 81, 533, 485, "", false) guiWindowSetSizable(panel, false) gridlist = guiCreateGridList(10, 22, 513, 418, false, panel) cerrar = guiCreateButton(165, 452, 183, 23, "Close", false, panel) column = guiGridListAddColumn(gridlist,"Testing",0.90) for i = 1, 10 do guiGridListAddRow(gridlist) end guiGridListSetItemText(gridlist, 0, 1, "test1", false, false) guiGridListSetItemText(gridlist, 1, 1, "test2", false, false) guiGridListSetItemText(gridlist, 2, 1, "test3", false, false) guiGridListSetItemText(gridlist, 3, 1, "test4", false, false) guiGridListInsertRowAfter ( gridlist, 5 ) guiGridListSetItemText(gridlist, 4, 1, "test5", false, false) guiGridListSetItemText(gridlist, 5, 1, "test6", false, false) guiGridListSetItemText(gridlist, 6, 1, "test7", false, false) guiGridListSetItemText(gridlist, 7, 1, "test8", false, false) guiGridListSetItemText(gridlist, 8, 1, "test9", false, false) guiGridListSetItemText(gridlist, 9, 1, "test10", false, false) guiGridListInsertRowAfter ( gridlist, 2 ) end)
  21. Lo que quiero hacer es agregar otro Column abajo de los textos.
×
×
  • Create New...