Jump to content

Enargy,

Members
  • Posts

    1,102
  • Joined

Everything posted by Enargy,

  1. You must start sql resource.
  2. Enargy,

    [HELP] Trigger

    addEvent("TESTT", true) addEventHandler("TESTT", root, function () if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Premium")) then --code else outputChatBox("bla bla bla", source, 255, 0, 0, true) return false end end)
  3. local name = getPlayerName(player) local r, g, b = getPlayerNametagColor(player)
  4. La idea es que al crear la primera columna con addColumn, el parámetro width sea el que pueda manipular el ancho del label, y luego usar guiGetSize para retornar al valor que se le dio y luego guiSetPosition para poder posicionarla. Quedaria asi. y hacer el mismo procedimiento con las demas columnas. local sx, _ = guiGetSize(column.list); guiSetPosition(column.list, sx, 5, false);
  5. Hola, He estado haciendo una gridlist para una simple librería con elementos GUI y tengo un problema. window = createWindow(200, 200, 500, 500, "GUI") list = createList(20,50,250,400,window) addColumn(list, "one", 0.5) --addColumn(list, "two", 0.5) --addColumn(list, "guapo", 0.5) function addColumn(list, text, width) local ww, _ = getSize(list); local row = {}; row[#columns+1] = guiCreateLabel( 5, 5, 0, 50, text, false,list); table.insert(columns, {list = row[#columns+1], text = text, width = width}); for i, column in ipairs(columns) do if not column.list == row[i] then break; end -- Aqui es donde no entiendo. guiSetSize(0, 0, false); guiSetPosition(column.list, 0, 5, false); end end A la hora de crear el texto me sale en un lugar donde no quiero. en la gridlist que trae MTA al crear dos columnas, la segunda columna toma la posicion x que es el ancho de la primera columna. así que trate de hacer algo parecido usando guiSetText y guiSetPosition pero no me salen bien.
  6. did you mean getPlayerNametagColor?
  7. En fin. Buen trabajo PD: Lo que me falta por aprender Matemáticas.
  8. Supongo que la función donde abre el panel igual lo cierra; así que puedes poner anim = false al cerrarlo.
  9. Blue Pie tiene razón . https://wiki.multitheftauto.com/wiki/Ge ... enPoints3D https://wiki.multitheftauto.com/wiki/Ge ... enPoints2D
  10. Nose que quisiste hacer al poner el ciclo Do. Pruebalo. function zapp() if guiGridListGetSelectedItem(gridlistap) ~= -1 then local play = getPlayerFromName(guiGridListGetItemText(gridlistap,guiGridListGetSelectedItem(gridlistap), 1)) if play then guiSetText(LabelPlayer, tostring(play)) local ply = guiGetText(LabelPlayer) triggerServerEvent ("zap", localPlayer, ply) end end end addEventHandler("onClientGUIClick", zap, zapp) if ( hasObjectPermissionTo( ply, 'command.ban', true ) ) then
  11. Shhhh. Okno . Tu como debes estar loco como para pagar esa cantidad ( o eres rico ), por un simple script como eso.
  12. You are getting invalid arguments. Check it out https://wiki.multitheftauto.com/wiki/CreatePickup
  13. Try this: function maintance () local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do banPlayer(thePlayer, false, false, true, getRootElement(), "banned for maintaince") end end addCommandHandler("maintainceban", adminrules) You are missing function's parameters. function maintance (thePlayer, command, arg1, arg2) -- You just gonna use thePlayer, does not necessary implement any other.
  14. Segun en la wiki del slotbot, getBloodBoss no es u evento. https://wiki.multitheftauto.com/wiki/Slothman/Slothb Cambialo por onBotWasted.
  15. at serverside. addCommandHandler("a4", function(p) killPed(p) end)
  16. ¿Quieres hacer un top kills dentro de una col(texto 3d supongo), de las personas que han muerto dentro de ella?
  17. Si estas usando attachElements o el bone_attach deberías de asignar por categorias; y asignarle una posición en especifico. Puedes usar tablas para verificar el tipo de skin, eso si, te va a costar hacerlo por skin . Checa el ejemplo categorias = { --["id"] = { [skinID] = true}, ["cabezón"] = { [255] = true, [112] = true}, ["enanito"] = { [221] = true, [564] = true}, } posicion = { --[id] = {x,y,z,[rotx, roty, rotz]}, [255] = {0,0,3}, }
×
×
  • Create New...