-
Posts
1,102 -
Joined
Everything posted by Enargy,
-
You must start sql resource.
-
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)
-
local name = getPlayerName(player) local r, g, b = getPlayerNametagColor(player)
-
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);
-
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.
-
did you mean getPlayerNametagColor?
-
Hmm ya.
-
Por qué no se cuenta Z?
-
getVehicleComponents
-
En fin. Buen trabajo PD: Lo que me falta por aprender Matemáticas.
-
Supongo que la función donde abre el panel igual lo cierra; así que puedes poner anim = false al cerrarlo.
-
Locked(?
-
Blue Pie tiene razón . https://wiki.multitheftauto.com/wiki/Ge ... enPoints3D https://wiki.multitheftauto.com/wiki/Ge ... enPoints2D
-
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
-
Quien mierda es tigeBlanco?
-
Shhhh. Okno . Tu como debes estar loco como para pagar esa cantidad ( o eres rico ), por un simple script como eso.
-
You are getting invalid arguments. Check it out https://wiki.multitheftauto.com/wiki/CreatePickup
-
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.
-
Segun en la wiki del slotbot, getBloodBoss no es u evento. https://wiki.multitheftauto.com/wiki/Slothman/Slothb Cambialo por onBotWasted.
-
at serverside. addCommandHandler("a4", function(p) killPed(p) end)
-
¿Quieres hacer un top kills dentro de una col(texto 3d supongo), de las personas que han muerto dentro de ella?
-
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}, }
-
Natural Selection - Battle Royale Gamemode
Enargy, replied to Alexs's topic in Servidores en donde jugar
Algo como juegos del hambre?